Going all Zend
Posted: Wed Sep 03, 2008 7:50 am
Alrighty. I have my companies website. When I first took this job the website was garbage 9000. I quickly moved it to my own framework and got something decent going. Shortly after that, my boss was like "but if you die or quit or whatever, nobody will be able to pick up on your framework very quickly" which is a valid argument. So I moved to Zend with a few custom things thrown in most notably the usage of PHPtal as the templating engine. This is causing things to get a bit messy, especially with translations.
I have been thinking, maybe I should move over to an "All Zend" situation. The problem with this is that I really don't like the way it handles form input and its messy way of adding things in. Basically when someone submits a form I want a different class to be called, not the view class. I want an Action class to be called which processes the data then goes to the view. Zend does not seam to do this and expects form handling to be done in the view class. Also, I want template variable retrieval to be somewhat centralized because I often want the same variables across many views, so why should I code them separately? I can get around all this my own way but it gets sloppy around Zend.
This is all being said about a rather old version of Zend. I have not upgraded in like a year and don't know if the problems I face have been solved. Also, I don't know if there was already solutions to these problems because I can't really find help or even helpful documentation that addresses these issues.
Last, the all Zend thing seams to favor throwing PHP into templates. I am not totally against this though, the only problem being for the designer that we have at my company, I think he might mind. Plus, its always a good idea to keep the 2 separate. But, on the other hand that might clear up some of my messy view problems.
I am currently looking into symfony, but I don't know so much about this whole symfony from the command line thing.
So, from what I have said about problems I have been having with Zend and everything, what do you guys think? Would an all Zend approach with a lot of reading up on it do the trick or should I look more into symfony/cake? Why do I hate every framework?
I have been thinking, maybe I should move over to an "All Zend" situation. The problem with this is that I really don't like the way it handles form input and its messy way of adding things in. Basically when someone submits a form I want a different class to be called, not the view class. I want an Action class to be called which processes the data then goes to the view. Zend does not seam to do this and expects form handling to be done in the view class. Also, I want template variable retrieval to be somewhat centralized because I often want the same variables across many views, so why should I code them separately? I can get around all this my own way but it gets sloppy around Zend.
This is all being said about a rather old version of Zend. I have not upgraded in like a year and don't know if the problems I face have been solved. Also, I don't know if there was already solutions to these problems because I can't really find help or even helpful documentation that addresses these issues.
Last, the all Zend thing seams to favor throwing PHP into templates. I am not totally against this though, the only problem being for the designer that we have at my company, I think he might mind. Plus, its always a good idea to keep the 2 separate. But, on the other hand that might clear up some of my messy view problems.
I am currently looking into symfony, but I don't know so much about this whole symfony from the command line thing.
So, from what I have said about problems I have been having with Zend and everything, what do you guys think? Would an all Zend approach with a lot of reading up on it do the trick or should I look more into symfony/cake? Why do I hate every framework?