Welcome Guest, Not a member yet? Register   Sign In
I have a problem with new module
#5

[eluser]huutri[/eluser]
This is code in view layer in new my module:
$this->load->module_model('productcategories','mproductcategories');
$listcate = $this->mproductcategories->GetAllCategories('vn');

I get a error: "A PHP Error was encountered
Severity: Notice
Message: Undefined property: CI_Loader::$mproductcategories
Filename: views/index.php"

"Fatal error: Call to a member function GetAllCategories() on a non-object"

Can you explain to me how to call a function in model from view layer in a module. Thanks you very much


Messages In This Thread
I have a problem with new module - by El Forum - 01-10-2010, 08:49 AM
I have a problem with new module - by El Forum - 01-10-2010, 09:44 AM
I have a problem with new module - by El Forum - 01-10-2010, 09:48 AM
I have a problem with new module - by El Forum - 01-10-2010, 09:53 AM
I have a problem with new module - by El Forum - 01-10-2010, 09:57 AM
I have a problem with new module - by El Forum - 01-10-2010, 10:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB