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

Hello everyone

I am new here and I am also new to CI, so please forgive me if my question makes no sense. I will explain it based on an example:

I would like to have template - the main index.php of the template that would include some custom tags which would be later on parsed by my parser (kind of a simplified joomla templating). These tags would get replaced by different views as a part of the whole page. My question now is, if I have, for example, a template, that contains the main view (content of my website) and, let's say, login window, what happens if I want to log in and the form action is a controller of this login window which was not loaded (this is what I suppose, so will it load it automatically or throw an error?), because the whole webpage was loaded by the main view's controller. Would You suggest to go for a template controller that would be main controller that loads rest of controllers needed (main view's controller, login window's controller, etc.)?? How would You perform such controllers loading? Is there a dedicated function or should it be a helper function written myself?

Thanks in advance for any effort You guys will put in solving my problems.

Kind Regards

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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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