On Thu, 27 Jun 2002, Alan Knowles wrote:

> this is a good starting place
> http://www.php.net/manual/en/zend.php
>

Yes, I looked on the manual before asking. There isn't a good introduction
on how to do what I want to do in there, and thats why I asked around
before sending the email here.


> although it doesnt cover the class stuff that well (which can be done :
> ming, domxml,  gtk, xmms  - to name a few that do it )
> - for a nice example have a look at the xmms extension
> http://cvs.php.net/cvs.php/pear/PECL/xmms
>

While I see the lines on xmms.c to create and register the new 'xmms'
internal class, I don't see in here:

http://cvs.php.net/co.php/pear/PECL/xmms/xmms.php?r=1.1

the code to actually do:

$xmms = new xmms; // or something like this


> This illustrates class and functional creation,
>
> as a side suggestion it may be worth calling your class HTML_Template_XXXXXX
> as this would fit in better with the PEAR naming of classes..
>

Again, what I really wish to do is create a plug-in replacement for
PHPLIB's Template class. I already have a huge codebase that uses PHPLIB'
Template class and would like to create an extension that would make it
possible to just remove the calls to 'include("Template.php")' from my
code and have the code use my C extension class instead.

Since I'm not planning on contributing this to PEAR and that I need the
specific 'Template' class name, your suggestion is not appropriate ;)

Thanks,
Joao


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to