Author |
Message |
Topic: Identifiying Smarty template syntax errors |
AtomicPenguin
Replies: 0
Views: 3273
|
Forum: General Posted: Sat May 08, 2010 2:29 am Subject: Identifiying Smarty template syntax errors |
Hey folks,
A question for somebody...
I use Smarty (version 2.6) for an script I develop (http://www.formtools.org), not just for the actual page generation but for a number of more "dynami ... |
Topic: "How to do this" Q: finding out if a template cont |
AtomicPenguin
Replies: 1
Views: 3934
|
Forum: General Posted: Mon Mar 09, 2009 1:08 am Subject: "How to do this" Q: finding out if a template cont |
Hey folks,
A "How to do this" or "what's the best way to do this" question for somebody.
I have a Smarty template stored in a PHP string which may containing virtually any so ... |
Topic: GeSHi syntax highlighter Smarty plugin |
AtomicPenguin
Replies: 2
Views: 9843
|
Forum: Plugins Posted: Sun Oct 26, 2008 12:34 am Subject: GeSHi syntax highlighter Smarty plugin |
Hi folks,
I've written a simple block function to utilize the GeSHi (Generic Syntax Highlighter) script in your Smarty templates. It's pretty simple, but it works well for my own purposes.
http:/ ... |
Topic: Implementing {literal} for block function |
AtomicPenguin
Replies: 2
Views: 5147
|
Forum: General Posted: Sat Oct 25, 2008 2:29 am Subject: Implementing {literal} for block function |
Hi folks,
Apologies for the lousy subject line; I couldn't think of a way to sum up my problem. I've created a simple block function, like so:
{my_func param1=val1}
...
{/my_func}
The probl ... |
Topic: Detecting if function exists? |
AtomicPenguin
Replies: 3
Views: 12106
|
Forum: General Posted: Sun Sep 07, 2008 10:22 pm Subject: Detecting if function exists? |
Hey,
Thanks for the response! Interesting idea, but I'd rather not do this method for a couple of reasons. Right now, the modules are truly "drag and drop". You just add them to the modul ... |
Topic: Detecting if function exists? |
AtomicPenguin
Replies: 3
Views: 12106
|
Forum: General Posted: Sun Sep 07, 2008 6:38 am Subject: Detecting if function exists? |
Hi all,
Does anyone know if there's a way to detect if a function exists? Something like...
{if my_custom_function exists}
{my_custom_function}
{/if}
I'm using Smarty for a pretty large w ... |
Topic: Convert Smarty variables within PHP string without template? |
AtomicPenguin
Replies: 3
Views: 7369
|
Forum: General Posted: Fri Apr 18, 2008 4:19 am Subject: Convert Smarty variables within PHP string without template? |
Thanks for the tips, Celeb!
With a little trickery, I think {eval} will do nicely...! Only took me 2 days to realize it, too! |
Topic: Convert Smarty variables within PHP string without template? |
AtomicPenguin
Replies: 3
Views: 7369
|
Forum: General Posted: Tue Apr 15, 2008 10:07 pm Subject: Convert Smarty variables within PHP string without template? |
Hi folks,
A basic question. I've looked through the online docs but could track it down.
Is there a way to use the Smarty "engine" within PHP to convert strings containing placeholders ... |
Topic: simple for loop (much better than section) |
AtomicPenguin
Replies: 15
Views: 126951
|
Forum: Feature Requests Posted: Fri Mar 21, 2008 1:16 am Subject: simple for loop (much better than section) |
I agree wholeheartedly with you, DouglassDavis - I find the section syntax rather confusing. A standard for-loop option would be far simpler in some situations. |
Topic: Suggestion on "Smartifying" PHP language files |
AtomicPenguin
Replies: 1
Views: 3918
|
Forum: General Posted: Mon Nov 26, 2007 7:13 am Subject: Suggestion on "Smartifying" PHP language files |
Howdy folks.
I'm just scoping out Smarty for a Open Source project I develop, and from what I've read, it fits the ticket really well!
I was wondering about one thing. My program has all of it's ... |
|