[email protected]
[Top] [All Lists]

Re: FPDF: pass variable from controller to view

Subject: Re: FPDF: pass variable from controller to view
From: John Andersen
Date: Tue, 15 Feb 2011 08:43:07 -0800 PST
Where does it give you an undefined variable error?
Do the error disappear, when you comment out the echo statement?

On 15 Feb., 17:25, Antar <i.chart...@xxxxxxxxxxx> 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 
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
cake-php+unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at 

<Prev in Thread] Current Thread [Next in Thread>