PHP Classes

Using custom smarty tags

Recommend this page to a friend!

      PHP Forms Class with HTML Generator and JavaScript Validation  >  PHP Forms Class with HTML Generator and JavaScript Validation package blog  >  How to Show Google Ma...  >  All threads  >  Using custom smarty tags  >  (Un) Subscribe thread alerts  
Subject:Using custom smarty tags
Summary:I want to use custom smarty-tags instead of the pre-defined
Messages:4
Author:Mika Porspakka
Date:2006-10-12 15:24:46
Update:2006-11-21 17:49:54
 

  1. Using custom smarty tags   Reply   Report abuse  
Picture of Mika Porspakka Mika Porspakka - 2006-10-12 15:24:46

Hi!

Great class, just waiting to get to use it in earnest on my next project.

I'm going to develop a site using smarty with your class to speed up the process, and i'm going to use custom smarty template tags instead of the "{" and "}". This unfortunately brakes the functionality of your otherwise great class.

I have gotten as far as making my own prefilter.form.php with the custom delimiters, but that's still not enough.

It would be great if I could set these custom delimiters as a variable in the forms.php class too.

Great work,
Mika


  2. Re: Using custom smarty tags   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2006-10-12 18:39:23 - In reply to message 1 from Mika Porspakka
Currently the delimiter characters are hard-coded.

If that would solve your problem, I can make the pre-filter use the delimiter characters defined in Smarty configuration, so you can set the Smarty object left_delimiter and right_delimiter variables.

  3. Re: Using custom smarty tags   Reply   Report abuse  
Picture of Mika Porspakka Mika Porspakka - 2006-10-13 06:14:29 - In reply to message 2 from Manuel Lemos

If you could do that kind of prefilter, it would solve my problems. Thanks for the class and fast answer.

-mika

  4. Re: Using custom smarty tags   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2006-11-21 17:49:54 - In reply to message 3 from Mika Porspakka
I finally made time to make the Smarty pre-filter use whatever delimiters are set in the Smarty class, so it should work with anything else besides { and } .

You may download the latest version that was just updated. Sorry for the delay.