Welcome Guest, Not a member yet? Register   Sign In
CI's Library and Helper Basics
#1

[eluser]Fielder[/eluser]
So I followed and learned quite a bit, from scratch, going over the CI video tutorials. And the way that tutorial was done seemed to only scratch the surface of CI's capabilities, but was a good starting point for me. I'm new to MVC and OOP, but would like some pointers on what libraries really are, and how I can use them to really utilize CI flexability.
When would I want to use helpers vs. libraries?
What about a custom config file. Can I define paths and other regularly used variables in the config file, then somehow call them throughout the application?

Ive read through quite a bit of code that has been posted just learning how other more experienced programmers structure it. I see a lot of $this->load-library() and $this->load->view($this->xxxx->yyyy, $data). So in this example from what I gather the load->view is going into a function (called yyyy) inside the loaded library (xxxx) to run.

Seems like I've seen some code with people "building" views then outputting them. Is that a good practice?

I don't mind spending time reading the wiki and manuals.. and will probably spend some time this evening just trying to grasp the concept. Any other good walk-throughs for moderate or more advanced coding techniques out there?

Thx.


Messages In This Thread
CI's Library and Helper Basics - by El Forum - 04-24-2009, 07:58 PM
CI's Library and Helper Basics - by El Forum - 04-24-2009, 10:53 PM



Theme © iAndrew 2016 - Forum software by © MyBB