From 881a85d463a4593d510aa2f907b01ce4ac167e31 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Mon, 6 May 2013 20:24:22 -0300 Subject: [PATCH] Fixed doc about renderers. --- docs/guide/upgrade-from-v1.md | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/docs/guide/upgrade-from-v1.md b/docs/guide/upgrade-from-v1.md index 1aab3d1..5da5254 100644 --- a/docs/guide/upgrade-from-v1.md +++ b/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 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 -component as follows, - -~~~ -'view' => array( - 'renders' => array( - array( - 'tpl' => array( - 'class' => 'yii\renderers\SmartyRenderer', - ), - 'twig' => array( - 'class' => 'yii\renderers\TwigRenderer', - ), - ) - ), -) -~~~ +no longer supported. To use these template engines, you just need to use `tpl` as the file +extension for your Smarty views, or `twig` for Twig views. You may also configure the +`View::renderers` property to use other template engines. Models