You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
The text was updated successfully, but these errors were encountered:
@trentramseyer thank you for report.
We're in the process of rewrite devtools. Possibility to add custom configuration is envisaged. Creating project will be rewrite to.
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 therouter.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.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
The text was updated successfully, but these errors were encountered: