Monthly Archives: January 2013
ZF2 Authentication with extra column
How to authenticate using Username, Password and extra Column (status) in Zendframework 2?
There two different ways to add additional column authentication in ZF2
Demo of the first Apple Macintosh by Steve Jobs, January 1984
Demo of the first Apple Macintosh by Steve Jobs, January 1984, in front of 3000 people. Andy Hertzfeld captured the moment quite well in his retelling: “Pandemonium reigns as the demo completes. Steve has the biggest smile I’ve ever seen on his face, obviously holding back tears as he is overwhelmed by the moment. The ovation continues for at least five minutes before he quiets the crowd down.”
We are God’s candle…
One evening a man took a small candle from a box and began to climb a long winding stairway. “Where are we going?” asked the candle. “We’re going up higher than a house to show the ships the way to the harbor.” “But no ship in the harbor could ever see my light,” the candle said. “It is so very small.” “If your light is small,” the man said “just keep on burning brightly and leave the rest to me.” When they reached the top of the long stairs, they came to a large lamp. Then he took the little candle and lit the lamp. Soon the large polished mirrors behind the lamp sent beams of fight out across the miles of sea.
ZendFramework 1 vs ZendFramework 2
What is major difference between ZendFramework1 and ZendFramework2
- ZF1 Support MVC Architecture while ZF2 support MVC and MOVE both
- ZF2 brought new concept Dependency Injection
- ZF2 is based on PHP 5.3 and support namespaces, so class name naming convention has changed from classname Zend_Db_Table (ZF1) for class in Zend/Db/Table.php whereas in ZF2, it is class MyAuthAdapter.
- ZF2 is little bit slow as compared to ZF1. But it has evovled a lot from ZF1 to ZF2.
- ZF2’s modules really are modular. You can drop in someone else’s module, and with a simple line added to your application config file, you can be up and running in seconds
- ZF2 There is no application level Bootstraping, each module is responsible for its own bootstraping in module.php file located in each module.
- ZF2 routing is fundamentally changed. There is no application level routing, instead, routing is added on a per-module basis.
- ZF2
Zend_Registry
doesn’t exist in ZF2, it has been indirectly been replaced byZendServiceManager
- ZF2 Introduce Event Manager. Event Manager (EM) allows you to attach code to discrete events that may (or may not) happen in your application.
Sources:
- http://php.net/releases/5_3_0.php
- http://framework.zend.com/manual/2.0/en/tutorials/quickstart.di.html
- http://blog.hock.in/zf2-for-zf1-users-part-1
- http://blog.hock.in/zf2-for-zf1-users-part-2