Really Simple Smarty 3 Library for Codeigniter - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Really Simple Smarty 3 Library for Codeigniter (/showthread.php?tid=36313) |
Really Simple Smarty 3 Library for Codeigniter - El Forum - 05-08-2011 [eluser]irrg[/eluser] gotcha. Thanks for your speed on this. Hope the protected thing gets fixed in Reactor soon, 'cause that sounds like a bad idea. Really Simple Smarty 3 Library for Codeigniter - El Forum - 05-08-2011 [eluser]Vheissu[/eluser] [quote author="irrg" date="1304932751"]gotcha. Thanks for your speed on this. Hope the protected thing gets fixed in Reactor soon, 'cause that sounds like a bad idea.[/quote] Yeah man, it's even broken Modular Extensions apparently and a few other things as well. I might go trawling through the commits looking for who made the change and why. Really Simple Smarty 3 Library for Codeigniter - El Forum - 06-22-2011 [eluser]kristapsv[/eluser] Hi, first of all thank you for the smarty CI integration, but I have some trouble putting it together with Phil Sturgeon's template library. The problem is that in layout file the php code gets executed, but in view file only smarty code. I want that in all view and layout files only smarty language code gets executed. Codeigniter 2.0.2 Ci-Smarty Phil Sturgeon's template library I have 1 controller, 1 layout and 1 view file Controller: Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); layout file default.tpl Code: <!DOCTYPE html> view file home.tpl Code: {assign var=foo value='baa'}{$foo}<?php echo 'PHP is ingored here'; ?> Template library config: parser_enabled = TRUE parser_body_enabled = TRUE May I shoudn't use then layout feature in template library as Smarty provide capabilities for layouts via template inheritance anyway ? Really Simple Smarty 3 Library for Codeigniter - El Forum - 06-23-2011 [eluser]eggzy[/eluser] I'm having problems with this library working with phil's template library. I have front_controller which loads layout: Code: $this->template and I have modules and in every module view is passed like this: Code: $this->template and view: Code: <?php foreach ($query as $row): ?> When I upload MY_Parser.php everything breaks but when I remove it posts are shown normally. I'd like in front layout to use smarty tags like {body} or similar to show modules. |