Skip to content

ytkhs/cakephp2-smarty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

SmartyViewClass for CAKEPHP 2.x with Smarty 3.x

How to use

install Smarty3.x to /vendors, via Composer

$ curl -s "http://getcomposer.org/installer" | php
$ php composer.phar install 

locate SmartyView.php to app/View/SmartyView.php

set ViewClass at Controller

	 class AppController extends Controller {
	 	public $viewClass = 'Smarty';
	 }

setup cache & complle directory

$ mkdir -p app/tmp/smarty/cache/
$ mkdir -p app/tmp/smarty/compile/
$ chmod 0777 app/tmp/smarty/cache/
$ chmod 0777 app/tmp/smarty/compile/

if you need, make your plugin and config directory

$ mkdir -p app/Lib/SmartyPlugins/
$ mkdir -p app/Lib/SmartyConfigs/

About

ViewClass for CakePHP 2.x to use Smarty3.x

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages