Page 1 of 1

[Solved] DisplayImage in Front-End

Posted: Sat Mar 22, 2008 3:11 pm
by s7orm
Hi,

I wanted to ask if there is a method to display an image in the front end (I saw (and currently use) that there is such a method in the admin theme):

Code: Select all

$gCms->variables['admintheme']->DisplayImage('icons/system/edit.gif', $this->Lang('edit'),'','','systemicon')
I guess I could use the same method for the front end, but it is safe?

Thanks in advance.

Re: DisplayImage in Front-End

Posted: Sat Mar 22, 2008 3:21 pm
by calguy1000
I assume you're writing a module.

If you use the CGExtensions module there's a DisplayImage method there.

Re: [Solved] DisplayImage in Front-End

Posted: Wed Mar 26, 2008 8:48 am
by s7orm
Yes I am developing a new module. Well I didn't want to install a whole new module just for 1 method, so I just checked, how it is defined in CGE (didnt thought it will be so simple) and I wrote my own (similar) function.

Thanks for the tip.