Re: [PHP] Template system in PHP

2008-02-14 Thread Zoltán Németh
REST is the new SOAP. Yaml is the new XML. I'm guessing this news just hasn't made it into any PHP frameworks yet. that's a very oversimplifying statement. REST is good for small requests and stuff but there are cases when SOAP is needed (at least in cases when you have to connect to some

Re: [PHP] Template system in PHP

2008-02-14 Thread Paul Scott
On Thu, 2008-02-14 at 09:29 +0100, Zoltán Németh wrote: and by the way, symfony has YAML configuration files and a plugin for REST services. and Chisimba does YAML configs in the blog module, REST, SOAP and XML-RPC services as well as a whole whack of XML-ish things. --Paul --

Re: [PHP] Template system in PHP

2008-02-13 Thread Sancar Saran
Hello, I vote for Typo3 template system. If you work bunch of HTML only designers this one best. If you have some php avare designers, you should go with php based + memcached template systems. Second option was much faster anything else. Just store the template into memcached and do some

Re: [PHP] Template system in PHP

2008-02-13 Thread Arvids Godjuks
About designers who don't know PHP. There are two kinds 1). They draw only. They usualy don't know even HTML - they just draw. 2). They know HTML and make templates. usualy these people have to know HTML and CSS very well. And I can't imagine how they can do that without knowing at least Smarty

Re: [PHP] Template system in PHP

2008-02-13 Thread Richard Heyes
... You won't find many solutions (if any) faster than require(). If all you have currently is developers you don't really have reason to use a custom templating language to slow things down. Even when you do get designers, they should: 1. Not have the final say before systems go live 2.

Re: [PHP] Template system in PHP

2008-02-13 Thread Christoph Boget
As an aside, you can save lines when debugging by doing: echo 'pre' . print_r( $var, TRUE ) . '/pre'; OMG, thanks for that. Lines are so expensive nowadays and all. Sarcasm aside, when I'm debugging I like to be as concise as possible. thnx, Chris -- PHP General Mailing List

Re: [PHP] Template system in PHP

2008-02-13 Thread Richard Heyes
when I'm debugging I like to be as concise as possible. Concise? Really? -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and Helpdesk software for £299 hosted for you - no installation, no maintenance, new features automatic and free ** New Helpdesk demo now

Re: [PHP] Template system in PHP

2008-02-13 Thread Robert Cummings
On Wed, 2008-02-13 at 11:26 +, Richard Heyes wrote: ... You won't find many solutions (if any) faster than require(). Mine is faster. Compiling to the requested page removes cache overhead and file access overhead since the content is already

Re: [PHP] Template system in PHP

2008-02-13 Thread Christoph Boget
when I'm debugging I like to be as concise as possible. Concise? Really? Fair enough. Perhaps I should have said concise with my code, verbose with my actual messages. :p thnx, Chris Looking for

RE: [PHP] Template system in PHP

2008-02-13 Thread Xavier de Lapeyre
Lol... If IE7 goes hun what? I wonder what would happen in lt IE7 :) GO FIREFOX!!! Xavier -Original Message- From: Nathan Rixham [mailto:[EMAIL PROTECTED] Sent: mercredi 13 février 2008 01:27 To: php-general@lists.php.net Subject: Re: [PHP] Template system in PHP *sigh* as always

Re: [PHP] Template system in PHP

2008-02-13 Thread Shawn McKenzie
Xavier de Lapeyre wrote: Lol... If IE7 goes hun what? I wonder what would happen in lt IE7 :) GO FIREFOX!!! Xavier -Original Message- From: Nathan Rixham [mailto:[EMAIL PROTECTED] Sent: mercredi 13 février 2008 01:27 To: php-general@lists.php.net Subject: Re: [PHP

RE: [PHP] Template system in PHP

2008-02-13 Thread Xavier de Lapeyre
@lists.php.net Subject: Re: [PHP] Template system in PHP Are you creating custom DTD's or 1.1 XHTML Mods then? I'd like to see that, it's something I'd toyed with a few times in the past but found it far too time consuming (even for me), and opted for the ol' redefine everything in CSS *lightbulb

RE: [PHP] Template system in PHP

2008-02-13 Thread Robert Cummings
On Thu, 2008-02-14 at 08:58 +0400, Xavier de Lapeyre wrote: Sounds interesting... Are your XML predefined or generated on the run? From say a DB? From a compiler script that extends a base tag class... all it needs to do is register the tag namespace, tag name, and the function that will

RE: [PHP] Template system in PHP

2008-02-13 Thread Xavier de Lapeyre
00:57 To: Shawn McKenzie Cc: php-general@lists.php.net Subject: Re: [PHP] Template system in PHP On Tue, 2008-02-12 at 14:22 -0600, Shawn McKenzie wrote: Ryan A wrote: Add my vote too for Smarty HTH, -R

Re: [PHP] Template system in PHP

2008-02-12 Thread Brice
Hi, I suggest you to use a framework. Lots of them implements template system and more. You'll don't have to reinvent the wheel. My favorit is Copix http://www.copix.org/ Email me if you need help. Brice On Feb 12, 2008 11:01 AM, Xavier de Lapeyre [EMAIL PROTECTED] wrote: Hi, I need to

Re: [PHP] Template system in PHP

2008-02-12 Thread clive
Xavier de Lapeyre wrote: Do any of you guys gurls know of a way to implement that template system. Smarty ? (The best one I know of is that of Wordpress) Regards, Xavier de Lapeyre Web Developer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Template system in PHP

2008-02-12 Thread Christoph Boget
eval() is my favorite templating engine. http://php.net/eval Ditto on Eval() PHP is already a templating system. Why go the long way around? eval()? Man, you guys have some seriously large cajones. :p thnx, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Template system in PHP

2008-02-12 Thread Aleksandar Vojnovic
Because its painful and fun at the same time :) Aleksandar Quoting Nate Tallman [EMAIL PROTECTED]: Ditto on Eval() PHP is already a templating system. Why go the long way around? On Feb 12, 2008 10:13 AM, Greg Donald [EMAIL PROTECTED] wrote: On 2/12/08, Xavier de Lapeyre [EMAIL

Re: [PHP] Template system in PHP

2008-02-12 Thread Robert Cummings
On Tue, 2008-02-12 at 14:22 -0600, Shawn McKenzie wrote: Ryan A wrote: Add my vote too for Smarty HTH, -R Looking for last minute shopping deals? Find them fast with

Re: [PHP] Template system in PHP

2008-02-12 Thread Nathan Rixham
*sigh* as always, firefox obeys, ie7 goes huh what? Nathan Rixham wrote: Are you creating custom DTD's or 1.1 XHTML Mods then? I'd like to see that, it's something I'd toyed with a few times in the past but found it far too time consuming (even for me), and opted for the ol' redefine

Re: [PHP] Template system in PHP

2008-02-12 Thread Nathan Rixham
Are you creating custom DTD's or 1.1 XHTML Mods then? I'd like to see that, it's something I'd toyed with a few times in the past but found it far too time consuming (even for me), and opted for the ol' redefine everything in CSS *lightbulb* :: runs off to try css on custom tags why have i

Re: [PHP] Template system in PHP

2008-02-12 Thread Greg Donald
On Feb 12, 2008 3:15 PM, Robert Cummings [EMAIL PROTECTED] wrote: Custom tags (XML style ones anyways) provide support for arbitrary ordering and omission of optional attributes. They nest nicer than function calls, and they have the same general formatting as the HTML with which you are

Re: [PHP] Template system in PHP

2008-02-12 Thread Robert Cummings
On Tue, 2008-02-12 at 15:02 -0600, Greg Donald wrote: On Feb 12, 2008 2:57 PM, Robert Cummings [EMAIL PROTECTED] wrote: I prefer content formatting encapsulation as provided by custom tags. Decorators? Custom tags (XML style ones anyways) provide support for arbitrary ordering and omission

Re: [PHP] Template system in PHP

2008-02-12 Thread Michael McGlothlin
REST is the new SOAP. Yaml is the new XML. I'm guessing this news just hasn't made it into any PHP frameworks yet. REST is fine for small communications but really isn't a very good solution for large and complex communication. SOAP is the 600 pound gorilla. Usually I use XML-RPC because

Re: [PHP] Template system in PHP

2008-02-12 Thread Nathan Nobbe
On Feb 12, 2008 6:27 PM, Greg Donald [EMAIL PROTECTED] wrote: On Feb 12, 2008 4:23 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: well thats what xslt is, which is pretty nice. /\ is a statement, not a question ;) Wow dude, you're a rock. I meant my question was rhetorical, not your

Re: [PHP] Template system in PHP

2008-02-12 Thread Nathan Rixham
Michael McGlothlin wrote: REST is the new SOAP. Yaml is the new XML. I'm guessing this news just hasn't made it into any PHP frameworks yet. REST is fine for small communications but really isn't a very good solution for large and complex communication. SOAP is the 600 pound gorilla.

Re: [PHP] Template system in PHP

2008-02-12 Thread Michael McGlothlin
Nathan Nobbe wrote: On Feb 12, 2008 7:42 PM, Michael McGlothlin [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: REST is the new SOAP. Yaml is the new XML. I'm guessing this news just hasn't made it into any PHP frameworks yet. YAML doesn't seem significantly easier

Re: [PHP] Template system in PHP

2008-02-12 Thread Nathan Nobbe
On Feb 12, 2008 7:42 PM, Michael McGlothlin [EMAIL PROTECTED] wrote: REST is the new SOAP. Yaml is the new XML. I'm guessing this news just hasn't made it into any PHP frameworks yet. YAML doesn't seem significantly easier (faster less intensive) to parse than XML, it doesn't seem as

Re: [PHP] Template system in PHP

2008-02-12 Thread Greg Donald
On Feb 12, 2008 4:23 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: well thats what xslt is, which is pretty nice. /\ is a statement, not a question ;) Wow dude, you're a rock. I meant my question was rhetorical, not your statement about my question. /me point Nathan to

Re: [PHP] Template system in PHP

2008-02-12 Thread Nathan Nobbe
On Feb 12, 2008 5:10 PM, Greg Donald [EMAIL PROTECTED] wrote: On Feb 12, 2008 3:37 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: well thats what xslt is, which is pretty nice. /\ is a statement, not a question ;) /me point Nathan to http://en.wikipedia.org/wiki/Rhetorical_question XSLT

Re: [PHP] Template system in PHP

2008-02-12 Thread Shawn McKenzie
Nathan Rixham wrote: Shawn McKenzie wrote: Ryan A wrote: Add my vote too for Smarty HTH, -R Looking for last minute shopping deals? Find them fast with Yahoo! Search.

Re: [PHP] Template system in PHP

2008-02-12 Thread Greg Donald
On Feb 12, 2008 3:37 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: well thats what xslt is, which is pretty nice. /me point Nathan to http://en.wikipedia.org/wiki/Rhetorical_question XSLT sucks, complete overkill. -- Greg Donald http://destiney.com/ -- PHP General Mailing List

Re: [PHP] Template system in PHP

2008-02-12 Thread Nathan Nobbe
On Feb 12, 2008 4:45 PM, Robert Cummings [EMAIL PROTECTED] wrote: well thats what xslt is, which is pretty nice. Nah, I don't bother with XSLT. i know, i just thought id mention it, since xml was brought up and nobodys even mentioned xslt yet. i will likely move away from xslt, but i will

Re: [PHP] Template system in PHP

2008-02-12 Thread Nathan Rixham
guys, you all know you can F5 in the view source bit of firefox yeah.. save's all the pre's and loads of time! right click : view source : F5 till your done debugging. :) Christoph Boget wrote: I agree. I usually add a little function like this to my PHP projects: function debug( $var ) {

Re: [PHP] Template system in PHP

2008-02-12 Thread Robert Cummings
On Tue, 2008-02-12 at 16:37 -0500, Nathan Nobbe wrote: On Feb 12, 2008 4:18 PM, Greg Donald [EMAIL PROTECTED] wrote: On Feb 12, 2008 3:15 PM, Robert Cummings [EMAIL PROTECTED] wrote: Custom tags (XML style ones anyways) provide support for arbitrary ordering and omission of optional

Re: [PHP] Template system in PHP

2008-02-12 Thread Robert Cummings
On Tue, 2008-02-12 at 21:19 +, Nathan Rixham wrote: Are you creating custom DTD's or 1.1 XHTML Mods then? I'd like to see that, it's something I'd toyed with a few times in the past but found it far too time consuming (even for me), and opted for the ol' redefine everything in CSS

Re: [PHP] Template system in PHP

2008-02-12 Thread Robert Cummings
On Tue, 2008-02-12 at 15:18 -0600, Greg Donald wrote: On Feb 12, 2008 3:15 PM, Robert Cummings [EMAIL PROTECTED] wrote: Custom tags (XML style ones anyways) provide support for arbitrary ordering and omission of optional attributes. They nest nicer than function calls, and they have the

Re: [PHP] Template system in PHP

2008-02-12 Thread Nathan Nobbe
On Feb 12, 2008 4:18 PM, Greg Donald [EMAIL PROTECTED] wrote: On Feb 12, 2008 3:15 PM, Robert Cummings [EMAIL PROTECTED] wrote: Custom tags (XML style ones anyways) provide support for arbitrary ordering and omission of optional attributes. They nest nicer than function calls, and they

Re: [PHP] Template system in PHP

2008-02-12 Thread Christoph Boget
I agree. I usually add a little function like this to my PHP projects: function debug( $var ) { echo 'pre'; print_r( $var ); echo '/pre'; } As an aside, you can save lines when debugging by doing: echo 'pre' . print_r( $var, TRUE ) . '/pre'; thnx, Chris -- PHP General Mailing

Re: [PHP] Template system in PHP

2008-02-12 Thread András Csányi
2008/2/12, Xavier de Lapeyre [EMAIL PROTECTED]: Hi, I need to develop a website, but my management is rather unstable in his vision for the layout. I'm thinking of developing the components as classes and functions, and then use a template system to render the layout. If the management

Re: [PHP] Template system in PHP

2008-02-12 Thread Łukasz Wojciechowski
I used Smarty for long time but now switched to two-step-rendering. It's way more comfortable (for me). I suggest Zend_Layout + Zend_View at the moment (framework.zend.com) -- Łukasz Wojciechowski

Re: [PHP] Template system in PHP

2008-02-12 Thread Greg Donald
On Feb 12, 2008 3:32 PM, Christoph Boget [EMAIL PROTECTED] wrote: As an aside, you can save lines when debugging by doing: echo 'pre' . print_r( $var, TRUE ) . '/pre'; OMG, thanks for that. Lines are so expensive nowadays and all. -- Greg Donald http://destiney.com/ -- PHP General

Re: [PHP] Template system in PHP

2008-02-12 Thread Greg Donald
On Feb 12, 2008 1:58 PM, Nathan Rixham [EMAIL PROTECTED] wrote: I still don't understand why general net users don't just like to see print_r output; it's got all the info they could want, ordered and structured *shrugs* vote: text/plain I agree. I usually add a little function like this to

Re: [PHP] Template system in PHP

2008-02-12 Thread Nathan Rixham
Shawn McKenzie wrote: Ryan A wrote: Add my vote too for Smarty HTH, -R Looking for last minute shopping deals? Find them fast with Yahoo! Search.

Re: [PHP] Template system in PHP

2008-02-12 Thread Greg Donald
On Feb 12, 2008 2:57 PM, Robert Cummings [EMAIL PROTECTED] wrote: I prefer content formatting encapsulation as provided by custom tags. Decorators? -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Template system in PHP

2008-02-12 Thread Shawn McKenzie
Ryan A wrote: Add my vote too for Smarty HTH, -R Looking for last minute shopping deals? Find them fast with Yahoo! Search.

Re: [PHP] Template system in PHP

2008-02-12 Thread Ryan A
Add my vote too for Smarty HTH, -R Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping -- PHP

Re: [PHP] Template system in PHP

2008-02-12 Thread Nathan Rixham
I still don't understand why general net users don't just like to see print_r output; it's got all the info they could want, ordered and structured *shrugs* vote: text/plain Aleksandar Vojnovic wrote: Because its painful and fun at the same time :) Aleksandar Quoting Nate Tallman [EMAIL

Re: [PHP] Template system in PHP

2008-02-12 Thread Michael McGlothlin
I don't suggest the use of a template system unless you do need something as complex as XSLT. PHP itself works very well for templating. Just write your code so that the UI code is sepperate from the logic and everything is neat and tidy without adding a layer of complexity. If you want a

Re: [PHP] Template system in PHP

2008-02-12 Thread Nate Tallman
Ditto on Eval() PHP is already a templating system. Why go the long way around? On Feb 12, 2008 10:13 AM, Greg Donald [EMAIL PROTECTED] wrote: On 2/12/08, Xavier de Lapeyre [EMAIL PROTECTED] wrote: Do any of you guys gurls know of a way to implement that template system. eval() is my

Re: [PHP] Template system in PHP

2008-02-12 Thread Greg Donald
On 2/12/08, Xavier de Lapeyre [EMAIL PROTECTED] wrote: Do any of you guys gurls know of a way to implement that template system. eval() is my favorite templating engine. http://php.net/eval -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Template system in PHP

2008-02-12 Thread Jochem Maas
Xavier de Lapeyre schreef: Hi, I need to develop a website, but my management is rather unstable in his vision for the layout. I'm thinking of developing the components as classes and functions, and then use a template system to render the layout. If the management wishes to change the layout,

Re: [PHP] Template system in PHP

2008-02-12 Thread Nathan Rixham
another vote here for smarty - it's pretty much standard issue nowadays and means should the need ever arise you can easily bring in a web designer to do the html without having to worry about them learning some new system. Nathan clive wrote: Xavier de Lapeyre wrote: Do any of you guys

RE: [PHP] Template system in PHP

2008-02-12 Thread Bastien Koert
smarty? bastien Date: Tue, 12 Feb 2008 14:01:11 +0400 From: [EMAIL PROTECTED] To: php-general@lists.php.net Subject: [PHP] Template system in PHP Hi, I need to develop a website, but my management is rather unstable in his vision for the layout. I'm thinking of developing the

Re: [PHP] Template system in PHP

2008-02-12 Thread mike
On 2/12/08, Greg Donald [EMAIL PROTECTED] wrote: REST is the new SOAP. Yaml is the new XML. I'm guessing this news just hasn't made it into any PHP frameworks yet. REST for the win. SOAP is best left for the bathtub. as far as templating engines go, a while back i wanted to see if i could

Re: [PHP] Template system

2006-10-05 Thread Dave Goodchild
Smarty? smarty.php.net -- http://www.web-buddha.co.uk

Re: [PHP] Template system

2006-10-05 Thread Ryan A
Thats what i use... and no complaints so far. Cheers, Ryan Dave Goodchild [EMAIL PROTECTED] wrote: Smarty? smarty.php.net -- http://www.web-buddha.co.uk -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile,

Re: [PHP] Template system

2006-10-05 Thread Ryan A
Actually, I tried Fast Template when trying to decide on a templating solution, ran into some errors from the main class file/s and didnt get any help on it... so dumped it. The forums/lists for SMARTY are really good, very very helpful folks... I daresay as helpful and great as this php list.

RE: [PHP] Template system

2006-10-05 Thread Peter Lauri
:59 PM To: Peter Lauri Cc: PHP Subject: Re: [PHP] Template system Smarty? smarty.php.net -- http://www.web-buddha.co.uk