Controller logic within a view...
This might be obvious, but i've only just started using fuel, i was wondering if anyone could help..
For my site I have a footer section which contains some information, and i also want it to contain a form for users to subscribe to a newsletter. My footer is currently a block.
The form is going to need some controller logic... but I don't know how to do this!
In Zend, there is a function $this->action('method','controller'); that you execute from the view and this will include the relevant view file and has the controller logic too. Is it possible to use multiple controllers on one page in fuel?
What's the best way to go about doing this? (where should i put my logic!)
Comments
You may already be familiar with CI controllers but if not, here is some more info:
http://codeigniter.com/user_guide/general/controllers.html