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 4 matches
Smarty Forum Index
Author Message
  Topic: PHP Notice: how to identify offending line in template
phil_karasinsky

Replies: 0
Views: 4479

PostForum: General   Posted: Sun May 01, 2016 4:33 pm   Subject: PHP Notice: how to identify offending line in template
In my Apache error log, I sometimes see PHP Notices of this kind:


[01-May-2016 12:03:05 America/New_York] PHP Notice: Undefined offset: 1 in /some_path/blah.tpl.php on li ...
  Topic: Template code to get value of compile_id? smarty3
phil_karasinsky

Replies: 4
Views: 5406

PostForum: General   Posted: Mon Nov 16, 2015 2:40 pm   Subject: Template code to get value of compile_id? smarty3
Thanks for the pointer.

I'm glad I posted the question that I did. Although my original thinking arose from a flaw in my conceptualisation at the "project level" and I don't actually need ...
  Topic: Template code to get value of compile_id? smarty3
phil_karasinsky

Replies: 4
Views: 5406

PostForum: General   Posted: Sun Nov 15, 2015 11:18 am   Subject: Template code to get value of compile_id? smarty3
Hi AnrDaemon,

Thanks for your reply. On reflection I can see that you are correct.
  Topic: Template code to get value of compile_id? smarty3
phil_karasinsky

Replies: 4
Views: 5406

PostForum: General   Posted: Sat Nov 14, 2015 11:31 pm   Subject: Template code to get value of compile_id? smarty3
How can I retrieve the compile_id within a smarty3 template?

For example, I wish to reference the compile_id in an {if} block:

{if $please_tell_me_what_this_should_be.compile_id=="x&qu ...
 
Page 1 of 1
All times are GMT
Jump to:  


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