Best practices when coding a CMS in CI? |
[eluser]Starovich[/eluser]
[quote author="Jelmer" date="1270417779"]Take a look into extending the Controller class and put stuff like pages in a Page Controller, marketplace in its Marketplace Controller, etc... You can search the forums for "MY_Controller" to see how others did it. The User Guide has some explanation on how to go about that at the bottom of the page Creating Libraries, the section is called "Extending Native Libraries". That's a pretty good way to go about it when you've got 2 applications for your website: one for the visitors and 1 for the editors/admins. I personally don't do it that way because I've got the website in 1 application and need different functionality for the admin part and the public part. So I've created multiple libraries which contain the shared behavior, some are autoloaded for the entire website - others are only loaded for certain parts of the website.[/quote] After much time and effort, I implemented a custom MY_Controller which houses the common methods for showing pages. Thank you for your suggestions! |
Messages In This Thread |
Best practices when coding a CMS in CI? - by El Forum - 04-01-2010, 04:45 PM
Best practices when coding a CMS in CI? - by El Forum - 04-04-2010, 10:11 AM
Best practices when coding a CMS in CI? - by El Forum - 04-04-2010, 10:49 AM
Best practices when coding a CMS in CI? - by El Forum - 12-13-2010, 05:36 PM
|