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

Created a generic handler for one or more parameters to avoid need to create each method a route in the application. Need to check for security (special characters).

Hello, Is it possible to access the `App\Config` file from the public folder? My goal is to set `\App\Config::VAR` and access it in `public\nested_dir`. Thanks!

Hi i tried you project without twig and composer. I have few issues that i need to check the user logged in or not first, and there are seperate apps...

Hello, Goal: use View::renderTemplate ( default/index.html, [ templateVars, THE TEMPLATE FILE LOCATION ]); Render the TEMPLATE and utilize Twig's {{ }} for the templateVars Issue: Unable to access the templateVars...

Hi everybody, I found one bug in Router.php The problem comes when I try to create the maximum length of the string I get. Then the curly brace is exchanged...

how to call function models in function controller?

Hi Is it possible that two urls: mysite.com/admin mysite.com/admin/ show the same? I did $router->add('admin/', ['controller' => 'Home', 'action' => 'index', 'namespace' => 'Admin']); $router->add('admin', ['controller' => 'Home', 'action' =>...

Hello, I am a student and would like to retrieve information from my database to display in a view. I have been trying for 2 days without success. Here is...

I have this error with PHP Version 7.3.2. Works good with 7.4.4. `Fatal error Uncaught exception: 'ParseError' Message: 'syntax error, unexpected 'array' (T_ARRAY), expecting function (T_FUNCTION) or const (T_CONST)' Stack...