COMPER Template Parser 2 (NEW 2.5 Beta is out!) |
[eluser]Romyblack[/eluser]
[quote author="Tominator" date="1340026157"]Because I've created Parser before I started to use CodeIgniter (and I was inspirated by phpBB).[/quote] Thanks for your effort in helping more people man, you're doing a great job.
[eluser]Tominator[/eluser]
NEW Beta 2.5 #2 2 critical bugs fixed: - Deprecated error message fixed (thx Romyblack) - Problem with Appends (caused problems in conditions also) fixed (thx Éder S.) Download newest Parser from Parser's beta homepage: http://parser.comper.sk/en/docs/beta
[eluser]Pierre Silva[/eluser]
Hello, I want to say that this library is very good ... and thank you for sharing. I wonder if this in their plans to add modules cycles, something like: Code: <!-- BEGIN MODULE path:pages/lastest data:{some.var}-> Where pages is an array returned by the module which in turn takes the variable. I could make a function Modules :: run adding this code to the library: Code: /** in the view: Code: <!-- MODULES path=welcome/welcome/url somevar={some.var} --> But I could do something similar to Code: $this->CI->load->module('pages/lastest', $some.var)
[eluser]Pierre Silva[/eluser]
OK ... I answer myself. I got progress with the following code: Code: /** In the module controller: Code: public function url($data = '') { In the view: Code: <!-- MODULE path=welcome/welcome/url name=urls id={id} --> Please suggestions or improvements... Complete Parser.php code: I can't attach the file ... I will send it by email to the person who wants it ..
[eluser]Vardenis Pavardenis[/eluser]
Hi, I've problems with the basics :red: I just installed this library, and I'm getting errors... ...controllers/test.php Code: $this->load->library('parser'); views/template_file.tpl Code: <h1>{pseudo-variable}</h1> And I get: http://postimage.org/image/ntjfxeowr/
[eluser]Tominator[/eluser]
Hello, I am very sorry, that I didn't aswered you sooner, but it seems that since EllisLab updated they Forum, my emial notifications stopped ![]() This is a real problem. It's caused by PHP -> PHP 5.4 or higher. You can contact me on helpdesk and I will send you fixed version. I'm finnishing with new version so if nothing goes wrong, in week - two it might be official. Once again I want to say a big sorry to the community. If you have any trouble with Parser write me at helpdesk I'm replying ASAP. Tom.
[eluser]Tominator[/eluser]
I updated official version, so feel free to download it from official website: http://parser.comper.sk/en/docs/beta I was stupid I haven't made this before.
[eluser]@MaxG[/eluser]
Hey Guys, Is there an option to use PHP Code in Templates? Greets!
[eluser]Tominator[/eluser]
No. That's the goal - to create pure HTML universal templates. What about development? Rewritten Includes, rewritten psedo-variables replacement, rewritten appends. I'm going to rewrite blocks also, then finish the tests. I planned just to fix the bugs, but I found out, that some javascript is being erased because of appends, so I have rewritten them. Then to make Parser faster, I have rewritten pseudo-variables replacement. While working on other projects, I discovered that the way how Includes works is not ideal, so they are being changed. Thanks for you patience, I'm trying to do my best, but it's only project for "free time".
[eluser]Ali Fattahi[/eluser]
hello dear I Want to change the views path to behind of application folder due to security reasons . how can I do this ? there is any way to change this path ? Best regards Ali |
Welcome Guest, Not a member yet? Register Sign In |