xsanisty / SlimBoard

Starter Application built on Slim Framework in MVC (and HMVC) environment
http://www.xsanisty.com/project/slim-starter
MIT License
287 stars 72 forks source link

How to use smarty? #9

Open dodyw opened 10 years ago

dodyw commented 10 years ago

I see there function bootTwig. If I want to use smarty then should I do the following work?

ikhsan017 commented 10 years ago

Hi Dody,

view initialization occurred in the `app/config/slim.php`` , so you need to replace

this line 'view' => new \Slim\Views\Twig() with this 'view' => new \Slim\Views\Smarty()

the bootTwig method just used for registering twig extension, for setting up smarty in Slim app, please refer to this page https://github.com/codeguy/Slim-Views

regards Ikhsan