Dave Hollingworth
Dave Hollingworth
Composer was designed for PHP packages, i.e. PHP code that will be used on the server. By design, files not in the public folder can't be accessed in a browser,...
Query parameters are not affected, you can still access them in the `$_GET` array as always, for example using the URL example above it would be `$sortby = $_GET['sortby'];`
Hi - you need to put that file in the public folder, so public/accounts.txt. You should then be able to access it at example.com/accounts.txt. If you have the framework in...
In this framework the routes are defined in the [public/index.php](https://github.com/daveh/php-mvc/blob/master/public/index.php#L28) file.
The URLs for your included files need to be based on the path to the public folder - so for example if you have a file pubic/css/main.css, you would include...
Hi Martijn, these are controller action filters - details of how to use them [here](https://github.com/daveh/php-mvc#action-filters). Cheers, Dave
This depends on how you want the addons to work - if you don't change the core code, then you're limited to controllers, and the action filters mentioned above. If...
Hi - if you're a student on the Udemy course, please ask any questions in the Q&A section there. As for your code, you need to call the model method...
The method doesn't have any arguments - try this: ``` public function indexAction() { // $this->$args = []; ```
It could be a cache issue - try deleting the entire **vendor** folder and running `composer install` again