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

I would like to Thank you for the Speed and the Quality of your work.
Pantelis (Forum)

Get Started