S.No | Cakephp | Zend Framewok |
1
|
It is just framework. | It is Both framework and library. |
2
|
In View Form helper, there is form elements, validation available. | In View Form helper, there is form elements, validation, filters(like strip_tags), order of elements, sub form, and decoraters are available. |
3
|
we can render form elements one by one | We can render form in one line, one by one element, element OR decorator OR error separetly. |
4
|
Form configuration can not done by through configuation file | Zend_form can be do configuration through zend_cofig or xml |
5
|
When cake start, It load all library that's why Its not good for small project. | Its library is too big as compare to cakephp. If you are not using any component then it will not load by default. |
6
|
It uses front controller design and singleton design pattern. | It use front controller pattern, factory patter, strategy pattern, singleton pattern. |
7
|
It is good for fast development. | It is best, if you application are using webservices |
8
|
ACL, Auth like comonents are easily availbele for cakephp. | It has its own ACL, Auth components and upto deeper level. |
9
|
When cake start, It load all library that's why Its not good for small project. | Its library is too big as compare to cakephp. If you are not using any component then it will not load by default. |
10
|
It have session component | It have Zend Session and Zend Registery components. |
11
|
Its class name does not map with file location | Its mapping, If any class name is Zend_forms_abc file location is Zend/Forms/abc.php |
12
|
Mostly used for fast development. | Mostly used for web services |
We are Web Technology Experts Team who provide you Important information on Web Development, Interview Questions and Answers, live project problem and their solution and online free tutorials.
Wednesday, 12 June 2013
Difference Between Cakephp and Zend Framework
Saturday, 8 June 2013
Pending Interview Questions and Answers
Who is the Father of PHP?
Rasmus Lerdorf
Which programming language does PHP resemble to?
PHP resemble to pearl and C
How can we create a database using PHP and MySQL?
We can create MySQL database in php with the use of
Is variable name case sensitive?
Yes, In PHP variable name case sensitive. We cannot start a variable with number like $777name as a valid variable name starts with a letter or underscore, followed by any number of letters, numbers, or underscores.
How can we execute a php script using command line?
Just run the PHP CLI (Command Line Interface) program and provide the PHP script file name as the command line argument. For example, "php myScript.php", assuming "php" is the command to invoke the CLI program.
Differentiate between in_array() and array_search() in php?
in_array : Checks if a value exists in an array. array_search() : Searches an array for a given value and returns the corresponding key if successful.
How do you call a constructor for a parent class?
How to delete file in PHP ?
How to delete variable in PHP ?
What is the urlencode and urldecode in php ?
Returns a string in which all non-alphanumeric characters except -_. have been replaced with a percent (%) sign followed by two hex digits and spaces encoded as plus (+) signs.
What is the use of the function htmlentities?
htmlentities Convert all applicable characters to HTML entities This function is identical to htmlspecialchars() in all ways, except with htmlentities(), all characters which have HTML character entity equivalents are translated into these entities.
Differentiate between strstr and stristr in php?
strstr() and stristr both are used to find the first occurence of the string only difference is stristr( ) is case insensitive.
How can we know the total number of elements of Array?
How to secure your website?
What is PHP configuration file called?
php.ini.
What is a persistent cookie?
A persistent cookie is a cookie which is stored in a cookie permanently on the browser's computer. By default, cookies are created as temporary cookies which stored only in the browser's memory. When the browser is closed, temporary cookies will be erased automatically.
What are non-key columsn in database?
Answer: A non key attribute in sql server is a columns which can not be used to identify a record uniquely for example name or age columns in customer table
Rasmus Lerdorf
Which programming language does PHP resemble to?
PHP resemble to pearl and C
How can we create a database using PHP and MySQL?
We can create MySQL database in php with the use of
mysql_create_db ("db_name");
Is variable name case sensitive?
Yes, In PHP variable name case sensitive. We cannot start a variable with number like $777name as a valid variable name starts with a letter or underscore, followed by any number of letters, numbers, or underscores.
How can we execute a php script using command line?
Just run the PHP CLI (Command Line Interface) program and provide the PHP script file name as the command line argument. For example, "php myScript.php", assuming "php" is the command to invoke the CLI program.
Differentiate between in_array() and array_search() in php?
in_array : Checks if a value exists in an array. array_search() : Searches an array for a given value and returns the corresponding key if successful.
How do you call a constructor for a parent class?
parent::constructor($value);
How to delete file in PHP ?
unlink($filename);
How to delete variable in PHP ?
unset($variable);
What is the urlencode and urldecode in php ?
Returns a string in which all non-alphanumeric characters except -_. have been replaced with a percent (%) sign followed by two hex digits and spaces encoded as plus (+) signs.
What is the use of the function htmlentities?
htmlentities Convert all applicable characters to HTML entities This function is identical to htmlspecialchars() in all ways, except with htmlentities(), all characters which have HTML character entity equivalents are translated into these entities.
Differentiate between strstr and stristr in php?
strstr() and stristr both are used to find the first occurence of the string only difference is stristr( ) is case insensitive.
How can we know the total number of elements of Array?
sizeof($array); count($array);
How to secure your website?
- Validate Input.
- Use Auth & ACL.
- Protect my Session ID
- Preventing Cross Site Scripting (XSS) flaws
- SQL injection vulnerabilities
- Turning off error reporting and exposing to the site for hackers
- Protect secure data of website
What is PHP configuration file called?
php.ini.
What is a persistent cookie?
A persistent cookie is a cookie which is stored in a cookie permanently on the browser's computer. By default, cookies are created as temporary cookies which stored only in the browser's memory. When the browser is closed, temporary cookies will be erased automatically.
What are non-key columsn in database?
Answer: A non key attribute in sql server is a columns which can not be used to identify a record uniquely for example name or age columns in customer table
Subscribe to:
Posts
(
Atom
)