Welcome Guest, Not a member yet? Register   Sign In
Load Model in subdirectory (3 level)
#6

[eluser]Glazz[/eluser]
I have tested it and it works.

Folders:
http://dl.dropbox.com/u/19002464/teste.png


Model code for test:
Code:
<?php

class Teste_model extends CI_Model{
function teste(){
echo 'teste';
}
}

Try to use $this->load->model('your/folders/here/Product_model');
and then $this->Product_model->your_function_here();

In windows should work with product_model and Product_model it doesn't matter if it is upper case or not, but in unix systems it fails i guess.


Messages In This Thread
Load Model in subdirectory (3 level) - by El Forum - 05-11-2012, 01:40 PM
Load Model in subdirectory (3 level) - by El Forum - 05-11-2012, 02:38 PM
Load Model in subdirectory (3 level) - by El Forum - 05-12-2012, 01:38 AM
Load Model in subdirectory (3 level) - by El Forum - 05-12-2012, 06:15 AM
Load Model in subdirectory (3 level) - by El Forum - 05-12-2012, 10:35 AM
Load Model in subdirectory (3 level) - by El Forum - 05-12-2012, 10:59 AM
Load Model in subdirectory (3 level) - by El Forum - 05-14-2012, 07:06 AM
Load Model in subdirectory (3 level) - by El Forum - 05-14-2012, 07:45 AM
Load Model in subdirectory (3 level) - by El Forum - 05-14-2012, 07:54 AM
Load Model in subdirectory (3 level) - by El Forum - 05-14-2012, 08:38 AM
Load Model in subdirectory (3 level) - by El Forum - 05-14-2012, 09:10 AM
Load Model in subdirectory (3 level) - by El Forum - 05-14-2012, 09:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB