Browse Source

Fixed doc about renderers.

tags/2.0.0-beta
Qiang Xue 12 years ago
parent
commit
881a85d463
  1. 20
      docs/guide/upgrade-from-v1.md

20
docs/guide/upgrade-from-v1.md

@ -136,23 +136,9 @@ with significant improvements. For more details, please see the "assets" subsect
While Yii 2.0 continues to use PHP as its main template language, it comes with built-in While Yii 2.0 continues to use PHP as its main template language, it comes with built-in
support for two popular template engines: Smarty and Twig. The Prado template engine is support for two popular template engines: Smarty and Twig. The Prado template engine is
no longer supported. To use these template engines, simply configure the "view" application no longer supported. To use these template engines, you just need to use `tpl` as the file
component as follows, extension for your Smarty views, or `twig` for Twig views. You may also configure the
`View::renderers` property to use other template engines.
~~~
'view' => array(
'renders' => array(
array(
'tpl' => array(
'class' => 'yii\renderers\SmartyRenderer',
),
'twig' => array(
'class' => 'yii\renderers\TwigRenderer',
),
)
),
)
~~~
Models Models

Loading…
Cancel
Save