• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Building application structure - problems with controllers?

#4
[eluser]CroNiX[/eluser]
You can't "load" controllers. They get automatically loaded depending on the URL, or route (if used), which is how CI works. You "autoload" the library, which the controllers can then use.

In your controller, you pass data to your template library and it does the manipulation and outputs the final views, depending on what you need.

I'd read the user guide on the differences between libraries and controllers.


Messages In This Thread
Building application structure - problems with controllers? - by El Forum - 07-12-2012, 12:55 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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