FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » PHP in templates.
Show: Today's Messages :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
PHP in templates. [message #17753] Fri, 16 April 2004 11:41 Go to next message
mocara is currently offline  mocara   United Kingdom
Messages: 157
Registered: January 2004
Karma: 0
Senior Member
add to buddy list
ignore all messages by this user
Is it okay to put php commands inside the tmplates?

e.g. I have
<a class="forumlinks" href="{ROOT}?t={DEF: t_thread_view}&amp;frm_id=6&amp;{DEF: _rsid}">International</a>

Could I place some php in that anchor?

Pais.
Re: PHP in templates. [message #17757 is a reply to message #17753] Fri, 16 April 2004 12:12 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
In most cases no, there are only a few places where it is safe to put PHP code inside templates. This is usually the MAIN_SECTION or the PAGE elements.

FUDforum Core Developer
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: trying to move an installation
Next Topic: Stuck in a Circle
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Dec 15 01:13:12 EST 2017

Total time taken to generate the page: 0.00628 seconds