Forums

$this->template

mylive 20 Jan, 2009
Hello all :-)

i need the var $this->template ... what is need to do, to get this var in Chronoengine Forms ?

Thanks a lot

René
GreyHead 20 Jan, 2009
Hi René,

I've no idea, try echoing $this->template and see if the object is available.

Bob
mylive 20 Jan, 2009
No .. i get this message
Fatal error: Using $this when not in object context in /srv/www/htdocs/trendimobilien/components/com_chronocontact/chronocontact.html.php(320) : eval()'d code on line 1
GreyHead 20 Jan, 2009
Hi René,

So it's not available in that form :-(

Say a bit more about what you need to do.

Bob
mylive 20 Jan, 2009
i like to load some pictures ......

and the pictures are diffrent every template ... some are darke

my english is bad ..
GreyHead 20 Jan, 2009
Hi René,

Try
<?php
global $mainframe;
$template = $mainframe->getTemplate();
?>

Bob

PS Ihr Englisch ist besser als mein Deutsch :-(
mylive 20 Jan, 2009
Perfekt !!!!
Thanks a lot ! :-)
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger