Welcome Guest, Not a member yet? Register   Sign In
undefined function when using HMVC with CI 2.1.2
#6

[eluser]rei[/eluser]
[quote author="iansane" date="1344909272"][quote author="emateu" date="1344891657"]And the model should be named test_model.php and inside:

Code:
class Test_Model extends CI_Model {
[/quote]


I think I have it working fine now and don't have to name my model Whaterver_Model

I started using $ar = $this->load->model('test/test'); and it wouldn't work but then when I changed the module to welcome so I could do $ar = $this->load->model('welcome/test'); it works. So I think something about the module and the model both being named 'test' was causing the loader to bug out and not load the class but at the same time not throw a error of any kind.

I'll be sure to post back here if anything else comes up but right now I'm using php-activerecord and getting records from the db so I think it's all good.

Thanks[/quote]

Any updates on this one? I also want to use CI+PHPAR+HMVC. Any further issues in using it?


Messages In This Thread
undefined function when using HMVC with CI 2.1.2 - by El Forum - 08-13-2012, 01:42 PM
undefined function when using HMVC with CI 2.1.2 - by El Forum - 08-13-2012, 01:57 PM
undefined function when using HMVC with CI 2.1.2 - by El Forum - 08-13-2012, 02:00 PM
undefined function when using HMVC with CI 2.1.2 - by El Forum - 08-13-2012, 04:11 PM
undefined function when using HMVC with CI 2.1.2 - by El Forum - 08-13-2012, 06:54 PM
undefined function when using HMVC with CI 2.1.2 - by El Forum - 12-02-2012, 07:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB