Smarty View class plugin for CakePHP 2.0
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
View initial commit May 29, 2012
.gitignore
README.md Fix readme format May 29, 2012

README.md

cakephp-smartyview

Smarty View class and helpers plugin for CakePHP 2.0 and later. Works with Smarty version 2.6 and 3.1 both.

Installation

In plugin directory of your app:

git git://github.com/news2u/cakephp-smartyview.git SmartyView

How to use

Install Smarty to Vendor directory.

Set $viewClass in AppController class;

class AppController extends Controller {   

    ...      

    public $viewClass = 'SmartyView.Smarty';
    public $helpers = array(
        'SmartyView.SmartyHtml', 
        'SmartyView.SmartyForm',
        'SmartyView.SmartySession',
        'SmartyView.SmartyJavascript', 
        'Html', 'Session'
    );

    ...
}

And put Smarty Template in View directory instead of .ctp file.

Reference

SmartyView original code are written by tclineks and icedcheese:

Original Helpers are also written by tclineks