Re: ITX Description
| From: | Bertrand Mansion | Date: | Mon, 11 Mar 2002 11:49:28 +0000 |
| Subject: | Re: ITX Description | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-950@lists.php.net to get a copy of this message | ||
le 11/03/02 0:32, Matt Mohebbi à matt@mohebbi.com a écrit :
> Hello,
>
> I am a little confused by the description of ITX in the pear online docs
> (http://pear.php.net/manual/en/packages.templates.itx.php).
> I know the site is in beta and much of the documentation is still being
> worked on.
>
> "IntegratedTemplateExtension was created as a wrapper class for the PHPLIB
> template system. It helps you to migrate PHPLIB-based projects to
> PEAR-based ones."
This is wrong and definitely should be removed from the docs. IT is
completely original and has very few to do with phplib (even if it was part
of the phplib project some time ago).
> Is it really a wrapper class for PHPLIB? The summary above the description
> of ITX gives the impression that ITX is an extension of IT that offers the
> same functionality of PHPLIB.
With PHPLIB templates, you could import html blocks contained in an external
file and add this block to your current template. With IT, you can't, but
you can extend IT with ITX and then it is possible.
> "ITX is API-compatible, but based on IntegratedTemplate."
>
> What is ITX API compatible with?
Surely not PHPLIB template system. But you should be able to use PHPLIB
template with IT and ITX.
> "Due to the different concepts of processing and organizing blocks in a
> template, the behaviour of itx can differ in some situations."
>
> Does the behaviour of ITX differ from IT in some situations or PHPLIB?
> "it is not recommended to start a project based ITX. If you want a
> PHPLIB-styled template system, then you should use Template_PHPLIB, which
> is the PHPLIB template system following the PEAR coding standards."
>
> What are the differences between ITX and Template_PHPLIB. Why is it
> recommmended that the latter be used when starting a project?
Because the author doesn't know what he is talking about... I use ITX in
many projects and though it has not been stable for a long time, it now
works just the way you want it to work. Feel free to use it.
Bertrand Mansion
Mamasam