php-mvc icon indicating copy to clipboard operation
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.

Results 32 php-mvc issues
Sort by recently updated
recently updated
newest added

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. ![image](https://user-images.githubusercontent.com/6827222/104772989-5bb37600-579a-11eb-82a7-cb2d905cac77.png) I am getting error: ![image](https://user-images.githubusercontent.com/6827222/104773021-6837ce80-579a-11eb-8dc1-2d7ddb0fefa4.png) 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?