CodeIgniter, Me Myself And I, Today's Aha-Erlebnis

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.


Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>