• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.