The WorksForWeb Community Forums
Welcome to the WorksForWeb community forums. Here you can discuss WorksForWeb products with others and contribute to the rapidly growing WorksForWeb community. Please note that while WorksForWeb staff try to maintain presence on the forums, this is not the most reliable way to contact WorksForWeb staff. In case you require a timely response from WorksForWeb on an issue, please open a support ticket here. For pre-sales questions, please open a sales ticket here.

Welcome, Guest. Please login or register.
May 22, 2012, 07:02:16 PM

Login with username, password and session length
Search:     Advanced search
Added the iLister-related Boards

Rate My Site Boards Added

Merged iAuto and iRealty Support Forums together

Several new tips in the Tips and Tricks section
1,604 Posts in 625 Topics by 1,179 Members
Latest Member: bobsteam
* Home Help Search Login Register
+  The iAuto/iRealty/iLister Support Forum
|-+  iAuto and iRealty v.2.x - 3.x
| |-+  General iAuto Discussions
| | |-+  smarty {php} function
« previous next »
Pages: [1] Print
Author Topic: smarty {php} function  (Read 1646 times)
jshew
Newbie
*

Karma: 0
Posts: 4


View Profile
« on: February 17, 2007, 08:58:06 AM »

Your template system is built on Smarty, but I noticed the built-in {php} function does not work. Is there a reason this is disabled?

Thanks.
Logged
iAuto/iRealty Sales
The Sales Guy
Administrator
Full Member
*****

Karma: 1
Posts: 120



View Profile WWW
« Reply #1 on: February 19, 2007, 10:33:29 AM »

Hello John,

I'll ask our developers to have a look at this and give their opinion on it. Thanks for bringing this up.

Regards,

iAuto/iRealty Sales
Logged

Sincerely,

iAuto/iRealty Sales

Classified Software by Worksforweb
kosyakov
Newbie
*

Karma: 2
Posts: 17


View Profile
« Reply #2 on: February 19, 2007, 11:38:45 AM »

The reason to disable the {php} tag: is security. 

If you would like to enable it please open the system/classes/TemplateProcessor.php file and change line 29

Code:
$this->security = true;

to

Code:
$this->security = false;

Let me know if it worked.
Logged
jshew
Newbie
*

Karma: 0
Posts: 4


View Profile
« Reply #3 on: February 19, 2007, 12:36:11 PM »

Perfect! Thanks for the follow-up.

For anyone wondering how to insert PHP script into the templates, follow the previously mentioned directions to enable the templating engine’s {php} function. Then use the following code to insert your script:

Code:
{php}
Your php script here...
{/php}

There's no need use “<?” and “?>” opening and closing tags. BEWARE, if you don't know what you are doing you may break the iauto software application.


Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Classified Software by Worksforweb Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!