[TYPO3-dev] $this->cObj->IMAGE error in a extension can't show in FE
Unai Aizpurua
unai at alambre.net
Wed May 11 16:57:47 CEST 2011
Hi All,
I'm developing a very simple extension to list some images and titles.
I have this code in the PHP:
$conf_image = array(
"file" => "uploads/tx_imagelist/johnd.jpg",
"width" => "200",
"height" => "320",
);
$image_element= $this->cObj->IMAGE($conf_image);
echo "<img src='".$image_element."'/>";
And alway get the same error:
Fatal error: Using $this when not in object context in
G:\servidorweb\prueba\fileadmin\lib\showElements.inc on line 244
I must do something else to get it in frontend?
Thanks in advance.
--
Unai Aizpurua
unai at alambre.net
More information about the TYPO3-dev
mailing list