A PHP OOP web application skeleton that uses MVC architectural pattern to create a basic application that contains login and multi language systems and can be used in any web project.
Look at @Lucas-Ayabe's https://github.com/Lucas-Ayabe/simple-mvc skeleton. If I keep Lucas' original MVC skeleton, can I merge your original MVC skeleton into his MVC skeleton? I want to build a multilingual site. But not only it, your repo also has login, so it is another advantage. I want to keep his original code because of PHPMailer. Lucas' router page uses Composer.
Thank you for your attention and your understanding!
Look at @Lucas-Ayabe's https://github.com/Lucas-Ayabe/simple-mvc skeleton. If I keep Lucas' original MVC skeleton, can I merge your original MVC skeleton into his MVC skeleton? I want to build a multilingual site. But not only it, your repo also has login, so it is another advantage. I want to keep his original code because of PHPMailer. Lucas' router page uses Composer.
Thank you for your attention and your understanding!
If you have a website where the header (/app/views/layout/header.php) is different for logged in users and not logged in users, how would you implement that?
The difference is one header for anonymous users that contains a Sign In button and a drop down menu of other account options and one that contains Log Out button instead for logged in users.
I can think of 2 possible solutions:
Pass the data to the view through the $data[] associative array. (ex: $data['loggedin] = 0 or 1 for true and false). Then add the logic (an if statement) within /app/views/layout/header.php to render the right content. Is it appropriate to put if statement logic within a view?
Have the Model call a different view if user is logged in (for example: /app/views/layout/header.php and /app/views/layout/user_header.php).
I set up the project properly and got it running on my server. However, there is a problem with the URL splitting. https://example.com///home/login <-- this is the default page