Pass $data array element from MY_Controller to view |
[eluser]Unknown[/eluser]
I'm probaly being a div but I wondered if anyone can recommend a way I can populate a view from MY_Controller. What I want really is a login form on every page if they're logged. User menu if they're not. Easy probaly. Code: class MY_Controller extends Controller { and the view file Code: <div id = "logo" class = "span-11"> dont worry sussed it, just used vars.
[eluser]flaky[/eluser]
I'd recommend you to use Template Library http://www.williamsconcepts.com/ci/codei.../template/ this way you can configure your default regions and which region what to display |
Welcome Guest, Not a member yet? Register Sign In |