Re: IT[X] addBlock()

From: Date: Thu, 20 Dec 2001 09:29:28 +0000
Subject: Re: IT[X] addBlock()
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-3554@lists.php.net to get a copy of this message
<alexander.merz@s1999.tu-chemnitz.de> wrote : >> Furthermore I wonder up till now which IT[X] functions don't work yet? > > <cite author="ulf wendel"> > I should have never ever written ITX; I did so because it was simple to do > so. When you use addBlock & friends always keep in mind that these functions > stand > against the nature of IT. IT analyses the nesting of blocks to give you a > simple block api and make your code easy to understand. It was not made to > manipulate the nesting during runtime. Use e.g. phplib templates > (which are ++FastTemplate) for this. > > </cite> Now that ITX is written and in the CVS tree, it has to work well or be removed. If its author or the other contributors can't make it work, I vote for it to be removed as people keep asking the same questions over and over again : 'Why ITX does not work ?' The answer to this question is that it has not been well thought from the beginning and it has been committed while it was not working. (I am talking about ITX not IT). And according to the citation, Ulf Wendel seems to agree with this. Now for Andre, ITX code is supposed to work "fine" if you use version 1.9, I don't know about the later ones but it should be ok too (?). If you can't make it work, it is because 1. Your template is wrong, 2. Your code is wrong. I would suggest you look at http://marc.theaimsgroup.com/?l=pear-dev&m=100498428025588&w=2 for a small example, or send an abbreviated version of your code and template. If you want my personal opinion about ITX, for having used it for a long time, it is a total waste of time to try to make it work. You'd better use PHPlib templates or Smarty. Good luck Bertrand Mansion Mamasam

« previous php.pear.dev (#3554) next »