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 2 matches
Smarty Forum Index
Author
Message
Topic:
Replacing a variable with a variable
alejandrocarg
Replies:
2
Views:
13492
Forum:
Smarty Development
Posted: Sat Apr 28, 2012 12:23 pm Subject:
Replacing a variable with a variable
I believe you'd be better off if you did something like this instead:
{* determine what you need to work with *}
{if $some_condition}
{$z = $a}
{else}
...
Topic:
Replacing a variable with a variable
alejandrocarg
Replies:
2
Views:
13492
Forum:
Smarty Development
Posted: Sun Apr 22, 2012 9:58 pm Subject:
Replacing a variable with a variable
Hi there, first post :]
I have something like this all along one of my scripts
{$a.hello.id}
or sometimes..
{if $a.hello.id ... }
I also have a small if now, at the top of my script, checki ...
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