Re: Accessing data just saved from view

2010-10-12 Thread Jonathan Sibley
Great! Haha, super simple. But thanks a bunch! Jon On Oct 12, 1:08 am, Vivian Bogdan Gmail wrote: >   On 10/12/2010 4:43 AM, Jonathan Sibley wrote: > > > > > Hi all, > > > After a long search, I posted here for help, and after even more > > search I found the solution I was looking for.  In th

Re: Accessing data just saved from view

2010-10-11 Thread Vivian Bogdan Gmail
On 10/12/2010 4:43 AM, Jonathan Sibley wrote: Hi all, After a long search, I posted here for help, and after even more search I found the solution I was looking for. In the PhotoController add() I am passing the data from the recently saved Photo row to the view with: function add() {

Re: Accessing data just saved from view

2010-10-11 Thread Jonathan Sibley
Hi all, After a long search, I posted here for help, and after even more search I found the solution I was looking for. In the PhotoController add() I am passing the data from the recently saved Photo row to the view with: function add() { if (!empty($this->data)) {

Accessing data just saved from view

2010-10-11 Thread Jonathan Sibley
Hello, I have a form to add a Photo in my "add" view (add.ctp). I have two fields in the view: echo $form->hidden('Photo.user_id',array('value'=>$user['User'] ['id'])); echo $form->input('file', array('type' => 'file')); Although there are only two fields here, I am using a Helper that takes th