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

TOPIC:

task on a specific controller !! how? 16 May 2013 12:44 #7193

  • albert
  • albert's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 70
  • Thank you received: 2
Hi, I have 3 controller files, the controller.php on the component root, and then the xxxforms.php and xxxformsitem.php on the controller directory. (everything on the frontend)

I want to execute a task that contain the following code:
$get = JRequest::get('get');
$model = $this->getModel('xxxformsitem');
$item = $model->setId($get);
$item = $model->getItem();
...

if i place this task on the controller.php file says that the setId item is not found, if i place on the xxxformsitem.php (i think it should be located here), the task is not executed, i do not know how to indicate the controller to be read.

any idea?
thanks in advance

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

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

  I am so so so looking forward to see how far this can go. Seems like the skies the limit at the moment.
Kevin (Forum) 

Get Started