1
Peekay
Back-ticks in Smarty templates
  • 2012/1/14 16:11

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


After a long and frustrating trouble-shoot, I have discovered that this works:

<{include file="db:`$mydirname`_inc_photo_info.html"}>


but this doesn't:

<{include file="db:'$mydirname'_inc_photo_info.html"}>


Apparently, using back-ticks for object references in Smarty is correct, so don't make the mistake I did of changing them into single-quotes thinking they were an error.
A thread is for life. Not just for Christmas.

2
playsome
Re: Back-ticks in Smarty templates
  • 2012/1/14 16:39

  • playsome

  • Not too shy to talk

  • Posts: 197

  • Since: 2009/4/15


Thanks for the info peekay, ive never heard of that in programming usually its single or double quotes, it actualy just took me like 2 minutes to find the back tick key on my keyboard.

Login

Who's Online

310 user(s) are online (177 user(s) are browsing Support Forums)


Members: 0


Guests: 310


more...

Donat-O-Meter

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

Latest GitHub Commits