|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
Tushee Smarty n00b
Joined: 25 Jul 2011 Posts: 2
|
Posted: Mon Jul 25, 2011 1:07 pm Post subject: What is the diff between "$product->name" and & |
|
|
Hi!
What is the diff between "{$product->name}" and "{$product.name}"?
I'm kind of newbie with smarty. I use smarty v2 in my webshop. And somewhere the -> connector works, otherwhere the . connector works and the first not. Can anyone explain the difference between these stuffs, please? |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Mon Jul 25, 2011 2:13 pm Post subject: |
|
|
$product.name is an array index, whereas $product->name is an object property. |
|
Back to top |
|
Tushee Smarty n00b
Joined: 25 Jul 2011 Posts: 2
|
Posted: Mon Jul 25, 2011 2:18 pm Post subject: |
|
|
Thx for the fast reply mohrt! |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|