03-21-2008, 08:30 PM
|
#4 (permalink)
|
|
The Acquainted
Join Date: Feb 2008
Posts: 119
Thanks: 17
|
Thanks for answering Wildhoney.
I don't quite understand this :S
Let's take an example of a CMS, where I make plugins to extend it's functionality, like say, news plugin, photogallery, blog...
What I'm thinking on now, is have a folder (plugins) where all the plugin files go. Then the cms looks into that folder and knows what plugins I have and what I don't, well then, I have a plugin file (main.php or something) this file will contain a plugin class (ex. News), this class will have several methods like Install() - that will install the plugin (create a needed db, configure some stuff, etc), Configure(), render() - that will actually show the news, and it should be executed on the page where the news will be shown....
Am I right about this?? or is there better ways to do it.
|
|
|
|