1
dmcmeans
What PHP is Supported in a Template?
  • 2006/5/16 3:59

  • dmcmeans

  • Just popping in

  • Posts: 14

  • Since: 2005/3/4 2


I tried to add a simple substr() call in a template and got no where. Something like:

substr( $pg, 1 )

returned nothing whereas just the variable by itself returned a value just fine.

Can I not call a PHP function within a template?

Thanks,

David

2
phppp
Re: What PHP is Supported in a Template?
  • 2006/5/16 4:42

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


You could you smarty modifier
http://smarty.php.net/manual/en/language.modifiers.php

or use any php syntax by
<{php}> $myPhpScripts; <{/php}>

Login

Who's Online

408 user(s) are online (282 user(s) are browsing Support Forums)


Members: 0


Guests: 408


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits