Author |
Message |
Topic: "Dot" syntax Variable resolution (eliminating '.' |
mkahn
Replies: 16
Views: 71038
|
Forum: Feature Requests Posted: Thu Mar 30, 2006 12:29 am Subject: Just checking up on the prospect of a simplified EL ... |
Another late reply ... greetings likewise
I've been using a home-rolled toolkit instead of smarty. I find the simplified object-navigation EL essential (wish core PHP had it), and there were too m ... |
Topic: "Dot" syntax Variable resolution (eliminating '.' |
mkahn
Replies: 16
Views: 71038
|
Forum: Feature Requests Posted: Fri Nov 25, 2005 10:50 pm Subject: Late reply... |
Actually, to be fair I ended up having to patch the compiler and several of the tags that checked for arrays in ways that still aren't SPL-friendly. I'm hoping that's something that improves with the ... |
Topic: Array casts and PHP5 SPL |
mkahn
Replies: 3
Views: 12416
|
Forum: Bugs Posted: Tue May 31, 2005 2:19 pm Subject: Array casts and PHP5 SPL |
Hopefully the PHP5 internals will silently support (array) and is_array() on SPL objects (my version does not). Until then, smarty would also benefit from a custom _is_array() method that returns tru ... |
Topic: Array casts and PHP5 SPL |
mkahn
Replies: 3
Views: 12416
|
Forum: Bugs Posted: Tue May 31, 2005 1:38 pm Subject: Array casts and PHP5 SPL |
Many of the operations in Smarty (for instance {foreach}) will coerce a parameter argument into an array using array cast. For instance, line 1176 in Smarty_Compiler.class.php from Smarty 2.6.6 (not ... |
Topic: "Dot" syntax Variable resolution (eliminating '.' |
mkahn
Replies: 16
Views: 71038
|
Forum: Feature Requests Posted: Sat May 28, 2005 12:46 pm Subject: Whoops |
I neglected key element of the offsetGet() method in the ObjectNavigator (typed it from memory instead of cut-n-paste, and I'm doing the same darn thing again). If the result of an offsetGet() proper ... |
Topic: "Dot" syntax Variable resolution (eliminating '.' |
mkahn
Replies: 16
Views: 71038
|
Forum: Feature Requests Posted: Sun May 22, 2005 4:00 pm Subject: Thanks, here are more details (since you're interested) |
People copy entire object graphs into smarty (I've done it!) in an effort to abstract the access methods, because of the {$a.foo} and {$a->foo} issue, which for one requires the template designer t ... |
Topic: "Dot" syntax Variable resolution (eliminating '.' |
mkahn
Replies: 16
Views: 71038
|
Forum: Feature Requests Posted: Sat May 21, 2005 11:56 am Subject: A less intrusive SPL approach to object graph nav |
I've been working with the PHP5 SPL and have a simpler solution that doesn't involve fiddling with the Smarty code. The above hack I posted means you would have to patch every version of Smarty, and ... |
Topic: "Dot" syntax Variable resolution (eliminating '.' |
mkahn
Replies: 16
Views: 71038
|
Forum: Feature Requests Posted: Sun Feb 13, 2005 1:50 pm Subject: A 'gotcha' with the above code |
If you use the above approach for dot-syntax navigation of object graphs, you can't intermix
{assign var=$my.object.graph.array value=arr}
{$arr[0]}
I'll post a p ... |
Topic: "Dot" syntax Variable resolution (eliminating '.' |
mkahn
Replies: 16
Views: 71038
|
Forum: Feature Requests Posted: Sun Feb 06, 2005 1:11 pm Subject: Speed differences, getters, PHP5, etc. |
Hi:
PHP5: I neglected to notice the PHP5 specific stuff in there (like the exception thrown). Indeed, I guess the enhanced iterator support is an added bonus.
Getters: I'm partial to javabea ... |
Topic: "Dot" syntax Variable resolution (eliminating '.' |
mkahn
Replies: 16
Views: 71038
|
Forum: Feature Requests Posted: Sat Feb 05, 2005 2:13 pm Subject: "Dot" syntax Variable resolution (eliminating '.' |
If this has been discussed already, please forgive me.
One thing I would like to see in "official" Smarty (and in fact employ in my own patch) is a way for a variable expression $var.subvar.etc to ... |
|