OK. I am creating a completely AJAX and web2.0 Project Management System. Since every company is diffrent, I would like developers to be able to make plugins, like WP does.
My system is currently setup where I made a good API in PHP (incase I expand to iOS/Driod) and the site has AJAX calls to it to get the data it needs.
For instance a plugin that allows the page to track your time on each project.
MY QUESTION: How do I write a jQuery/LAMP site that allows plugins? I
cant exactly wrap my head around how that would work. Of course all
plugins would be submitted through me and only allow ones I have
reviewed.
None the less, I am lost :/
THANKS FOR YOUR HELP IN ADVANCE!
You could see how other systems do it, like WordPress, Drupal or Symfony. I’d have a database table for plugins, and a ‘re-scan’ function that goes through the relevant folder looking for changes (upgrades, deletions, additions).
You’ll also need to add ‘hooks’ into your code so that, if a custom method exists, it is called as well as (or instead of) your default handler. This can get quite complicated, mind 🙂