you need to specify the controller in the helper, look for this:
array('action' => 'edit', 'id' => $record->getId()
change to this:
array('controller'=>'book','action' => 'edit', 'id' => $record->getId()
if you dont specify the controller the helper use the current one.
:
function back($url = array('controller' => 'owner', 'action' => 'edit', 'id' => $record->getId()))
mmmmm, thats not gonna work, $record is supposed to be an object. that is usually used when looping collections. just use $id
function back($url = array('controller' => 'owner', 'action' => 'edit', 'id' => $id))
oops, i forgot to mention that also this is invalid php code:(you cant declare arguments inside arguments)
function back($url = array('controller' => 'owner', 'action' => 'edit', 'id' => $id)){ //<-- invalid code
just leave it as if it was at the beginning:
function back($url = array('controller' => 'owner', 'action' => 'edit')){
and use it like
$your_helper->back(array('controller' => 'owner', 'action' => 'edit','id'=>$id));
1 to 8 of 8