Author |
Message |
Topic: spl_autoload_register("myApp") before smarty autol |
saboya
Replies: 3
Views: 9834
|
Forum: Smarty 3 Posted: Mon Apr 11, 2011 7:14 pm Subject: spl_autoload_register("myApp") before smarty autol |
Your autoloads should only do stuff that is pertinent to that autoloader. Smarty autoloader for instance probably checks if the class name starts with "Smarty" or something. You should do t ... |
Topic: Namespaces support |
saboya
Replies: 14
Views: 71471
|
Forum: Smarty 3 Posted: Thu Jun 24, 2010 10:21 pm Subject: Namespaces support |
I think it's great you're not encouraging this type of use, since it does make the business / design separation more fuzzy. But I think if you're going to have this option, namespaces should be suppor ... |
Topic: Namespaces support |
saboya
Replies: 14
Views: 71471
|
Forum: Smarty 3 Posted: Thu Jun 24, 2010 8:47 pm Subject: Namespaces support |
While I agree the use of static calls within templates does not fit the business / design separation, I think the possibility of it hapenning and the introduction of namespaces in 5.3 will make the us ... |
Topic: Static Object Access |
saboya
Replies: 9
Views: 16605
|
Forum: Smarty 3 Posted: Thu Jun 24, 2010 4:32 pm Subject: Static Object Access |
I've written a patch for namespace support, may help you until the Smarty devs implement it:
http://www.smarty.net/forums/viewtopic.php?t=17582 |
Topic: Namespaces support |
saboya
Replies: 14
Views: 71471
|
Forum: Smarty 3 Posted: Thu Jun 24, 2010 4:17 pm Subject: Namespaces support |
Another post so I can post a link... |
Topic: Namespaces support |
saboya
Replies: 14
Views: 71471
|
Forum: Smarty 3 Posted: Thu Jun 24, 2010 4:08 pm Subject: Namespaces support |
I've written a patch to support namespaced static object access within Smarty3 templates. I never did any lexer/parser work, so it's certainly not the best approach to the problem and probably has unk ... |
|