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 13 matches
Smarty Forum Index
Author Message
  Topic: NEW PLUGIN: implode
dubhunter

Replies: 9
Views: 40469

PostForum: Plugins   Posted: Tue Apr 08, 2008 11:40 pm   Subject: NEW PLUGIN: implode
If you haven't already done it, please contribute your plugins to the Smarty wiki as well, since IMHO they're easier to find there than using the search function of this forum.

Good to know. I will ...
  Topic: NEW MODIFIER: date (for those who prefer php date())
dubhunter

Replies: 0
Views: 6592

PostForum: Plugins   Posted: Tue Apr 08, 2008 10:36 pm   Subject: NEW MODIFIER: date (for those who prefer php date())
OK, so some of you may not agree with this one, but I cannot stand the php function strftime(), and there for, don't like the smarty modifier date_format.

Two main reasons:
1. strftime will not gi ...
  Topic: NEW PLUGIN: implode
dubhunter

Replies: 9
Views: 40469

PostForum: Plugins   Posted: Tue Apr 08, 2008 10:27 pm   Subject: NEW PLUGIN: implode
After a lot of use with my USAGE:

#example.conf

people = "George"
people = "Jane"
people = "Mary"


{* example.tpl *}

{implode subject=#peopl ...
  Topic: Bug with backticks
dubhunter

Replies: 12
Views: 18439

PostForum: Bugs   Posted: Fri Mar 14, 2008 1:12 am   Subject: Bug with backticks
Not yet, been super busy. Hopefully soon. Those damn things are larger than I expected.
  Topic: Bug with backticks
dubhunter

Replies: 12
Views: 18439

PostForum: Bugs   Posted: Wed Feb 27, 2008 6:41 pm   Subject: That's all we get!?!?
Wow! I'm kinda surprised. Normally I would get a few pages on how wrong I was and how Smarty was not meant to do what I'm talking about.

But this time, all we get is a suggestion to rewrite a secti ...
  Topic: Bug with backticks
dubhunter

Replies: 12
Views: 18439

PostForum: Bugs   Posted: Thu Feb 07, 2008 12:59 am   Subject: Bug with backticks
This is not a bug. Method calls where never supported inside backticks.

I have to say this seems pretty stupid!

I mean, why should PHP allocate additional memory and clutter the namespace for te ...
  Topic: Inline concatenation for function args and mybe more
dubhunter

Replies: 1
Views: 8755

PostForum: Feature Requests   Posted: Sat Nov 17, 2007 3:33 am   Subject: Inline concatenation for function args and mybe more
I have searched and searched through the docs, and I cannot seem to solve this problem.

So I'm trying to pass a concatenated string to a smarty function in a loop like this:


{foreach from ...
  Topic: Easy way to assign form post to next template
dubhunter

Replies: 5
Views: 17592

PostForum: Tips and Tricks   Posted: Fri Aug 10, 2007 7:00 am   Subject: Easy way to assign form post to next template
What's wrong with
$smarty->assign($_POST)
What do you need the stripslashes() for? I know its function but why do you need it here in particular?

You are right. There is nothing wrong ...
  Topic: NEW PLUGIN: Explode
dubhunter

Replies: 4
Views: 13696

PostForum: Plugins   Posted: Thu Aug 09, 2007 8:57 pm   Subject: NEW PLUGIN: Explode
You probably didn't want that...

$#@%!
I can't believe I left that one again. Sigh...
Doing to many things at once.

Thanks for seeing that. It was still in my code too!
  Topic: NEW PLUGIN: Explode
dubhunter

Replies: 4
Views: 13696

PostForum: Plugins   Posted: Thu Aug 09, 2007 7:02 pm   Subject: NEW PLUGIN: Explode
PS. I suspect that it is unlikely to get this into the core distribution, but there is no harm in polling Smile

I figured it was a long shot, but I feel it could be considered core functionality, so I ...
  Topic: NEW PLUGIN: Explode
dubhunter

Replies: 4
Views: 13696

PostForum: Plugins   Posted: Thu Aug 09, 2007 5:21 pm   Subject: NEW PLUGIN: Explode
Hi Everyone,

I have been using Smarty for about a week now. 100% sold. Makes everything easier. Especially AJAX!! Well enough about that...

I needed a way to load an array of links and their ti ...
  Topic: Auto Template Finder
dubhunter

Replies: 0
Views: 9311

PostForum: Tips and Tricks   Posted: Thu Aug 09, 2007 5:20 pm   Subject: Auto Template Finder
Here is another excerpt from my PageController class. This one is great for when you have a PHP stub file for every TPL...

private function genAutoTemplateName()
{
$regex = "/^ ...
  Topic: Easy way to assign form post to next template
dubhunter

Replies: 5
Views: 17592

PostForum: Tips and Tricks   Posted: Thu Aug 09, 2007 5:18 pm   Subject: Easy way to assign form post to next template
This is a great one when server side validation is need, or you would like to forward to a thank you page.


//method from PageController Class

private function assignPost($args)
{ ...
 
Page 1 of 1
All times are GMT
Jump to:  


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