Welcome Guest, Not a member yet? Register   Sign In
How do I create object definitions that I can reach from within CI?
#8

[eluser]Phil Sturgeon[/eluser]
[quote author="Starovich" date="1299445535"]Thanks Wan!

Is there any best practices for where I should put my object definition classes using require_once?

I'd rather not use models (although interesting implementation!) as I want to have a clear structure for my software (ie models handle database interactions, period).[/quote]

Libraries work in the exact same way. You can put your files in application/libraries and use:

Code:
require_once APPATH.'libraries/dog.php';
$dog = new Dog();


Messages In This Thread
How do I create object definitions that I can reach from within CI? - by El Forum - 03-06-2011, 09:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB