Is the Zend Framework similar in use in relation to PHP just like jQuery is used for javascript?
-
This could easily be determined by a quick google search: http://en.wikipedia.org/wiki/Zend_Framework, but yes, Zend Framework is built upon PHP similar to jQuery being built upon JavaScript – JamesHalsall Feb 12 '11 at 13:05
5 Answers
Only in the sense that thing A is written in thing B and attempts to make doing things C, D, and E easier for programmers using thing B.
Programmers have been writing libraries of code for their favourite language for decades. It's called 'not re-inventing the wheel' and is a Good Thing.
In this case you are talking about two different wheels. On two different types of transportation vehicle.

- 92,590
- 12
- 140
- 224
Zend is an MVC (model view controller) framework that allows you to build applications in php following that particular design pattern. jQuery is a library that lets you do lot of stuff with the DOM and simplify javascript/DOM/ajax coding. My answer is no :)

- 14,478
- 2
- 50
- 68
i think Following notes can help you:: Framework is collection of libraries which have software help, Many code libraries,scripting languages, Support programs etc.. But libraries is simple collection Of methods!!!

- 3,481
- 5
- 23
- 29
Not exactly. Zend Framework is framework and jQuery is library. Read here about difference between framework and library.

- 1
- 1

- 2,861
- 1
- 16
- 12
-
What is the difference? Framework is a set of libraries, and jquery library is a set of plugins. The exactly same things with just different names. – zerkms Feb 12 '11 at 13:04
-
I was reading one of the other stackoverflow questions similar to mine. So a framework is basically multiple libraries weaved together right? I might be wrong though, I'm a library/framework noob just learning this stuff. – Simon Suh Feb 12 '11 at 13:07
-
1I'd be more inclined to compare Zend Framework with extjs rather than with jQuery... extjs is a framework for javascript that can (optionally) use the jQuery library – Mark Baker Feb 12 '11 at 13:07
-
@Qlidnaque: the terms of plugin, package, library, framework, extension etc are vague, so depending on the case (programming language, programming technique, etc) you can use the different terms. – zerkms Feb 12 '11 at 13:09
-
@KomarSerjio: also the highest rated answer in the topic you pointed is just incorrect: there is nothing to do with IoC in defining framework. I can use ZF and controll all the process (ie, without zend application structure). Will the ZF be less framework in this case? Obviously - no. – zerkms Feb 12 '11 at 13:11
-
@KomarSerjio: so what? http://stackoverflow.com/questions/3057526/framework-vs-toolkit-vs-library --- it is just a **subjective** opinion of one particular person. – zerkms Feb 12 '11 at 13:11
-
@zerkms Yes, you can use ZF as library (just use some components). But if your app is based on ZF it means that you use framework (framework calls your code). – KomarSerjio Feb 12 '11 at 13:18
-
@zerkms, there is a difference (in my view): http://stackoverflow.com/questions/4952974/what-is-the-difference-between-a-class-and-a-library/4953194#4953194 – ircmaxell Feb 12 '11 at 13:35
-
@KomarSerjio: it is just an opinion. How do you get it is "correct"? Based on what criterias? What framework term description is that answer based on? Is there only one framework term description? – zerkms Feb 12 '11 at 13:37
-
@ircmaxell: yes, your answer is much better, since it doesn't rely on IoC only. And IoC is not a requirement for some bunch of code to be called a framework. – zerkms Feb 12 '11 at 13:38
-
Main difference: "You call a library's code. A Framework calls your code." I'm tired to repeat this. – KomarSerjio Feb 12 '11 at 13:41
-
@KomarSerjio: yes, indeed, and this has nothing to do with IoC. IoC is a technique about how the dependencies are controlled (resolved), not about an application workflow. Even if framework calls your code - it doesn't mean it follows IoC ideas. Is it clear enough? – zerkms Feb 12 '11 at 13:42
-
@KomarSerjio: yes, it is mine. And yours doesn't correlate with the one you referred to. IoC has nothing to do with workflow. Can't you get the difference between terms DI (and dependencies at all) and application workflow? – zerkms Feb 13 '11 at 05:34
-
@KomarSerjio: Also, there is no any DI containter in ZF - so ZF is not a framework then? – zerkms Feb 13 '11 at 05:40
-
@zerkms: I'm not sure that you are familiar with term IoC. Yes, DI is IoC, but IoC is not necessary dependency injection. – KomarSerjio Mar 27 '11 at 11:49
-
@KomarSerjio: I definitely am familiar with it. IoC is about resolving dependencies. And there is no configurable container in ZF. So ZF is not a framework? – zerkms Mar 27 '11 at 11:56
-
@zerkms: IoC is abount flow of control, but not just about dependencies. Read http://en.wikipedia.org/wiki/Software_framework – KomarSerjio Mar 27 '11 at 12:00
I'd say that jQuery is what CakePHP is for PHP and Zend Framework is what DOJO is for Javascript.
jQuery helps you with simple tasks, but is discutable for enterprise usage for the lack of systematic classes. It's more of the quick 'n dirty solution. It's faster in simple tasks, but for complex application it meets it's boundaries. It lacks comprehensive extensions loading mechanism AFAIK.

- 11,129
- 8
- 54
- 82