Let's say I have two controllers, home and news. Both of these controllers will access the news data, and will need to access a library of functions that retrieve that news data out of the database, manipulate it, etc.
My first guess was that a function to retrieve news items and prepare them for use in the View would be declared in the Controller. However, since two Controllers want to do the same thing, this doesn't make sense. (I'm a big fan of DRY too (Don't Repeat Yourself).
So I'm guessing these news related functions need to exist in an external library shared & accessed by both Controllers, however this means that each controller isn't truly self-contained.
Or maybe the Model is more than just data, and the functions used to retrieve and prepare the data for use in the View are part of the Model??
A few hints to help me better grasp this grey area would be appreciated!
--- Justin French http://indent.com.au
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php