Reply to Re: Parser for conditions with logical operators

Your name:

Reply:


Posted by fletch on 04/12/06 12:53

Are you doing a template engine?

We parse <$TEST.TestName.otherparams> and write a cache file which will
contain this instead of the tag:

if($oForObj->Test_TestName($otherparam1,$otherparam2)){

<$TEST.ELSE> is replaced as '} else {'
and <$/TEST> as '}'

$oForObj is set to be the object that displays the template and would
therefore be expected to have the required method.

All the logic then goes into that method, and you can get as
complicated as you like.

I suppose you could do something similar with switch, but we haven't
yet.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация