Welcome Guest, Not a member yet? Register   Sign In
Unable to load library in HMVC of wiredesign
#1

[eluser]ankur0101[/eluser]
Hello,
I have latest CI with HMVC of Wiredesign.

I have a module called accounts.
Structure is like this >

modules
--accounts
--controllers
--models
--library
--status_message.php


I want to call status_message library in model. Hence I wrote
Code:
$this->load->library('accounts/status_message');
But CI showing error as Unable to load library status_message.
Very strange problem.
#2

[eluser]PhilTem[/eluser]
You don't follow the naming-conventions.
#3

[eluser]ankur0101[/eluser]
According to user_guide, first letter should be capital.
I made it capital, now my filename is Status_message.php but still giving same error.

Code:
Unable to load the requested class: status_message
#4

[eluser]ankur0101[/eluser]
Problem SOlved.
Folder name should be libraries and not library.

Thanks you so much.




Theme © iAndrew 2016 - Forum software by © MyBB