Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Search found 5611 matches
Smarty Forum Index
Author Message
  Topic: CSS Compiler
boots

Replies: 2
Views: 7143

PostForum: Feature Requests   Posted: Sat Nov 13, 2010 7:09 am   Subject: CSS Compiler
Someone did do a PHP version: http://leafo.net/lessphp/
  Topic: Smarty 3.0.2 Released
boots

Replies: 1
Views: 9223

PostForum: Announcements   Posted: Sat Nov 13, 2010 6:19 am   Subject: Congratulations!
Just checking-in after a long while of being away with very sporadic lurking on the progress of Smarty 3....

I am still only going over the release notes and have yet to start examining the code-ba ...
  Topic: Suhosin canary mismatch in Smarty.class.phpI'm
boots

Replies: 3
Views: 6731

PostForum: Installation and Setup   Posted: Fri Aug 01, 2008 3:25 am   Subject: Suhosin canary mismatch in Smarty.class.phpI'm
Never seen that or used the susosin patch. What OS, PHP and PCRE versions are installed? I'm really just guessing about the PCRE, but I do remember some issues arising on later PHP builds that require ...
  Topic: how to set an array in conf file
boots

Replies: 6
Views: 6032

PostForum: General   Posted: Mon Jan 07, 2008 9:16 pm   Subject: how to set an array in conf file
Hi.

My link shows how to create a indexed array. Associative arrays in config files are not supported.
  Topic: how to set an array in conf file
boots

Replies: 6
Views: 6032

PostForum: General   Posted: Fri Jan 04, 2008 7:54 pm   Subject: how to set an array in conf file
http://www.smarty.net/manual/en/variable.config.overwrite.php
  Topic: array_key_exists
boots

Replies: 4
Views: 6315

PostForum: General   Posted: Fri Jan 04, 2008 3:01 pm   Subject: array_key_exists
You mean like:

{if isset( $foo.bar ) }

or

{if $foo.bar|isset}

or

{if array_key_exists('bar', $foo ) }

or

{if 'bar'|array_key_exists:$foo}

?

Consider showing a more explicit ...
  Topic: Formcat Question
boots

Replies: 1
Views: 4087

PostForum: Plugins   Posted: Wed Jan 02, 2008 4:39 pm   Subject: Formcat Question
This is a general issue. See the manual page (in the basic section) on using template variables in double quotes.
  Topic: NULL in IF statement secure mode
boots

Replies: 6
Views: 36507

PostForum: General   Posted: Sat Dec 22, 2007 1:07 am   Subject: NULL in IF statement secure mode
Have you tried using null (lowercase) instead of NULL? Smarty is case-sensitive and the permitted intrinsic tokens are defined in the compiler as the following literals: true, false, yes, no, on, off, ...
  Topic: Class constants (again!) work around
boots

Replies: 4
Views: 14529

PostForum: General   Posted: Sat Dec 22, 2007 12:29 am   Subject: Class constants (again!) work around
You don't need to define your own modifier. The usual PHP constant() will work just as expected and as shown in ceph's follow=up posts in the thread I linked.

I also don't see the need for reflecti ...
  Topic: Parsing problem on a registered function
boots

Replies: 1
Views: 3546

PostForum: General   Posted: Sat Dec 22, 2007 12:24 am   Subject: Parsing problem on a registered function
Yes, you are correct and the reason is due to a small mistake in your syntax. When you want Smarty to interpolate template vars in double quotes, you have to use backticks for everything except the m ...
  Topic: changing array in foreach
boots

Replies: 2
Views: 4430

PostForum: General   Posted: Sat Dec 22, 2007 12:20 am   Subject: changing array in foreach
Perhaps you can assign all of the individual arrays you want to process into an array. That way you can index into the array to get the desired array of choice to loop over. eg:
$smarty->assign ...
  Topic: Happy Holidays!
boots

Replies: 1
Views: 3272

PostForum: General   Posted: Fri Dec 21, 2007 8:19 am   Subject: Happy Holidays!
Just a short note to wish everyone in the Smarty community a great holiday season!

I've seen a lot of great folks come through these forums and I feel that i would be remiss if I did not go off-top ...
  Topic: Compilation of {if}..{/if} tags
boots

Replies: 7
Views: 10559

PostForum: Bugs   Posted: Thu Dec 20, 2007 7:33 pm   Subject: Compilation of {if}..{/if} tags
Even moreso, this thread: http://www.phpinsider.com/smarty-forum/viewtopic.php?t=10804

It contains a patch provided by c960657 (a consistent contributor and tireless bug catcher) that has been wait ...
  Topic: array in the array in the ...
boots

Replies: 7
Views: 8078

PostForum: General   Posted: Thu Dec 20, 2007 7:31 pm   Subject: array in the array in the ...
Pretty sure square brackets are only good for section loops.

{$foo
True, that syntax is only available for section loops; however, Celeb used a different syntax:
{$nextarray[$array.somei ...
  Topic: array in the array in the ...
boots

Replies: 7
Views: 8078

PostForum: General   Posted: Thu Dec 20, 2007 7:27 pm   Subject: array in the array in the ...
When this (or a similar) question comes up Boots usually sends you to search the forums for his "lookup" modifier. Now I tried searching it (out of curiosity) and I needed to google for &quo ...
 
Page 1 of 375 Goto page 1, 2, 3 ... 373, 374, 375  Next
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP