the sun's not yellow it is chicken

Month: May 2013

Zen In Code

The following bit, although on the rather shallow topic of writing computer code, rings true on a great many non-computer related levels.

Take note:

Models that will be used consistently on all the site’s pages are best autoloaded in the
config/autoload.php file. Models that are used throughout all the methods of a controller, should be loaded in that controller’s constructor. Models that are only needed in certain methods within a controller, should be loaded inside those methods, only.

— From CodeIgniter Optimization.

© 2022 moonbug.org

Theme by Anders NorenUp ↑