-
Notifications
You must be signed in to change notification settings - Fork 623
Description
While creating a project from phalcon create project_name there are a couple steps I have to repeat to make it a base of what I use.
One, the index.php loads the router.php file before the $config=>$di->getConfig() command. This causes a problem because I like to create an array of endpoints in my config file that I loop through to create REST calls for them in the router file. It would be nice to have access to the config file variables.
Two, I create namespaces I am going to use in the config file, and if the config file and controllers had a basic Namespace it would be nice. I add the following line to the loader.php file to load them in easily. I believe Namespaces are a standard practice these days and is nice to have from the start.
$loader->registerNamespaces(
(array) $config->namespaces
);Three, I posted this in the forums at one point, but the minify command in the index.php file can corrupt javascript that is on the page within <script> tags. I don't find it very helpful at this time.
Just some suggestions,
Thanks for the framework!
Trent