We’ll be celebrating our 10th wedding anniversary next Wednesday — and I’ll still love her to pieces.
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.
My friend Martin, in awe of Caterpillar Crater over at Hill 60.