In layout I am getting some value:
$quote = Quotes::model()->findAll(array('order'=>'id DESC', 'limit'=>1));
And it works Ok, no matter it is a bad practice to call model from view. In another layout in the same folder I cant do the same. If it matters, this layouts shows on the same page. I am responding straight to the Model and the Controller doesnt render any variables to view. Is there a way to send this var to custom layout or view?