|
|||||||
New to SitePoint Forums? Register here for free!
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 | |
|
SitePoint Guru
![]() ![]() ![]() ![]() ![]() Join Date: May 2005
Location: Finland
Posts: 609
|
Zend Framework
I thought a thread of its own would be in order.
Quote:
Zend_Db_DataObject PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
|
|
|
|
|
|
#2 |
|
SitePoint Guru
![]() ![]() ![]() ![]() ![]() Join Date: May 2005
Location: Finland
Posts: 609
|
My own thoughts? Interesting. Definitely interesting. Its previewness is rather evident, though. The manual says nothing of Controller, for instance, but the package is still provided with the framework download. There's Zend_Controller, Zend_Controller_Front, Zend_Controller_Dispatcher, Zend_Controller_Router...
|
|
|
|
|
|
#3 |
|
SitePoint Zealot
![]() ![]() Join Date: Feb 2006
Posts: 143
|
Hmm...looks like nothing more but a bunch of PHP classes. :-P
|
|
|
|
|
|
#4 |
|
SitePoint Zealot
![]() ![]() Join Date: Oct 2004
Location: Worcester
Posts: 138
|
I agree that it's interesting. Not sure what happened to "extreme simplicity" though as the front controller at least is pretty standard from what I can tell...
As I said on the other thread, I've played a bit with the Front Controller and it fits together fairly easily (I wrote up my first attempt at www.akrabat.com). The FC is setup by default so that you have a controller class with functions for each action. i.e. http://localhost/blog/view ends up at BlogController::view(). I haven't yet worked out how the Zend_View class fits in though... It's not a lot different from the way I've been playing with a front controller recently. The question is what do I gain by using the ZF one rather than my own. It's not like there's so much code in a FC that maintenance will be a big issue... As Selkirk noted, the active record is missing from the download which is a shame as I want to poke around that bit! It's a certainty that I'd rather use someone else's orm because there's more obviously upgrades and enhancements that can be shared. |
|
|
|
|
|
#5 | |
|
simple tester
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Sep 2003
Location: Glasgow
Posts: 1,680
|
Quote:
I've only had a quick glance at a few classes so far. InputFilter seems to stack up every validation rule under the sun in separate methods of a single class. Perhaps it would be better to have a look at the Specification pattern, discrete Rule classes and policies. (PS: Jason's Php Architect's Guide to Design Patterns has a section devoted to this for anyone interested in learning more). |
|
|
|
|
|
|
#6 |
|
SitePoint Guru
![]() ![]() ![]() ![]() ![]() Join Date: Aug 2003
Location: UK
Posts: 931
|
ZSearch is quite good so far, indexed 5,200 documents, and seems to be searching fine, thou lacking a cache for the results, which would've been very useful.
|
|
|
|
|
|
#7 | ||
|
Where's my title at?
![]() ![]() ![]() Join Date: Apr 2004
Posts: 249
|
Anyone else can't get the demos to work?
All web services demos: Quote:
Quote:
|
||
|
|
|
|
|
#8 |
|
Non-Member
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jan 2003
Posts: 5,799
|
Umm...
Had a look through the download earlier and there is one thing missing from it... Where are the unit tests? ![]() |
|
|
|
|
|
#9 |
|
SitePoint Guru
![]() ![]() ![]() ![]() ![]() Join Date: Jun 2003
Location: Sweden
Posts: 664
|
Kinda disapointed that the put the ZendDBDataObject (thier AR implementation) in the Manual, but didn't put it in the .tar.gz file ;/. Other then that it looks quite nice, much better then your avarage pvp framework.
|
|
|
|
|
|
#10 | |
|
SitePoint Guru
![]() ![]() ![]() ![]() ![]() Join Date: Nov 2002
Posts: 845
|
Andi responds about Zend_Db_DataObject on the mailing list:
Quote:
|
|
|
|
|
|
|
#11 | |
|
What a twist!
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jul 2002
Location: The Netherlands
Posts: 1,031
|
Quote:
In Zend/Uri/Http.php, on line 373, change Zend_InputFilter to Zend_Filter both times, so that the line becomes: $allow = Zend_Filter::HOST_ALLOW_DNS | Zend_Filter::HOST_ALLOW_LOCAL; But even so, after that I couldn't get the Zend_Feed object working. Gave me a few other errors. So far I'm not really impressed with the framework, and it still feels very buggy to me. I couldn't get much working, and even the demos gave problems. But if they work out the problems, it looks to be a really good framework. |
|
|
|
|
|
|
#12 |
|
SitePoint Zealot
![]() ![]() Join Date: Oct 2004
Location: Worcester
Posts: 138
|
Update on Andi Gutmen's blog: http://andigutmans.blogspot.com/2006...rk-update.html
|
|
|
|
|
|
#13 | |
|
Where's my title at?
![]() ![]() ![]() Join Date: Apr 2004
Posts: 249
|
Quote:
![]() |
|
|
|
|
|
|
#14 | |
|
SitePoint Guru
![]() ![]() ![]() ![]() ![]() Join Date: Aug 2003
Location: UK
Posts: 931
|
Quote:
Must have slipped by." - Andi Gutmans on the framework mailinglist |
|
|
|
|
|
|
#15 |
|
SitePoint Wizard
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Aug 2005
Posts: 1,080
|
uh, why did they steal Apple's RSS icon? It's not even that they used Apple's icon as influence for theirs... they blatantly stole it (it matches pixel for pixel). It's not as if freely available to use RSS icons are difficult to come across or it's difficult to make you own.
Ok *maybe* that has nothing to do with the framework, but it gives a really bad impression when companies do things like that. I really lost quite a bit of respect for Zend what I saw that. How is digital theft "in the true PHP spirit"? On this framework, I'm not quite sure I see how it is any easier to use than existing, more developed PHP frameworks. Though it's only version 0.1.1, so I'll probably hold off too much experimentation and opinion formulation until its a bit more mature (at least version 1.0). |
|
|
|
|
|
#16 |
|
Non-Member
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jan 2003
Posts: 5,799
|
> I'm not quite sure I see how it is any easier to use than existing, more developed PHP frameworks.
At the moment nope, I agree with you, but that isn't the issue, is it? What other PHP framework has the Zend name attached to it? From a business point of view, considering that how far Zend has come, and importantly, where they're going, the framework in time will not so much carry it's self, but the brand will; That is how I look at it anyways. Something else to do forget is the kind of influence that Zend can put across to get the right kind of people to develop and continue to develop the framework, when push comes to shove ![]() There is power in influence as the saying goes. Individuals, businesses, even goverments have fallen simply because of influence. |
|
|
|
|
|
#17 |
|
SitePoint Addict
![]() ![]() ![]() Join Date: Apr 2002
Posts: 285
|
pretty good,
if anything it will attract developers from java and .net to php. Will I use it? if I get bored one day yes, but I already have some of these classes done myself so I don't really feel like setting up the whole thing especially on a host. |
|
|
|
|
|
#19 |
|
Non-Member
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jan 2003
Posts: 5,799
|
Wow...
That's very constructive of you to make that comment, not ![]() I certainly can't comment on ZF as it's too early but I would wager a bet that for the long haul, Zends framework has more potential that Cake PHP has. |
|
|
|
|
|
#20 | |
|
SitePoint Guru
![]() ![]() ![]() ![]() ![]() Join Date: Jun 2003
Location: Sweden
Posts: 664
|
Quote:
|
|
|
|
|
|
|
#21 | |
|
SitePoint Zealot
![]() ![]() Join Date: Oct 2004
Location: Worcester
Posts: 138
|
Quote:
So far, I'm quite impressed with the way the mailing list is developing as it is looking like a community might develop nicely. The decision to start with Table and Row Gateways is interesting as it leaves it open for putting in a more "complex" orm should you need it. |
|
|
|
|
|
|
#22 | ||
|
SitePoint Guru
![]() ![]() ![]() ![]() ![]() Join Date: Jun 2003
Location: Sweden
Posts: 664
|
Quote:
![]() Quote:
|
||
|
|
|
|
|
#23 | |
|
SitePoint Wizard
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jan 2004
Location: 3rd rock from the sun
Posts: 1,005
|
Quote:
|
|
|
|
|
|
|
#24 |
|
SitePoint Evangelist
![]() ![]() ![]() ![]() Join Date: Apr 2005
Posts: 492
|
Can't see it being worthwile to someone who's already a professional developer, at least not at this stage.
|
|
|
|
|
|
#25 | |
|
SitePoint Guru
![]() ![]() ![]() ![]() ![]() Join Date: Jun 2003
Location: Sweden
Posts: 664
|
Quote:
|
|
|
|
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
|
All times are GMT -7. The time now is 02:42.













Linear Mode
