It’s over a month since I last wrote on my blog, but to be perfectly honest I don’t have a clue what to write about. Ideas are welcome (:
I’ve known PHP for a good couple of years now (about 3 I think). I’ve built (and scrapped) many PHP scripts I have written along the way, and the code in it has been rather un-maintainable. Gradually, I’ve moved onto splitting my code logic from my html, using templates to change layouts and I even went as far as to create my own database abstraction class, well what I could put together anyway.
But the code is still confusing to look at when I come to modify something or add a feature somewhere, so I decided to take a look at frameworks. There are tons out there… Cake, CodeIgnighter, Symfony and Zend, and I’ve tried Cake to no avail in the past, so which one would be right for me?
On some good advice I’m going to give Zend Framework a try. After all, it’s kind of made by the people who made PHP itself, so I don’t think I can go far wrong. The other plus to it is that you can pick and choose between the components you want, and the components you don’t, and it seems pretty straightforward that you can implement your own components too. (I’ve yet to work out how to do this!)
I think I’ll see how it goes, I’m hoping I get the hang of it because using a framework will help me keep my code easy to maintain in the future, but I still want the level of control over my code as I do when coding my own stuff at the moment.