The controller redirects to the view which will create the PDF and then shows the Notice (8) undefined variable error. The error message doesn't appear without the "echo" but all other code in the view is commented out at this stage so that all the view is doing is the echo.
On Feb 15, 4:43 pm, John Andersen <[email protected]> wrote: > Where does it give you an undefined variable error? > Do the error disappear, when you comment out the echo statement? > Enjoy, > John > > On 15 Feb., 17:25, Antar <[email protected]> wrote: > > > > > > > > > In my controller: > > > $reprint = "SELECT distinct round FROM vw_del_details where date = > > '".$ddate."' AND round BETWEEN ".$r_from." AND ". $r_to; > > > $this->set('rp',$reprint); > > > In my view: > > > echo $rp; > > > which gives an undefined variable error -- 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
