Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.
www.smarty.net
•
phpinsider.com
•
Forum Index
•
FAQ
•
Search
•
Memberlist
•
Profile
•
Log in to check your private messages
•
Register
•
Log in
Search found 4 matches
Smarty Forum Index
Author
Message
Topic:
included templates inside a foreach cannot access variables
badchecksum
Replies:
8
Views:
9538
Forum:
General
Posted: Thu Jul 18, 2013 6:53 am Subject:
included templates inside a foreach cannot access variables
FYI, no need for the =& (pass by ref) in PHP 5.
That's a reference assignment. It's a style choice in the case of what I posted. In general, I prefer to indicate explicitly when I'm using a v ...
Topic:
included templates inside a foreach cannot access variables
badchecksum
Replies:
8
Views:
9538
Forum:
General
Posted: Wed Jul 17, 2013 8:40 pm Subject:
included templates inside a foreach cannot access variables
See http://www.smarty.net/docs/en/plugins.functions.tpl
You must call $template->display(...) from your plugin to see also the variables assigned within the calling template.
Ah, this is ...
Topic:
included templates inside a foreach cannot access variables
badchecksum
Replies:
8
Views:
9538
Forum:
General
Posted: Wed Jul 17, 2013 2:26 pm Subject:
included templates inside a foreach cannot access variables
mohrt
The built-in {include} works as I expect: $entry is available in "dir/loc/item.tpl".
The built-in include works fine.
Topic:
included templates inside a foreach cannot access variables
badchecksum
Replies:
8
Views:
9538
Forum:
General
Posted: Wed Jul 17, 2013 12:08 pm Subject:
included templates inside a foreach cannot access variables
I'm currently upgrading an application to v3 from v2, and I've found that a custom include function and plugin that I've been using is no longer working properly.
Here's an example in the template: ...
Page
1
of
1
All times are GMT
Jump to:
Select a forum
General
----------------
Announcements
Installation and Setup
FAQ (Frequently Asked Questions)
Testimonials
Showcase
Help Wanted (commercial)
User Supported Help
----------------
General
Tips and Tricks
Plugins
Add-ons
Frameworks
Article Discussions
Development
----------------
Smarty Development
Feature Requests
Bugs
Documentation
Smarty 3
International Discussions
----------------
Language: German
Language: French
Language: Portuguese
Language: Russian
Language: Spanish
Language: Italian
Language: Japanese
Language: Persian
Language: Polish
Language: Indonesian
Powered by
phpBB
© 2001, 2005 phpBB Group
Protected by
Anti-Spam ACP