Welcome, Guest
Username: Password: Remember me

TOPIC: task on a specific controller !! how?

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

  • albert
  • albert's Avatar
  • Offline
  • Senior Member
  • Posts: 70
  • Thank you received: 2
  • Karma: 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
The administrator has disabled public write access.
Time to create page: 0.096 seconds

Get Started