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.086 seconds
Great UX great performance and definitely a time saver. It only took me 10 minutes of playing around before purchasing a subscription and right now I just want to throw more money at you! I just started a new project and after just 4h I can already tell it probably saved me several days of work. I'm building a wholesale ordering system with sales rep management. I have not looked at the code yet but so far: impressive.
flip (Forum)

Get Started