Re: Passing variable From Controller to a View

2011-03-23 Thread Tilen Majerle
$this->set('variable_name_in_view', $her_value); //in controller -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/3/23 Shashank > Hi Guys, > This might be a stupid question, but i am really not getting it into > play after so many tries. > What i have is a left.ctp file in my app/views/ele

Passing variable From Controller to a View

2011-03-23 Thread Shashank
Hi Guys, This might be a stupid question, but i am really not getting it into play after so many tries. What i have is a left.ctp file in my app/views/elements And what i am trying to do is, i have a function show in my users controller and in that function i am setting a variable to use in view fi