Welcome Guest, Not a member yet? Register   Sign In
Advice Needed - Using Libraries instead of Controllers to deliver pages
#2

[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, 06:19 PM



Theme © iAndrew 2016 - Forum software by © MyBB