Welcome Guest, Not a member yet? Register   Sign In
Should I use output class? [custom Template Parser]
#1

[eluser]Tominator[/eluser]
Hi there!

First of all, I want to give big thank to developers of CI, because I love it!

I'm currenly working on CI version of my Template Parser.

Why it's better than default?

1, Includes Conditions
2, Theme managing
3, You can use INCLUDE statements: <!-- INCLUDE overall_header.php -->
4, There are many features which I can't say right in English Big Grin Big Grin

Ok then, my problem. You can get output from parser by 2 ways:
1, Return value of function Parse
2, Parameter Show

Parameter Show working like this:
Code:
echo $content;

My question is:
Should I use Output class?
If yes, should I replace output by new (parsed) output or just add new lines to (exists) output?


Please try it and write bugs, or suggestions.

Link:
http://parser.comper.sk/en/

Thanks,
Tom
#2

[eluser]Tominator[/eluser]
Nobody can help me?
Nobody tried?

Because I'm waiting for your feedback to complete the class ... Sad
#3

[eluser]Tominator[/eluser]
Problem solved! I'm definitely using Output class (That means Show is working another way)

Final class: http://ellislab.com/forums/viewthread/153269/




Theme © iAndrew 2016 - Forum software by © MyBB