Welcome Guest, Not a member yet? Register   Sign In
code organizing
#2

[eluser]xwero[/eluser]
MVC doesn't stop you from putting classes in subdirectories. CI has two places where you can put libraries : system/libraries and application/libraries.

For example you put your libraries in application/libraries with the same directory structure you are using you can call the spagetti class as follows
Code:
$this->load->library('food/pasta/spagetti');


Messages In This Thread
code organizing - by El Forum - 10-03-2008, 04:25 AM
code organizing - by El Forum - 10-03-2008, 04:39 AM
code organizing - by El Forum - 10-03-2008, 05:08 AM
code organizing - by El Forum - 10-03-2008, 05:22 AM
code organizing - by El Forum - 10-03-2008, 05:30 AM
code organizing - by El Forum - 10-03-2008, 05:40 AM



Theme © iAndrew 2016 - Forum software by © MyBB