20.11.2014 Views

O Guia Definitivo do Yii 1.1

O Guia Definitivo do Yii 1.1

O Guia Definitivo do Yii 1.1

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<br />

If we create a widget with a set of initial property values, they will take precedence and be<br />

merged with any applicable skin. For example, the following view code will create a pager<br />

whose initial values will be array('header'=>'', 'maxButtonCount'=>6, 'cssFile'=>false),<br />

which is the result of merging the initial property values specified in the view and the<br />

classic skin.<br />

<br />

Note that the skin feature <strong>do</strong>es NOT require using themes. However, when a theme is<br />

active, <strong>Yii</strong> will also look for skins under the skins directory of the theme's view directory<br />

(e.g.WebRoot/themes/classic/views/skins). In case a skin with the same name exists in<br />

both the theme and the main application view directories, the theme skin will take<br />

precedence.<br />

If a widget is using a skin that <strong>do</strong>es not exist, <strong>Yii</strong> will still create the widget as usual without<br />

any error.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!