TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 03-26-2005, 02:08 AM   #1 (permalink)
The Visitor
 
Join Date: Mar 2005
Posts: 3
Thanks: 0
harryhood is on a distinguished road
Default {} <- what is that?

I am working with a opensource faq script, trying to modify the layout to fit my site and am trying to understand how different functions are being called. Well they might not be functions, but I'll use that for lack of a better term.

So my newbie question is what does it mean, or what is it called, when this is used in a php script:

PHP Code:
{SomeText
THe SomeText obviously changes depending what is being called.

I am trying to find where certain things are being called so I can modify the layout of those items.

Any help would be appreciated.

Thanks.
harryhood is offline  
Reply With Quote
Old 03-26-2005, 02:31 AM   #2 (permalink)
The Contributor
 
Join Date: Mar 2005
Posts: 81
Thanks: 0
AlEast is on a distinguished road
Default

Those look like template tags, which are used by template engines such as fastTemplates or smarty. These tags are parsed by the template engine inside of the script to replace the tag with some sort of valid xhtml, which in most cases will just be string.

So what you need to search for is the SomeText and see what template method is being called to assign a value to that variable or tag.
__________________
NEWEDGE Services, Inc. - Developers of ClientExec
AlEast is offline  
Reply With Quote
Old 03-29-2005, 06:42 PM   #3 (permalink)
The Visitor
 
Join Date: Mar 2005
Posts: 1
Thanks: 0
ezcore is on a distinguished road
Default

It's not Smarty Tags. Smarty Tags are {$SomeText} but I do agree with AlEast, it should be some sort of template engine.
__________________
Shopping Cart Builder - Complete ecommerce suite for simple and advanced shopping cart needs
ezcore is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 10:10 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design