Welcome, Guest
Username: Password: Remember me

TOPIC: require_once in model

require_once in model 13 Mar 2012 14:34 #1588

  • M4d3L
  • M4d3L's Avatar
  • Offline
  • Senior Member
  • Posts: 45
  • Thank you received: 7
  • Karma: 3
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 administrator has disabled public write access.
The following user(s) said Thank You: devil
Time to create page: 0.061 seconds

Get Started