web developers
•
31 May 2007, 18:58
•
Journals
Dear Kitty,
In the past I have created a couple of websites, most of them rather small and basic. Now I planning on doing a more complex project. Same then the previous ones I am going to use PHP/MySQL as combo. But when looking into some PHP resources they introduced the idea of using an object oriented approach for the PHP development.I have some experience in the whole OO environment when developing some java projects but am not sure wether it is the right way to go :)
My question to you guys (the ones that have actually made decent webbies :x) is wether you have used an OO or a function oriented methodology for your web projects?
Although it is not a very large project it would be a nice way to get familiar with this kind of development.
In the past I have created a couple of websites, most of them rather small and basic. Now I planning on doing a more complex project. Same then the previous ones I am going to use PHP/MySQL as combo. But when looking into some PHP resources they introduced the idea of using an object oriented approach for the PHP development.I have some experience in the whole OO environment when developing some java projects but am not sure wether it is the right way to go :)
My question to you guys (the ones that have actually made decent webbies :x) is wether you have used an OO or a function oriented methodology for your web projects?
Although it is not a very large project it would be a nice way to get familiar with this kind of development.
read php.net tutorials
If you see the NEED or at least the USE of an OOP approach, go for it. If not, stick with what you know.
(Can I also suggest you look at the existing CMS's available, like joomla and drupal, and maybe customize those with some code? That's the best/quickest way imo)
What can I say, go through their help. It's a whole different thing than coding in PHP directly. One other more thing, joomla is easier to grasp from an administrator's point of view.
If you need to code for them, for joomla you need to make components (or at least that's how it was a long time ago, when I used it, it might have changed in the meantime), while for drupal any node/story/article/whatever can actually be php code, so you don't really need to delve into it's API.
You should take a look at CodeIgniter (http://www.codeigniter.com), it's an excellent OO framework that works in both PHP4 as PHP5 and doesn't require a command line like most others do.