Sponsored by HowLifeWorks
How to Make Your PC as Fast as the Day You Bought It view!
howlifeworks.com - What's the fastest way to restore a computer to its original blazing glory
60 Comments
- TheProfessional, on 10/11/2007, -1/+11I wonder if it is better than Codeigniter, which is one hell of an awesome lightweight framework and faster than rails. From taking a look at Zend's own framework, I don't think I'll switch. I'll continure to use CI.
- posneg, on 10/11/2007, -1/+9ToastBB *is* nowhere. http://www.google.com/search?q=toastbb
- echelon0, on 10/11/2007, -0/+7You can use both frameworks at the same time to see which MVC/data model you prefer--not to mention ZF has a lot of other useful packages to draw from.
Over the past year, Zend's framework has become massive (some might say "feature rich", others "bloated") simply due to the fact that it's backed by the people who created PHP--and there are a ton of contributing devs--; with all the attention ZF gets it may eventually become the de facto framework for PHP web application development.
It might also be worth noting that Zend Framework has also received the attention of such companies as Adobe, which more than likely means Flash integration toolkits will be made available sometime in the future. IIRC, the only other PHP framework with major enterprise backing is symfony--Yahoo uses it.
Try the code out, and if it still doesn't seem right after investigating it then stick with CI.
Eventually, someone should do a benchmark between ZF, Cake, CI, and symfony. I'd also really like to see how it stacks up against Rails, Django, and the Java frameworks... I can't do it all--I don't have the time--, but perhaps someone would be interested in a group paper on this? - echelon0, on 10/11/2007, -8/+14Hands down the best PHP framework.
- sicapitan, on 10/11/2007, -0/+5dude all they teach you in china is zend, they even have a school here. good for php, but they push their "framework" and tell everyone its the best.
- FrenchToast, on 10/11/2007, -0/+5Here is a good introduction tutorial for the Zend Framework (written by one of it's contributors, Rob Allen):
http://akrabat.com/zend-framework-tutorial/ - gnanders, on 10/11/2007, -0/+4I can understand why it would seem a little odd to have this naming convention at first but hopefully I can try and explain why this is so.
i) The naming of Zend_Controller_Action corresponds to the location of the component and the class file. The class file is Action.php located in the Controller component of the Zend framework. Directory structure as follows:
Zend
|--Controller
|----Action.php
I might extend this to add functionality to my action controllers ( abstract class Ace_Controller_Action extends Zend_Controller_Action )
Ace
|--Controller
|----Action.php
In a modular Zend Framework application structure: class Blog_IndexController extends Ace_Controller_Action
So i would have a Blog module and an index controller with some action methods, note the underscore in the controller classname, only controllers in the 'default' module in a modular Zend Framwork application use only "FooController"
The underscore naming convention is used elswhere also in naming helpers, plugins and so on. These are managed by broker classes for example I could add a directory of action helpers like so: API: "static void addPath (string $path, [string $prefix = 'Zend_Controller_Action_Helper'])"
Zend_Controller_Action_Helper_Broker::addPath( '/Path/To/Action/Helpers', 'Ace_Controller_Action_Helper' )
I would define a helper like this: class Ace_Controller_Action_Helper_BlogRoll extends Zend_Controller_Action_Helper_Abstract
Because i've added the path and prefix definition to the helper broker, i can call the helper like this
public function blogrollAction() {
$this->view->assign( 'blogRoll', $this->BlogRoll() );
}
Hope that gives you a clearer picture of why the naming convention has an underscore and that it's used extensivly throughout the framework. - sicapitan, on 10/11/2007, -0/+4The problem with that is, your limited by your own knowledge, and, you're re-inventing the wheel
- olliholliday, on 10/11/2007, -0/+3i too looked at codeigniter and it does look great - but i was worried that anything i learnt when using that would be hard to transfer to other frameworks..... at least with zend you know that it's well supported and likely to become the industry standard.
- hunchback, on 10/11/2007, -0/+3Rails in slower than PHP because the Ruby interpreter is slower in general, they are working on making it faster with Ruby 2.0.
- breich, on 10/11/2007, -0/+3@hunchback: The underscores in Zend Framework class names such as Zend_Controller_Action or Zend_Validate_Interface are a "compensation" for the fact that PHP 5 doesn't have namespaces.
Just think of the underscores as the namespace resolution ("dot") operator in Java, where you still have fully qualified class names in CamelCaps like java.util.ArrayList. - hunchback, on 10/11/2007, -0/+3class IndexController extends Zend_Controller_Action
Minor gripe? Camel casing "IndexController" vs "Zend_Controller_Action"
Thats the thing about the naming conventions that plague PHP, those guys work really hard so we could all this stuff, but the landing is a little rough there. I guess the benefits outweigh these little negatives. - foobarf00, on 10/11/2007, -4/+7People should also consider Symfony, we used it to develop http://www.thembid.com in a few months and it was a pleasure working with it.
- echelon0, on 10/11/2007, -0/+3Try to keep an open mind, sheesh! This isn't a popularity contest--it's about coding in a language and framework that fits your team's development style and aims. (It's also about getting to Step 4: Profit $$$$ as quickly as possible!)
- FrenchToast, on 10/11/2007, -0/+3No, Zend Framework is a "Zend" project (the makers of PHP: http://zend.com). IBM does however contribute to the project.
- echelon0, on 10/11/2007, -0/+3http://framework.zend.com/manual/en/
The Zend Framework manual might be a bit difficult for you to pick up on at first depending on your experience, but once you've gotten a start it's the best resource on the framework there is. Try the API docs too! - FrenchToast, on 10/11/2007, -1/+3It didn't? hurm... righto
- stefpet, on 10/11/2007, -0/+2Tutorial: Getting Started with the Zend Framework
http://akrabat.com/zend-framework-tutorial/ - mgagne, on 10/11/2007, -0/+2Still no Zend_Layout on 1.0.0...
- olliholliday, on 10/11/2007, -0/+2and cake is slooooow
- SniperX, on 10/11/2007, -0/+2CakePHP has an ajax helper built-in
- intenscia, on 10/11/2007, -0/+2My question exactly. I am using CI and there are a lot of things it does / provide which I love, and other areas that I don't.
My main gripe with CI seems to be that because such a small team of people are building it, the updates seem few and far between. I'll definitely try out zend shortly to see how it stacks up. - jsherlock, on 10/11/2007, -1/+3i program some light PHP and have programmed CF before but i don't really know how to get into using a framework? any tips?
- thinkingserious, on 10/11/2007, -0/+2Have you tried symfony?
- axle_foley00, on 10/11/2007, -0/+1They plan on doing tutorials and posting them soon. Whether or not there will be video tutorials I'm not sure.
- joatmon07734, on 10/11/2007, -0/+1I bet the developers wish they had put namespaces in PHP 5.
- aaronshaf, on 10/11/2007, -6/+7I'm curious, how is this better than CakePHP? I'm using that and I love it.
- SniperX, on 10/11/2007, -0/+1PHP 5 only is both a pro and a con, cake will work on php 4 or 5; Cake has a load of documentation, though it's in the form of API pages and community code samples, the manual is somewhat lacking, thus a newcomer to PHP (read: somewhat who can't easily read php code to see what commands do and how they do it) would have difficulties; the quality is superb with cake because they only have code written by the core cakePHP dev team, which keeps the code clean; cake has standalone components as well as it's been in 1.0+ production for roughly a year now. So I think the question still needs to be answered. I think Zend might be better solely because the team working on it KNOW where PHP will be going in the future, and they know better than anyone how to completely optimize the code, though I have yet to see benchmarks comparing the two. At this point it's still really a toss up, give them both a shot, see which you prefer.
- Vinvin, on 10/11/2007, -0/+1I was the same, but then I decided to try the Zend Framework and now I'm hooked (still need to get the hang a bit though). Though I still need to find out if the "New BSD License" the ZF is licenced under is compatible with the GPL, but I think so. That would be a very strong point.
- Octavian82, on 10/11/2007, -2/+3Yeah! Finally!
I'm using it since the first alpha release and am still impressed of it's simplicity, flexibility and variety of components.
Try it yourself =) - satya61229, on 10/11/2007, -0/+1keep using php. It is a good language for web development. I can say this only.
- Fuline, on 10/11/2007, -0/+1-1 to you sir
- kevinold, on 10/11/2007, -0/+1I am very confused by Zend Framework. Having used symfony and CakePHP (PHP frameworks) and Catalyst and Jifty (Perl frameworks) as well as Rails I don't get why ZF doesn't provide a "project" creation set of tools. Having to setup directories/structure, repopulate the standard index pages make the ZF feel less of a framework and more of just a set of libraries to develop against (kind of like PEAR). Just my $0.02.
- cosmo7, on 10/11/2007, -0/+1I've been happily using Zend Framework for production sites for over a year - since version 0.1.3. I've found that Dojo combines with Zend very nicely.
- inactive, on 10/11/2007, -0/+1Usually things like this take off faster, keep in mind when I dugg it,it was only at like 20 diggs
- alexweej, on 10/11/2007, -0/+1The _ are namespace component delimiters. PHP doesn't have real namespaces, so we have to mangle the names a bit.
- till, on 10/11/2007, -1/+1One of the reasons is that it's PHP5 only. Others are documentation, quality, already available (standalone) components and of course the people working on it.
- fromvega, on 10/11/2007, -0/+0Why don't you consider sharing your framework with the community? If it is so productive as you say I'm sure people will like it.
- 10goto10, on 10/11/2007, -1/+1I would love to see some video tutorials for this, like Code Igniter has.
- zerik, on 10/11/2007, -0/+0i use cakephp for development and the main reason to try another framework is lack of documentation for version 1.2.
however i took a short look at the zend framework, but i don't see any tool for creating the main site structure (like bake.php in cakePHP). Is there any or i need to do this manually? - Heembo, on 10/11/2007, -4/+4... besides Cake
- yenta4shop, on 09/07/2008, -0/+0http://www.yenta4shop.co.uk/
http://astore.amazon.com/12.volt.battery.charger-2 ...
http://astore.amazon.com/5.gallon.water.bottle-20
http://astore.amazon.com/aerobed.raised-20
http://astore.amazon.com/bug.zapper-20
http://astore.amazon.com/flowtron.insect.killer-20
http://astore.amazon.com/furniture.chaise.lounge-2 ...
http://astore.amazon.com/inflatable.bed-20
http://astore.amazon.com/steam.cleaner.mop-20 - Roagie, on 10/11/2007, -0/+0I believe they're also used with the autoload() function to auto-include the files needed to define a class. For example, when you instantiate a class Zend_Controller_Action, that file physically resides in a directory path of Zend/Controller/Action. PHP is not case sensitive, so I'm not sure if they could split the string on caps, but underscrores, sure. PEAR does this as well.
- MOdMac01, on 10/10/2007, -0/+0The goal with the Zend Framework was to make a set of components that you could use in other systems and were flexible enough to be used with out the entire framework. Compared to the tight coupling in other frameworks i think they made the right choice making the zend framework more flexible.
- Kikinou, on 10/11/2007, -0/+0This is great, but what about a nice front end ajax-y widget set to generate nice UI's? With full featured tables, layouts etc.
- yogastore, on 06/27/2008, -0/+0http://astore.amazon.com/baby.dry.diapers-20
http://astore.amazon.com/huggies.baby.diapers-20
http://astore.amazon.com/nike.heart.rate.monitor.w ...
http://astore.amazon.com/polar.heart.rate.monitor. ...
http://astore.amazon.com/digital.bathroom.scale-20
http://astore.amazon.com/digital.food.scale-20
http://astore.amazon.com/kitchen.trash.can-20
http://astore.amazon.com/outdoor.trash.can-20
http://astore.amazon.com/digital.pedometer-20
http://astore.amazon.com/omron.digital.pedometer-2 ... - gnanders, on 10/11/2007, -1/+0ya, and sadly it's not looking too hot for namespacing php6 either
P.S. This frickin comment system stripped all my newlines :/ -
Show 51 - 63 of 63 discussions



What is Digg?