php-mvc
php-mvc copied to clipboard
A simple PHP model-view-controller framework, built step-by-step as part of the "Write PHP like a pro: build an MVC framework from scratch" course on Udemy.
I was wonder how we can still use query parameter in the url since this mvc set this up in .htacces file. i think query parameter still common in mvc...
Hi I installed TinyMCE by composer. So we have path "/vendor/tinymce/tinymce/tinymce.js" How should I include this to my twig html? All js I have in public/js/ - shoud I move...
Please tell me I want to create a controller for base.html ``` namespace App\Controllers; use \Core\View; class Base extends \Core\Controller { public function indexAction() { View::renderTemplate('base.html', ['tmp' => 'test']); }...
I am subscribed to your udemy MVC Login course and did exactly the way you told me in the video.  I am getting error:  This file seems to...
Hi David, You have in your controller 2 methods before and after. How can i use it? Martijn
I know it is possible for me to pass a parameter to an action as follows: `$router->add('{controller}/{action}/{id:\d+}');` `public function indexAction() { View::renderTemplate('Sobre/index.html'); }` But how can i pass, two or...
Hi dave, I was trying to put a simple txt file for users to read when going on my test site websi.test.xyz/accounts.txt and it would say no route matched and...
Hi Dave Firstly, thank you very much for such a great project. I'm quite new to PHP MVC architecture and I'm stuck displaying single items for the blog system I'm...
I am trying to create a router with the Path: localhost/user/login. Here is an example how I try to do it: `$router->add('user/login', ['controller' => 'LoginController', 'action' => 'login']);` It also...
First of all I would like to congratulate you for the work. Would you have any idea how I could do Grouping Routes?