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

Just wanted to congratulate you on the J-Cook website / web development tool. In a couple of visits I've had a play around with Cook and have to say I think it is fantastic.  I've played with a number of component builders in the past and yours is certainly looking like the best so far. I'd also like to help you spread the word - I'm really surprised more people aren't excited about this tool. Good luck with the project.
Dean

Get Started