Skip to content

news2u/cakephp-smartyview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Smarty View class plugin for CakePHP 2.0

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages