Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

require_once in model 13 Mar 2012 14:34 #1588

  • M4d3L
  • M4d3L's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 45
  • Thank you received: 7
in the model created,

use
require_once( dirname(__FILE__) . DS . ".." .DS.'classes'.DS.'jmodel.list.php');

else of
require_once(JPATH_ADMIN_BUILDING .DS.'classes'.DS.'jmodel.item.php');

so model can be loaded by module.

Or put a constant.php into the project root for module to be able to load model.
The following user(s) said Thank You: devil

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.081 seconds

Freakin' Awesome!!! J-Cook is simply awesome - whether you're a highly experienced developer or complete novice whether you're building a small inventory component or a complete community solution! The beauty comes from a fast slick and reliable platform that readily provides developers with everything they'll need to build the backbone of a solid and secure component with wizards for authoring access publishing aliasing created/modified by dates... you name it COOK provides it! J-Cook really surpasses all of the 'competition' as far as MVC tools are concerned! Try love it and get cooking!
learnthrusong (JED)
          

Get Started