My question is in reference to the following post by Andy Dawson. I
have successfully used his advise in my app as posted. I do now have
working back references in my edit views and am very appreciative, I'm
just trying to understand the details.

What I don't understand is the relevance of _App in the following
code. If I change ['_App']['referer'] and '_App.referer' to
['referer'] and 'referer' in the controller and view respectively I
break the code. Also, I am not able to find this _App array in the
debug output. What is the relevance? And how do I find it with debug?

tia, McS

// ///////// from:
// 
http://cakephp.1045679.n5.nabble.com/Redirect-after-an-edit-operation-in-a-paginated-view-tc1317168.htm
Mar 09, 2009; 10:09am AD7six

In the controller:
if (!$this->data) {
        $this->set('referer', $this->referer($default));
} else {
        if ($this->Model->save()) {
                $this->redirect ($this->data['_App']['referer']);
        }
}

in the view:
...
echo $form->input('_App.referer', array('value' => $referer, 'type' =>
'hidden'));
...
//
// /////////

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to