Author |
Message |
Topic: Associative array keys with spaces in them? |
Brian
Replies: 4
Views: 8515
|
Forum: General Posted: Sat Sep 27, 2003 2:16 am Subject: Associative array keys with spaces in them? |
Granted. I did not pick them. But this is not the issue |
Topic: Associative array keys with spaces in them? |
Brian
Replies: 4
Views: 8515
|
Forum: General Posted: Fri Sep 26, 2003 8:22 pm Subject: Associative array keys with spaces in them? |
{$array.Last Name} gives an error. The array keys have spaces in them. Is there a way to access these within smarty? The array looks something like:
$user = array(
'Last Name' => ' ... |
Topic: The Logic of Templates (massassi.com) |
Brian
Replies: 75
Views: 398320
|
Forum: Article Discussions Posted: Mon Jun 09, 2003 11:29 pm Subject: The Logic of Templates (massassi.com) |
It's hard to find the time to make a fast and usable caching engine whilst working 8.5 hours a day and commuting 4. It's going to be a long summer.
Anyway, thanks for your comments. I think the d ... |
Topic: The Logic of Templates (massassi.com) |
Brian
Replies: 75
Views: 398320
|
Forum: Article Discussions Posted: Thu Jun 05, 2003 4:22 am Subject: Updated article... |
I have posted an updated article here:
http://www.massassi.com/php/
It contains the new template.php code as well as the caching code (with examples). Hopefully you will find it interesting.
... |
Topic: The Logic of Templates (massassi.com) |
Brian
Replies: 75
Views: 398320
|
Forum: Article Discussions Posted: Thu May 08, 2003 6:48 pm Subject: The Logic of Templates (massassi.com) |
admin: sorry this message was accidently erase. my fault . please repost. |
Topic: The Logic of Templates (massassi.com) |
Brian
Replies: 75
Views: 398320
|
Forum: Article Discussions Posted: Thu May 08, 2003 6:07 pm Subject: The Logic of Templates (massassi.com) |
You're ending up with a ton of layers... I generally prefer to reduce them as far as possible - more layers = more code = more bugs. Check this out:
http://www.joelonsoftware.com/news/20030428.ht ... |
Topic: The Logic of Templates (massassi.com) |
Brian
Replies: 75
Views: 398320
|
Forum: Article Discussions Posted: Thu May 08, 2003 5:04 pm Subject: The Logic of Templates (massassi.com) |
In that case, all your design markup will be in the form of smarty plugins/filters/etc.? In that case, what happens if you only want bold in one output format (IE: a presentation markup - HTML), but ... |
Topic: Various Smarty design questions: fetch, template etc. |
Brian
Replies: 6
Views: 18502
|
Forum: General Posted: Wed May 07, 2003 11:36 pm Subject: Various Smarty design questions: fetch, template etc. |
And one drawback to "generally using one tpl var and setting the tpl at the end" is that you can run into namespacing issues. If you had different TPL objects for each "section" of your site, they co ... |
Topic: Got one for the FAQ - How to use? |
Brian
Replies: 3
Views: 6898
|
Forum: General Posted: Wed May 07, 2003 10:07 pm Subject: Got one for the FAQ - How to use? |
There are literally dozens of readily available tutorials and articles that show you exactly what smarty is for. Check phpbuilder.com, zend.com, this site, or just run a search on google for "smarty ... |
Topic: Various Smarty design questions: fetch, template etc. |
Brian
Replies: 6
Views: 18502
|
Forum: General Posted: Wed May 07, 2003 10:06 pm Subject: Various Smarty design questions: fetch, template etc. |
I don't understand your point. If you WANT to use separate objects, you are of course allowed to do that as well... |
Topic: Two questions... |
Brian
Replies: 3
Views: 12694
|
Forum: General Posted: Wed May 07, 2003 4:59 pm Subject: Two questions... |
See here:
http://www.phpinsider.com/smarty-forum/viewtopic.php?t=241 |
Topic: Various Smarty design questions: fetch, template etc. |
Brian
Replies: 6
Views: 18502
|
Forum: General Posted: Wed May 07, 2003 4:48 pm Subject: Various Smarty design questions: fetch, template etc. |
There are differing paradigms.
a) Why does Smarty do the assign of the template file on the fetch() rather than, say, on the creation of a Smarty object? What's the logic here?Well, in this case, y ... |
Topic: Parse a template & look for {$vars} ? |
Brian
Replies: 9
Views: 23608
|
Forum: General Posted: Wed May 07, 2003 4:43 pm Subject: Parse a template & look for {$vars} ? |
Thanks for the help. Seems like the objects will work great. |
Topic: Parse a template & look for {$vars} ? |
Brian
Replies: 9
Views: 23608
|
Forum: General Posted: Tue May 06, 2003 6:30 pm Subject: Parse a template & look for {$vars} ? |
I could have sworn I saw a function for this at some time in the past, but I can't for the life of me find it now. I'm looking for a way to parse a template (which contains regular vars, a section, a ... |
Topic: The Logic of Templates (massassi.com) |
Brian
Replies: 75
Views: 398320
|
Forum: Article Discussions Posted: Thu May 01, 2003 10:09 pm Subject: The Logic of Templates (massassi.com) |
Here's another article that takes the massassi argument:
http://www.phppatterns.com/index.php/article/articleview/4/1/1/
It's a bit different. The "massassi" argument still uses a "template eng ... |
|