07-03-2009, 10:56 AM
[eluser]SMaton[/eluser]
Hi everyone,
I'm currently learning how to use CodeIgniter and I have read through the tutorials and wiki pages (not all, but a lot). I've especially checked the multi-view examples because that's the way I'd like to setup my pages.
I've a C++/C#/Java background, so I'm familiar with MVC. The difference I see with MVC php is the dynamic page generation and thus the dynamic usage of models and views.
The examples I've seen do a sequential loading of the views and implement the combined view logic into one single controller. Thus this controller is holding the logic for several views.
I wonder if it's possible to "sequentially load" controllers, too. To explain: Imagine that my page is build out of small blocks which can be enabled and disabled by the user through a configuration panel. Ideally I would implement those blocks as different views and with-coming controllers (one for each view). So, in my example, I would rather load the controllers than the views.
Is this possible using CodeIgniter and/or php?
Best regards,
Stefan
Hi everyone,
I'm currently learning how to use CodeIgniter and I have read through the tutorials and wiki pages (not all, but a lot). I've especially checked the multi-view examples because that's the way I'd like to setup my pages.
I've a C++/C#/Java background, so I'm familiar with MVC. The difference I see with MVC php is the dynamic page generation and thus the dynamic usage of models and views.
The examples I've seen do a sequential loading of the views and implement the combined view logic into one single controller. Thus this controller is holding the logic for several views.
I wonder if it's possible to "sequentially load" controllers, too. To explain: Imagine that my page is build out of small blocks which can be enabled and disabled by the user through a configuration panel. Ideally I would implement those blocks as different views and with-coming controllers (one for each view). So, in my example, I would rather load the controllers than the views.
Is this possible using CodeIgniter and/or php?
Best regards,
Stefan