Jump to content


HMVC Grocery Crud structure

hmvc

  • Please log in to reply
2 replies to this topic

#1 RSPeres

RSPeres

    Member

  • Members
  • PipPip
  • 12 posts

Posted 13 January 2013 - 03:34 PM

Hi,

I'm trying to use Grocery Crud within HMVC. Following the tread http://www.grocerycr...c-grocery-crud/ I've could manage to use the example. But, i think I'm doing something wrong. I can't create a new module and instantiate Grocery Crud in it. Everything only works if I put the controllers inside Grocery Crud Module.
Example: I have grocery crud module. Now I want a users module that uses the grocery crud. The correct will be:

modules
-- grocerycrud
-- users


How can I make this work?
I think If all kind of controllers that uses grocery crud needs to be inside Grocerycrud module it is breaking the HMVC paradigm.

Thank's in advance

#2 goFrendiAsgard

goFrendiAsgard

    Advanced Member

  • Members
  • PipPipPip
  • 137 posts

Posted 14 January 2013 - 05:52 AM

Are you sure you don't make any mistake following the instruction?
What kind of error do you get?

PS: there is already a project with CodeIgniter, groceryCRUD and HMVC combined. So otherwise you want to learn something, you don't need to get your hand dirty :)
https://github.com/g...diAsgard/No-CMS

No-CMS homepage : http://www.getnocms.com
No-CMS forum : http://www.getnocms.com/forum
No-CMS Github page : https://github.com/g...diAsgard/No-CMS

 

Please don't mix up No-CMS and groceryCRUD issues.
(eg: user authentication etc is No-CMS specific issue and has nothing to do with groceryCRUD)

 


#3 RSPeres

RSPeres

    Member

  • Members
  • PipPip
  • 12 posts

Posted 03 March 2013 - 01:14 AM

I still doesn't figure out how to use Grocery Crud in HMVC! I've downloaded the example from thread http://www.grocerycr...c-grocery-crud/ but everytime I create a new module that is supposed to use Grocery crud I receive the following message: Unable to load the requested class: grocery_crud

 

--modules
---- grocery_crud
---- users

In users controller 
$this->load->library('grocery_crud');

What am i doing wrong???

thank's in advance







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users