Jump to content
Larry Ullman's Book Forums

Change The Layout Used To Encase The View?


KeepLearning
 Share

Recommended Posts

Version 0.5

 

page 157

 

Quote:

"# protected/controllers/SiteController.php

public function actions() {
return array(
'page' => array('class' => 'CViewAction',
'defaultView' => 'about')
);
}
To change the layout used to encase the view, assign the alternative layout name to

the layout attribute in that array."

 

Larry,

 

I understand the example, but not the last sentence. It doesn't seem to relate to the example. Can you please explain it in other words?

 

Thanks. 

 

Link to comment
Share on other sites

 Share

×
×
  • Create New...