How to create a common controller type? Does it makes sense? |
Hello,
first, thanks for this fine framework. I'll still starting, but feel fine. I've create a controller which can load several pages as parameter. Code: public function view($page = "dashboard") I use a modul to dynamic create an array getNavArray(). This works fine, but I'm unsure how to work on with this. I want to add JSQuery datatables and more to several pages. So I can select here which page to show and load the data I need. But I think this will look awefull and I will loose the overview. I could create one controller for each sections. But than I must add this block to alle controllers. If I change the theme, I must modify all controllers. Can I extend the controller to my own version? Or should I create a library where I call GetPageInfos and GetAllPageViews? Thanks Stefan |
Messages In This Thread |
How to create a common controller type? Does it makes sense? - by StefanKittel - 01-25-2016, 11:00 AM
RE: How to create a common controller type? Does it makes sense? - by ciadmin - 01-25-2016, 12:01 PM
RE: How to create a common controller type? Does it makes sense? - by StefanKittel - 01-25-2016, 01:26 PM
RE: How to create a common controller type? Does it makes sense? - by ciadmin - 01-25-2016, 02:28 PM
RE: How to create a common controller type? Does it makes sense? - by cartalot - 01-26-2016, 03:12 PM
RE: How to create a common controller type? Does it makes sense? - by josepostiga - 01-26-2016, 10:31 PM
|