Modular Extensions - Parser Module |
[eluser]wiredesignz[/eluser]
I wrote this Parser function a while back and modified it for CI today. It allows you to embed functions and data in a template. Could someone or two take a look and see if the code can be improved or optimised. Many TIA's Code: /**
[eluser]wiredesignz[/eluser]
This version uses the existing parser code and allows function calls from templates ie: {@site_url} Code: <?php if (!defined('BASEPATH')) exit('No direct script access allowed');
[eluser]wiredesignz[/eluser]
Also available on the wiki: http://codeigniter.com/wiki/Modular_Exte...er_Module/
[eluser]Molchy[/eluser]
Hi, I am using: - Latest version CI - Latest version HMVC - Codeigniter Parser Class Problem is that function $this->parser->parse('something', $data); doesn't work inside modules it says can not load requested file. But it works in main controllers "application/controllers". MY SYSTEM: - "application/controllers/..." -> Are Modules Loader into base template (Using Parser) - "Modules beeing loaded" -> Also using parser !!! BREAKING !!! $this->load->view works I tryed found solution and tryed few tweaks but nothing works I would like to use HMVC and codeigniter Parser class Any ideas solution ? Above library also doesnt work with new HMVC it has pass 4 years. |
Welcome Guest, Not a member yet? Register Sign In |