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.050 seconds

I've evaluated lots of other Joomla Component Dev tools such as Shell Manager (J)enesis Danny's Joomla! 1.5 MVC Component Code Generator Marco's Component Maker and I must admit that I love what I see on your site! Lots of potential... Otherwise Great Job and keep up the good work!!!
Clifton (forum)

Get Started