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 7 matches
Smarty Forum Index
Author Message
  Topic: Error: undefined index
webtweakers

Replies: 1
Views: 5456

PostForum: General   Posted: Wed Oct 31, 2012 3:35 pm   Subject: Error: undefined index
I recently switched from Smarty 3.0.4 to version 3.1.12 and now all my templates seem to fail.

In my template if have a statement like this:


{if $item.file} ... {/if}


...
  Topic: 3.0.4: undefined offset
webtweakers

Replies: 2
Views: 7932

PostForum: Bugs   Posted: Sun Nov 14, 2010 2:35 am   Subject: 3.0.4: undefined offset
Aha, of course, you're right. That fixed it. Thanks! Smile

Great work, btw...
  Topic: 3.0.4: undefined offset
webtweakers

Replies: 2
Views: 7932

PostForum: Bugs   Posted: Sat Nov 13, 2010 10:14 pm   Subject: 3.0.4: undefined offset
I just replaced Smarty3.0-rc3 with Smarty-3.0.4 and now my project's pages won't render: I'm staring at a white screen.

When viewing source, I noticed this error, created by Smarty:

Notice: Und ...
  Topic: Smarty 3.0 Alpha 1: Proof of Concept
webtweakers

Replies: 93
Views: 250119

PostForum: Smarty 3   Posted: Wed Apr 29, 2009 7:35 am   Subject: Smarty 3.0 Alpha 1: Proof of Concept
it would be nice to be able to get the directory of the current template from within the template.

I ask because i have a template (template A) that can include another template (template B) from a ...
  Topic: Smarty 3.0 Alpha 1: Proof of Concept
webtweakers

Replies: 93
Views: 250119

PostForum: Smarty 3   Posted: Tue Apr 28, 2009 1:59 pm   Subject: Smarty 3.0 Alpha 1: Proof of Concept
I agree, and definitely for the initial 3.0 release I would recommend to keep things as simple and clean as possible.
  Topic: Smarty 3.0 Alpha 1: Proof of Concept
webtweakers

Replies: 93
Views: 250119

PostForum: Smarty 3   Posted: Tue Apr 28, 2009 11:54 am   Subject: Smarty 3.0 Alpha 1: Proof of Concept
Could it not be used for both?

Not really. The lexer doesn't know the assigned var type at compile time. It could check at runtime, but this adds another layer of complexity to the runtime logic. T ...
  Topic: Smarty 3.0 Alpha 1: Proof of Concept
webtweakers

Replies: 93
Views: 250119

PostForum: Smarty 3   Posted: Mon Apr 20, 2009 9:03 pm   Subject: Smarty 3 features
I just read the readme and the plans for Smarty 3 look brilliant! When is it ready? Smile

Not sure it's possible at the moment, but someone already asked for it: better support for objects would be su ...
 
Page 1 of 1
All times are GMT
Jump to:  


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