Re: [PHP] How to implement a plugin system?

2007-08-07 Thread Guillaume Theoret
A couple of months ago I asked pretty much the same question on this list because I was doing the same thing. This is how we implemented our system. For starters, we rolled our own MVC framework. It's pretty much a standard MVC framework, very rails inspired but much more lightweight than Cake and

Re: [PHP] How to implement a plugin system?

2007-08-07 Thread Hamza Saglam
""Nathan Nobbe"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 8/6/07, Stut <[EMAIL PROTECTED]> wrote: >> >> Hamza Saglam wrote: >> > Thanks for your response. However I am looking for something a bit more >> > comprehensive :) >> > >> > I could do it as you suggested if I had o

Re: [PHP] How to implement a plugin system?

2007-08-06 Thread Nathan Nobbe
On 8/6/07, Stut <[EMAIL PROTECTED]> wrote: > > Hamza Saglam wrote: > > Thanks for your response. However I am looking for something a bit more > > comprehensive :) > > > > I could do it as you suggested if I had only a few plugins. As I am > going to > > add loads of plugins over the time, rather t

Re: [PHP] How to implement a plugin system?

2007-08-06 Thread Matt Zandstra
You might want to take a look at stickleback: http://sourceforge.net/projects/stickleback Documentation is very thin on the ground right now, but there's a presentation here: http://www.appulsus.com/resources/stickpres200706/img0.html mz On Mon, 6 Aug 2007, Hamza Saglam wrote: Hello Boro,

Re: [PHP] How to implement a plugin system?

2007-08-06 Thread Stut
Hamza Saglam wrote: Thanks for your response. However I am looking for something a bit more comprehensive :) I could do it as you suggested if I had only a few plugins. As I am going to add loads of plugins over the time, rather than adding all the plugins one by one, could something like a '

Re: [PHP] How to implement a plugin system?

2007-08-06 Thread Hamza Saglam
Hello Boro, Thanks for your response. However I am looking for something a bit more comprehensive :) I could do it as you suggested if I had only a few plugins. As I am going to add loads of plugins over the time, rather than adding all the plugins one by one, could something like a 'loader' c

Re: [PHP] How to implement a plugin system?

2007-08-06 Thread Borokov Smith
Hey Hamza, require_once($chosenPlugin . '.class.php'); $obj = new $chosenPlugin(); return $obj; And you can start from there. hth, boro Hamza Saglam schreef: Hello all, I am working on a project which needs to have some sort of plugins architecture and I am kinda stuck. Basically I want

[PHP] How to implement a plugin system?

2007-08-06 Thread Hamza Saglam
Hello all, I am working on a project which needs to have some sort of plugins architecture and I am kinda stuck. Basically I want to give a list of items to the user, and according to his/her selection, I want to load relevant functionality into my application. I was thinking of having an abstra