Welcome Guest, Not a member yet? Register   Sign In
Things to Configure Before Coding?
#12

(This post was last modified: 07-28-2015, 03:18 AM by solidcodes.)

(07-27-2015, 08:54 AM)mwhitney Wrote: I would also recommend adding an /application/config/application.php file which I would add to $autoload['config']. That way, you can keep any application-specific configuration separate from the CI config files and still have the data (almost) as readily available as the values in the /application/config/config.php file.

You should consider moving most of the helpers/libraries you're autoloading to your base controller's constructor. At some point you may find instances in which you want to prevent something from being loaded, and it will be much easier to do so if they're loaded by a controller than if they are in the autoload config. I have database in $autoload['libraries'] and url & language in $autoload['helper'], but I've gone back and forth considering whether I even need that much.

Can you show as example snippet codes of application.php for the benefit of all. 
Or perhaps can you show us, how did you do it step by step tutorial please.
Interesting...
No SEO spam
Reply


Messages In This Thread
RE: Things to Configure Before Coding? - by solidcodes - 07-28-2015, 03:15 AM
RE: Things to Configure Before Coding? - by Narf - 07-30-2015, 01:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB