Advice Needed - Using Libraries instead of Controllers to deliver pages |
[eluser]stuffradio[/eluser]
I don't even see any views being used, you're breaking the MVC pattern and using something like MLC (Model Library Controller). You can keep your Page controller, and perhaps you should also use routes. That way you could go http://yoursite.com/Page/home In your controllers, it would go to the routes, and take the second URI segment. This would be something like Page/index/$1 in your route. Then in the controller, you can check if this is a page that you have defined as needing the database, if yes then do your database stuff, if no then use libraries or however you're doing it now. |
Messages In This Thread |
Advice Needed - Using Libraries instead of Controllers to deliver pages - by El Forum - 12-16-2009, 05:08 PM
Advice Needed - Using Libraries instead of Controllers to deliver pages - by El Forum - 12-16-2009, 06:19 PM
Advice Needed - Using Libraries instead of Controllers to deliver pages - by El Forum - 12-17-2009, 03:29 AM
|