Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Search found 17 matches
Smarty Forum Index
Author Message
  Topic: The Logic of Templates (massassi.com)
BRDude

Replies: 75
Views: 395029

PostForum: Article Discussions   Posted: Wed Jun 09, 2004 11:26 am   Subject: The Logic of Templates (massassi.com)
Is anyone familiar with the recent Savant
I think its unfortunate that Savant chose to present itself as an alternative to Smarty, I still regard it as a powerful solution though.

I have no Smarty ...
  Topic: Beyond the template engine
BRDude

Replies: 11
Views: 118900

PostForum: Article Discussions   Posted: Wed Jun 09, 2004 10:46 am   Subject: Re: Beyond the template engine
Savant is a very bad solution. I tested it for a while and it doesn't seperates php(logic) from layout(html). If you don't believe me look at their
It's true that Savant does not separate php from ...
  Topic: overwrite attribute for config_load
BRDude

Replies: 1
Views: 8856

PostForum: Feature Requests   Posted: Wed Jan 21, 2004 2:45 pm   Subject: overwrite attribute for config_load
I think it would be useful to add an "overwrite" attribute so one can choose to config_load a specific config file with overwrite set to FALSE instead.

Another simple solution would be setting $sma ...
  Topic: Basically, I think that template engines suck.
BRDude

Replies: 41
Views: 69517

PostForum: General   Posted: Mon Jan 05, 2004 6:26 pm   Subject: Basically, I think that template engines suck.
This is going nowhere. I'm being humble and understanding, yet you accuse me of not understanding basic concepts, which is offensive. No hard feelings, let's just agree to disagree.
  Topic: Basically, I think that template engines suck.
BRDude

Replies: 41
Views: 69517

PostForum: General   Posted: Mon Jan 05, 2004 5:09 pm   Subject: Basically, I think that template engines suck.
marccho, Microsoft satanism aside, "framework" is what I used to describe the set of features Smarty provides out-of-the-box. It's very refreshing when you can get them all up and ready to deploy by j ...
  Topic: Basically, I think that template engines suck.
BRDude

Replies: 41
Views: 69517

PostForum: General   Posted: Sat Jan 03, 2004 5:44 pm   Subject: Basically, I think that template engines suck.
btw, when I said framework, I meant just a proper set of features related to doing something. I know ppl use the term "framework" mostly for higher level stuff.
  Topic: Basically, I think that template engines suck.
BRDude

Replies: 41
Views: 69517

PostForum: General   Posted: Sat Jan 03, 2004 5:35 pm   Subject: Basically, I think that template engines suck.
marccho, sounds interesting to use just PHP for the parsing. It's like you're saying that PHP is already equipped to do what Smarty wants to do.

I'd be willing to try out solutions that are simpler ...
  Topic: Basically, I think that template engines suck.
BRDude

Replies: 41
Views: 69517

PostForum: General   Posted: Fri Jan 02, 2004 8:42 pm   Subject: Basically, I think that template engines suck.
marccho, please enlighten us, what are other more practical ways of separating appearance from logic? Seriously.

I came to like the idea of using templates and Smarty was the only engine which made ...
  Topic: {section} not traversing arrays with non-standard keys
BRDude

Replies: 2
Views: 9741

PostForum: Bugs   Posted: Fri Jan 02, 2004 3:33 am   Subject: {section} not traversing arrays with non-standard keys
Hi messju, thanks for pointing that out!

Unfortunately foreach lacks features like index, index_next, step, etc. A simple workaround in the section code would be using array_keys() to build an arra ...
  Topic: {section} not traversing arrays with non-standard keys
BRDude

Replies: 2
Views: 9741

PostForum: Bugs   Posted: Thu Jan 01, 2004 4:15 pm   Subject: {section} not traversing arrays with non-standard keys
If I assign an array like this:
$basket = array(
'apple' => 'red',
0 => 'zero is round',
'orange' => 'orange',
'banana' => 'yellow'
);

$template->assign('basket', $bask ...
  Topic: Triple quotes in comments
BRDude

Replies: 7
Views: 19277

PostForum: Bugs   Posted: Thu Jan 01, 2004 3:19 pm   Subject: Triple quotes in comments
This bug report seems to have been ignored, I'm bumping it up, hope someone replies about it.

The triple quote bug gave me a hard time the other day, triple quotes should be parsed someway else, th ...
  Topic: Arrays in config files would be great!
BRDude

Replies: 11
Views: 27399

PostForum: Feature Requests   Posted: Thu Nov 27, 2003 3:51 am   Subject: Arrays in config files would be great!
messju that's great, I believe this functionality will be very helpful! It's already made my life easier, now I have staff updating FAQs by editing simple config files instead of messing with my preci ...
  Topic: Triple quotes in comments
BRDude

Replies: 7
Views: 19277

PostForum: Bugs   Posted: Wed Nov 26, 2003 2:06 pm   Subject: Triple quotes in comments
No big deal, easy workaround, but worth mentioning IMHO. The following config file doesn't work:


# Please use triple quotes (""") for multi-line values

whatever = " ...
  Topic: Arrays in config files would be great!
BRDude

Replies: 11
Views: 27399

PostForum: Feature Requests   Posted: Wed Nov 26, 2003 1:48 pm   Subject: Arrays in config files would be great!
thanks again boots, smart workaround Smile I was feeling kind of dirty inside for messing with Smarty's code.

messju, thanks, maybe it should be limitless (I don't understand what's with that limit c ...
  Topic: Arrays in config files would be great!
BRDude

Replies: 11
Views: 27399

PostForum: Feature Requests   Posted: Wed Nov 26, 2003 4:51 am   Subject: Arrays in config files would be great!
Oops, there seems to be a problem with {section} reading arrays generated by config files. This doesn't work:

faq.config:

question = "How do I...?"
answer = "Easy silly, just..."

question = ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT
Jump to:  


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