Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Search found 5 matches
Smarty Forum Index
Author Message
  Topic: allowing dot(.) to access object properties OR arrays
salebab

Replies: 10
Views: 25592

PostForum: Feature Requests   Posted: Tue Oct 18, 2011 6:22 pm   Subject: allowing dot(.) to access object properties OR arrays
You're probably right, didn't know for prefilter till now. Thanks.
  Topic: allowing dot(.) to access object properties OR arrays
salebab

Replies: 10
Views: 25592

PostForum: Feature Requests   Posted: Tue Oct 18, 2011 3:54 pm   Subject: allowing dot(.) to access object properties OR arrays
Yes, but smarty is special var and can still be the same. Other arrays still can be used with regular brackets [], but personaly, I do not use arrays except array of object (collection).

These are ...
  Topic: allowing dot(.) to access object properties OR arrays
salebab

Replies: 10
Views: 25592

PostForum: Feature Requests   Posted: Tue Oct 18, 2011 3:37 pm   Subject: allowing dot(.) to access object properties OR arrays
Smarty would have to determine if the '.' represents array, object, etc. at runtime, and access as such. currently this is a compile time operation
You don't need to write code to determine that at r ...
  Topic: allowing dot(.) to access object properties OR arrays
salebab

Replies: 10
Views: 25592

PostForum: Feature Requests   Posted: Thu Oct 13, 2011 9:55 pm   Subject: allowing dot(.) to access object properties OR arrays
+1. It will be very nice if smarty developers implement this feature.
  Topic: Include statement with multiple lines
salebab

Replies: 2
Views: 3909

PostForum: Smarty 3   Posted: Wed Dec 01, 2010 11:25 am   Subject: Include statement with multiple lines
Hello,

This seems to be an bug in smarty3, because it works fine in smarty2.

{include
file="header.tpl"
seoTitle="test"
useJs=1
}

I'm getting thi ...
 
Page 1 of 1
All times are GMT
Jump to:  


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