Yii 1.1: extendedpradoviewrenderer

Prado View Renderer with Twig-like markers
3 followers

This is fully functional Prado View Renderer with a little change.

Together with markers <%= $var %> and <% expression %>

you can use markers in twig style {{ $var }} and {% expression %}

Installation

Put file EPradoViewRenderer.php to "protected/components/" path.

Add to config:

Version 0.2

Added support for {{base}} or {{BASE}} marker, that transforms into <?php echo Yii::app()->request->baseUrl ?>

'components'=>array(
  ...........
  'viewRenderer'=>array(
      'class'=>'EPradoViewRenderer',
  ),
),

Usage

the same as Prado View Renderer :)

Resources

Be the first person to leave a comment

Please to leave your comment.

Create extension