Welcome Guest, Not a member yet? Register   Sign In
include "" vs $this->load->library()
#1

[eluser]Dave Stewart[/eluser]
Hello,

New to the ways of CI, I'm aiming to adopt best practices and attain a high belt in CI-fu!

From what I can tell from the documentation, include is now effectively redundant because any classes or functions are loaded dynamically using $this->load->class/library/helper/etc().

But are there any situations where you would use include? For example your own external functions, or should I look at converting all my classes and functions to CI Libraries and Helpers?

Would I still use includes in views (as I saw someone else do), or should I let the controller handle everything, and only have plain old vanilla HTML in the view files?

Thanks for reading,
Dave


Messages In This Thread
include "" vs $this->load->library() - by El Forum - 06-25-2008, 04:04 AM
include "" vs $this->load->library() - by El Forum - 06-25-2008, 04:26 AM
include "" vs $this->load->library() - by El Forum - 06-25-2008, 04:34 AM
include "" vs $this->load->library() - by El Forum - 06-25-2008, 05:09 AM
include "" vs $this->load->library() - by El Forum - 06-25-2008, 06:05 AM
include "" vs $this->load->library() - by El Forum - 06-25-2008, 06:15 AM
include "" vs $this->load->library() - by El Forum - 06-25-2008, 06:51 AM
include "" vs $this->load->library() - by El Forum - 06-25-2008, 07:01 AM
include "" vs $this->load->library() - by El Forum - 06-25-2008, 07:06 AM
include "" vs $this->load->library() - by El Forum - 06-25-2008, 07:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB