Welcome Guest, Not a member yet? Register   Sign In
TemplatePower & CodeIgniter
#1

[eluser]Unknown[/eluser]
Hi all,

[ Found the solution: http://ellislab.com/forums/viewthread/128205/ ]

I have a problem with my template parser. I'm using TemplatePower. The problem is that I can't get it to work. Everytime, no matter what I try, an error shows up. I think the problem is, that the TemplatePower php file, has two classes inside it.

In a nutshell:

TemplatePowerParser ( params: tpl file & filetype )
TemplatePower extends TemplatePowerParser ( params: tpl file & filetype ).

So you should load the TemplatePower class, wich sends the tpl file & file type to the TemplatePowerParser class.

But the errors I get are:

Quote:A PHP Error was encountered

Severity: Warning

Message: Missing argument 1 for TemplatePowerParser::TemplatePowerParser(), called in F:\Xampp\htdocs\Administration\Library\libraries\Loader.php on line 931 and defined

Filename: libraries/tpl.php

Line Number: 61
A PHP Error was encountered

Severity: Warning

Message: Missing argument 2 for TemplatePowerParser::TemplatePowerParser(), called in F:\Xampp\htdocs\Administration\Library\libraries\Loader.php on line 931 and defined

Filename: libraries/tpl.php

Line Number: 61

Would anybody be so kind to download the TemplatePower library and explain me how it works?

Thanks in advance

PS: I use a slightly moddified file, so this is the one I use: click

PPS: It's the second class that you're supposed to include!




Theme © iAndrew 2016 - Forum software by © MyBB