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 14 matches
Smarty Forum Index
Author Message
  Topic: Variable Variables & Arrays
Rikaelus

Replies: 2
Views: 4484

PostForum: General   Posted: Wed Jul 04, 2012 4:24 am   Subject: Variable Variables & Arrays
Being impatient as I am, I've since created a function plugin that will flatten the array back to one level so I can reference its keys as I did before. Being done on a per-row basis will be a small h ...
  Topic: Variable Variables & Arrays
Rikaelus

Replies: 2
Views: 4484

PostForum: General   Posted: Wed Jul 04, 2012 4:00 am   Subject: Variable Variables & Arrays
I have something of a complex and possibly unique situation.

In outputting a table of data I first loop by row, then loop through the dynamic list of columns. The columns that are displayed are con ...
  Topic: filemtime() [function.filemtime]: stat failed
Rikaelus

Replies: 15
Views: 51652

PostForum: General   Posted: Sat May 26, 2012 9:51 am   Subject: filemtime() [function.filemtime]: stat failed
Whenever someone complains about filemtime() failing,

I'm a little confused by this.

If these "errors" are generated but are that easy to dismiss as unimportant, shouldn't they be &qu ...
  Topic: New Modifier Plugin Type w/ $smarty Object
Rikaelus

Replies: 3
Views: 12595

PostForum: Feature Requests   Posted: Wed Jul 18, 2007 8:40 pm   Subject: New Modifier Plugin Type w/ $smarty Object
In the past in my own system, and just now in IRC, I've found problems that would be more easily solved if the $smarty object were available within modifier-type plugins, in which its normally exclude ...
  Topic: Bug in compilation with if statement and object method
Rikaelus

Replies: 1
Views: 5849

PostForum: Bugs   Posted: Tue Jul 03, 2007 5:04 pm   Subject: Bug in compilation with if statement and object method
Him and I were talking about this in IRC, and I have a follow-up.

While spaces can be used to make the behavior correct, this could still pose a security problem. If you replace $var2/$var3 with va ...
  Topic: The Logic of Templates (massassi.com)
Rikaelus

Replies: 75
Views: 399803

PostForum: Article Discussions   Posted: Fri Jun 08, 2007 5:48 am   Subject: The Logic of Templates (massassi.com)
The beaten horse has been revived!

Coming out of an IRC discussion about templating, and Smarty in particular, I googled the topic, found the article this was based on, and found my way to this som ...
  Topic: shared.make_timestamp.php format acceptance bug
Rikaelus

Replies: 8
Views: 15787

PostForum: Bugs   Posted: Wed Apr 25, 2007 7:58 am   Subject: shared.make_timestamp.php format acceptance bug
That could work. I like the fact that it would "just work"; however, I think it should remain officially "unsupported".

Anyone else?

BTW: I was remiss, dmittner, for not than ...
  Topic: shared.make_timestamp.php format acceptance bug
Rikaelus

Replies: 8
Views: 15787

PostForum: Bugs   Posted: Mon Apr 23, 2007 7:52 pm   Subject: shared.make_timestamp.php format acceptance bug
Yes, date_format specifically says date, month, year. If it didn't say that, I might not have considered this a bug at all Smile I do know that strtotime() does more and just maybe it is worthwhile to su ...
  Topic: shared.make_timestamp.php format acceptance bug
Rikaelus

Replies: 8
Views: 15787

PostForum: Bugs   Posted: Mon Apr 23, 2007 7:29 pm   Subject: shared.make_timestamp.php format acceptance bug
According to the date_format docs, hhmm is not valid input (although it probably is for strtime()). We are already overloading poor date_format to death. I think we need to draw-a-line because I can't ...
  Topic: shared.make_timestamp.php format acceptance bug
Rikaelus

Replies: 8
Views: 15787

PostForum: Bugs   Posted: Mon Apr 23, 2007 6:41 pm   Subject: shared.make_timestamp.php format acceptance bug
perhaps extending the conditional ?

} elseif (is_numeric($string) && strlen($string) != 8) {

That's a solution to fix this particular problem, but " ...
  Topic: shared.make_timestamp.php format acceptance bug
Rikaelus

Replies: 8
Views: 15787

PostForum: Bugs   Posted: Mon Apr 23, 2007 5:22 am   Subject: shared.make_timestamp.php format acceptance bug
Function:

function smarty_make_timestamp($string)
{
if(empty($string)) {
// use "now":
$time = time();

} ...
  Topic: method call in place of a modfier
Rikaelus

Replies: 4
Views: 13694

PostForum: Smarty Development   Posted: Tue Oct 24, 2006 12:55 am   Subject: method call in place of a modfier
Yes I can do that but someone asked me to make it work through modifiers so template designers don't have to learn new stuff about how to call methods. But I managed to convince him it is pointless. A ...
  Topic: Linebreaks in Output
Rikaelus

Replies: 2
Views: 10196

PostForum: Smarty Development   Posted: Tue Oct 24, 2006 12:53 am   Subject: Linebreaks in Output
I faced this same problem and unfortunately, even after bouncing it off some heads in #smarty, came to the conclusion that it's easiest to pass Smarty an endline. Yep, pass a text to Smarty that only ...
  Topic: Caching issue with variables passed during include
Rikaelus

Replies: 0
Views: 5293

PostForum: Smarty Development   Posted: Fri Feb 25, 2005 1:03 am   Subject: Caching issue with variables passed during include
As the name suggests I'm having issues with proper content coming up with caching and passed variables during includes being the primary factors.

Here's the structure:
- index.tpl (fetched by PHP ...
 
Page 1 of 1
All times are GMT
Jump to:  


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