Smarty in CI

So, is caching a good enough reason for incorporating Smarty in CI?

It is up to you. If you think some one is going to take over the design somewhere in the future and that person doesn't know how to develop or if you just like the Smarty way of outputting you can add it.

Let's just assume all of my designers are also well versed enough in PHP. Is the caching feature enough benefit to invest in Smarty? BTW, what is the "Smarty way of outputting?"

@Sam : that's why i added you can use other libraries like Khaos::KhCache

[eluser]Sam Dark[/eluser]
Well, Khaos::KhCache seems to be really like Smarty's caching.
If your designers are good with php it's better not to use Smarty.

[quote author="CodeIgniterNewbie" date="1208886085"] BTW, what is the "Smarty way of outputting?"[/quote]
If you use Smarty you have to use the methods it provides instead of the CI outputting methods
// CI
$data['post'] = $formvars;
$data['error'] = $this->error;
// Smarty
$this->smarty->tpl =& new Guestbook_Smarty;
$this->smarty->tpl->assign('error', $this->error);
I'm not sure if smarty code is correct but it gives you an idea

@Sam : maybe you can suggest an advanced cache library Wink

[eluser]Sam Dark[/eluser]
The one mentioned previously seems to be good enough.

// I'm using almost the same syntax in my View library.

Here are two more : cache and sparks

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.