Hi Rich
Thanks for that !! One more question..
If I want to change the
($this->UserFavourite->save($this->data)) {
where the controller gets the info from the view..
echo $form->input('user_id');
echo $form->input('item_id');
I want the controller not to go the t
g as you follow the naming
conventions for the fields of course.
Good luck,
- Original Message -
From: "gabriel" <[EMAIL PROTECTED]>
To: "CakePHP"
Sent: Friday, September 26, 2008 10:59 AM
Subject: Adding to db without going to view..?
>
> Hi, does anyone
You use it the way you have it and just change the section in the add
function to redirect . . .
-> $this->redirect(array('action'=>'view'));
Every function should have a related view file unless you state
otherwise with a layout call.
if your action is "add" then you have to have an add functi
Hi, does anyone know how I can add (like a favourite to a db table)
without going to the add view?
I have a link
testsite/user_favourites/add/2
IF I click on it it, it takes me to the add view (which has a model
and controller)
I DON'T want to go to the add view, but the 'view' view which shows