Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Search found 17 matches
Smarty Forum Index
Author Message
  Topic: here's a 10-digit phone number formatting plugin
David

Replies: 8
Views: 57651

PostForum: Plugins   Posted: Fri Mar 12, 2004 5:03 pm   Subject: here's a 10-digit phone number formatting plugin



/**

* @desc<pre>Smarty plugin
* -------------------------------------------------------------
* File: modifier.phone_format.php
* Type: modifier
* Name: ...
  Topic: Quickform with Smarty variables in its output
David

Replies: 4
Views: 8688

PostForum: General   Posted: Tue Mar 09, 2004 5:35 pm   Subject: Quickform with Smarty variables in its output
Heh. I don't see a URL in BackSeat's post but I imagine you refer to

http://www.thelinuxconsultancy.co.uk/smarty-guide.html

I've studied it and found it extremely helpful.

QuickForm has a bi ...
  Topic: QuickForm
David

Replies: 3
Views: 6533

PostForum: General   Posted: Mon Mar 01, 2004 8:14 pm   Subject: QuickForm
I know this thread is a months old but FWIW, there's also this:

http://www.thelinuxconsultancy.co.uk/smarty-guide.html
  Topic: Quickform with Smarty variables in its output
David

Replies: 4
Views: 8688

PostForum: General   Posted: Thu Jan 29, 2004 8:44 pm   Subject: Quickform with Smarty variables in its output
I think I am coming at it from the opposite direction as you.

I'm playing with QuickForm because I'm getting sick of writing the same validation code again and again. I looked at the HTML_QuickForm ...
  Topic: here's a 10-digit phone number formatting plugin
David

Replies: 8
Views: 57651

PostForum: Plugins   Posted: Mon Dec 22, 2003 9:23 pm   Subject: here's a 10-digit phone number formatting plugin
woa -- didn''t Zerofill just get done telling you my plugin was awesome?

kidding aside, the points are very well taken -- I'll post a revised version here just as soon as I get off my derrière an ...
  Topic: is force_compile required to make (post|pre)filters work ?
David

Replies: 3
Views: 7738

PostForum: General   Posted: Wed Nov 05, 2003 9:41 pm   Subject: is force_compile required to make (post|pre)filters work ?
Output filters ---- brilliant!

I see I should have RFTMed even more. Thank you. Case closed Smile
  Topic: is force_compile required to make (post|pre)filters work ?
David

Replies: 3
Views: 7738

PostForum: General   Posted: Wed Nov 05, 2003 7:51 pm   Subject: is force_compile required to make (post|pre)filters work ?
I haven't been able to get any filters to work unless I either modify the templates or turn on force_compile.

This is with Smarty 2.5.0, PHP 4.3.2, Windows 2K -- though I get the same behavior on a ...
  Topic: can templates know their own lastmod timestamp?
David

Replies: 1
Views: 5330

PostForum: General   Posted: Wed Sep 10, 2003 4:55 pm   Subject: can templates know their own lastmod timestamp?
Hi all

This may be one of those things where I say "d'oh!" and feel embarrassed at how obvious the answer ought to have been, BUT.......

Is there a quick & painless way for a template to display ...
  Topic: here's a 10-digit phone number formatting plugin
David

Replies: 8
Views: 57651

PostForum: Plugins   Posted: Tue May 06, 2003 2:44 pm   Subject: here's a 10-digit phone number formatting plugin
ok, it's pretty trivial, I grant you, but this being my first smarty modifier plugin, i was too excited to keep it to myself. Cool

default format is (xxx) xxx-xxxx but you can pass it whatever spri ...
  Topic: Be-a Smarty, Have-a PEAR DB object
David

Replies: 13
Views: 42112

PostForum: Tips and Tricks   Posted: Tue May 06, 2003 2:37 pm   Subject: Be-a Smarty, Have-a PEAR DB object
It's a cool trick, but doesn't this kind of fall outside of acceptable code design? For example, assuming a standard MVC (Model - View - Controller) code design, you would not want to mix Smarty work ...
  Topic: how does the web page developer test templates?
David

Replies: 3
Views: 13622

PostForum: General   Posted: Tue Apr 22, 2003 1:24 am   Subject: how does the web page developer test templates?
Interesting issue, isn't it.

I have followed a couple of other threads on other sites where people argued surprisingly passionately about whether Smarty (or other templating systems) were worth it. ...
  Topic: how does the web page developer test templates?
David

Replies: 3
Views: 13622

PostForum: General   Posted: Mon Apr 21, 2003 8:44 pm   Subject: how does the web page developer test templates?
I'm just wondering how the web page designer is expected to test these templates, especially if the templates have a lot of fancy presentation scripting in them.

Are they supposed to install PHP an ...
  Topic: Handle forms
David

Replies: 1
Views: 13420

PostForum: General   Posted: Mon Apr 21, 2003 8:39 pm   Subject: Handle forms
Not quite sure what you mean by "pass it to another page"

The request variables are available to your PHP script just as they always are. Say you were POSTed some form data, and you want to display ...
  Topic: Be-a Smarty, Have-a PEAR DB object
David

Replies: 13
Views: 42112

PostForum: Tips and Tricks   Posted: Sun Apr 20, 2003 10:25 pm   Subject: Be-a Smarty, Have-a PEAR DB object
makes your subclass a little more concise and convenient as there's no need to require DB.php and instantiate an instance.

but hey, if it's too silly, delete it, you're the admin Smile
  Topic: Be-a Smarty, Have-a PEAR DB object
David

Replies: 13
Views: 42112

PostForum: Tips and Tricks   Posted: Fri Apr 18, 2003 8:05 pm   Subject: Be-a Smarty, Have-a PEAR DB object
You can use inheritance to leverage all those Smarty brains and add your own as you see fit, like the docs recommend.

You can use aggregation to make your Smarty extension a database wizard, and yo ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT
Jump to:  


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