[eluser]Sayian[/eluser]
Im new to CI, Im also new to OOP.
I have read the manual here on CI, as well as some OOP tutorials ect.
I Have CI Installed and Understand the Concept of what its for.
Here are my questions:
1. In the controller functions, if I placed a variable in lets say the index function, can that variable be accessed outside of that function? Like in another function?
2. In my view files I need to display different HTML depending on if the user is logged in or not, how would this be possible? Isnt it bad practice to use php syntax to check for things in view files?
3. I'd like to set some global variables and have them included in my controller's everytime they load, and if so, would these variables be available to my functions in the controller file?
I guess coming from a procedural way of coding it is difficult for me to understand the scope of where variables stop and where they can be used / not used.
Thanks for the help.