Plugin / Module Functionality

0 views
Skip to first unread message

craig.s...@gmail.com

unread,
Oct 5, 2006, 3:10:38 PM10/5/06
to OC PHP
I would like to have some sort of module/plugin functionality where
other developers could create their own classes or pages and drop them
into a specific directory that is defined within my code and that code
be almost immediately available within the main code. Unfortunately, I
don't know where to start.

If anyone has any insight on this and could point me in the right
direction, that would be great.

Thanks.

William Estrada

unread,
Oct 5, 2006, 3:22:51 PM10/5/06
to OC-...@googlegroups.com
If you are looking into plugin architecture, PHP|Architect had a great little 8 page article on how to go about it (http://www.phparch.com/issue.php?mid=79). haven't read it entirely yet.

for automatically loading classes not yet included, sounds like what you are actually asking, php 5 has the __autoload  function (http://us3.php.net/autoload). if you are using php 4, once viewing the link, if you scroll down to the contributors/comment portion, you can find examples of doing something similar in 4.

hope this helps.

craig.s...@gmail.com

unread,
Oct 13, 2006, 5:40:01 PM10/13/06
to OC PHP
That PHP|Architect issue is a great start.

Thanks!

On Oct 5, 12:22 pm, "William Estrada" <losthitchhi...@gmail.com> wrote:
> If you are looking into plugin architecture, PHP|Architect had a great
> little 8 page article on how to go about it (http://www.phparch.com/issue.php?mid=79). haven't read it entirely yet.
>
> for automatically loading classes not yet included, sounds like what you are
> actually asking, php 5 has the __autoload function (http://us3.php.net/autoload). if you are using php 4, once viewing the link,
> if you scroll down to the contributors/comment portion, you can find
> examples of doing something similar in 4.
>
> hope this helps.
>

Scott

unread,
Oct 13, 2006, 7:14:54 PM10/13/06
to OC PHP
Have you actually read this yet? Is it worth $5 for the issue?

php4ever

unread,
Oct 14, 2006, 6:17:34 PM10/14/06
to OC PHP
I've been subscribing to it for several months and really enjoy reading
it. There is always an article that covers something that is not
covered in any of my ever-expanding library of php books. The only
criticism I have of the mag. is that there are frequently minor typos
that slipped by the editorial staff. And, sometimes the code snippets
have errors. However, that said I still think that it is a great
magazine, one that I eagerly look forward to reading every month.

What makes it a great magazine is that it does a really good job of
presenting new ideas, new techniques and manages to keep up with all
the latest PHP news. In sum, I'd give the mag. a rating of "Excellent"
and will definitely renew my subscription when it comes due.

Reply all
Reply to author
Forward
0 new messages