Welcome Guest, Not a member yet? Register   Sign In
Practical problem in implementing MVC with CodeIgniter
#4

[eluser]Phil Sturgeon[/eluser]
With things like JavaScript and other non-PHP related media/assets you just leave that in a folder in your web folder. For a slightly more CI-feeling asset manager (to load images, javascript, etc) grab the helper from my signature.

Everything else is easy enough. For modules look up Matchbox. Strange name but basically allows a more modular file layout than is currently allowed in CI.

Also, you should not be trying to load a controller from a view. The view is a simple "this variable goes here" file. The controller does the loading and selects what parts and what data goes together. The controller should not be doing huge array formatting either, that sort of work can be left to the model to hide it all away.


Messages In This Thread
Practical problem in implementing MVC with CodeIgniter - by El Forum - 12-13-2007, 11:17 AM
Practical problem in implementing MVC with CodeIgniter - by El Forum - 12-13-2007, 02:28 PM
Practical problem in implementing MVC with CodeIgniter - by El Forum - 12-13-2007, 02:45 PM
Practical problem in implementing MVC with CodeIgniter - by El Forum - 12-13-2007, 04:02 PM



Theme © iAndrew 2016 - Forum software by © MyBB