zf2 http

http://samsonasik.wordpress.com/2012/10/17/zend-framework-2-grab-web-content-using-zend-http-client-zend-dom-query/
http://samsonasik.wordpress.com/2012/10/31/zend-framework-2-step-by-step-create-restful-application/

Advertisements

zf2 cache

http://samsonasik.wordpress.com/2013/10/06/zend-framework-2-using-caches-configuration-to-setting-up-cache-services/
http://donniewa.com/2012/09/zf2-using-cache/
http://kurakin.info/zend-framework-2-cache-storage-factories/
http://akrabat.com/zend-framework-2/caching-your-zf2-merged-configuration/
http://hounddog.github.io/blog/performance-in-zend-framework-2/
http://zend-framework-community.634137.n4.nabble.com/ZF2-Cache-and-Apc-td4656382.html
http://framework.zend.com/manual/2.2/en/modules/zend.cache.storage.adapter.html

http://samsonasik.wordpress.com/2013/03/13/zend-framework-2-cache-module-config-module-classmap-caching/?relatedposts_exclude=2272

cache routing
http://stackoverflow.com/questions/13765088/how-to-approach-caching-in-zf2

zf2 event manager

http://framework.zend.com/manual/2.2/en/modules/zend.event-manager.event-manager.html
http://samsonasik.wordpress.com/2013/03/30/zend-framework-2-getting-closer-with-eventmanager/
http://www.michaelgallego.fr/blog/2013/05/12/understanding-the-zend-framework-2-event-manager/
http://www.maltblue.com/tutorial/zend-framework-2-event-manager-a-gentle-introduction

Zend Framework 2 Event Manager

http://robertbasic.com/blog/azend-framework-2-eventmanager-use-case

zf2 dom

http://framework.zend.com/manual/2.2/en/modules/zend.dom.query.html

Easy page scraping with ZendDom (from Zend Framework 2)

http://samsonasik.wordpress.com/2012/10/17/zend-framework-2-grab-web-content-using-zend-http-client-zend-dom-query/
https://github.com/raykolbe/DOMPDFModule

zf2 di

http://akrabat.com/zend-framework-2/what-problem-does-dependency-injection-solve/
http://akrabat.com/zend-framework-2/an-introduction-to-zenddi/
https://github.com/ralphschindler/Zend_DI-Examples

ZF2 Dependency Injection

zf2 db sql

http://framework.zend.com/manual/2.2/en/modules/zend.db.sql.html
http://samsonasik.wordpress.com/2012/08/14/zend-framework-2-zenddbsql-join-tables/
cau hinh o duoi co binh luan:
‘initializers’ => array(
function ($instance, $sm) {
if ($instance instanceof \Zend\Db\TableGateway\AbstractTableGateway) {
$instance->setDbAdapter($sm->get(‘Zend\Db\Adapter\Adapter’));
}
}
),
http://samsonasik.wordpress.com/2012/08/28/set-default-db-adapter-in-zend-framework-2/?relatedposts_exclude=1526
http://samsonasik.wordpress.com/2012/06/06/zend-framework-2-handling-multiple-database/?relatedposts_exclude=1550
public function getJoin()
{
      $select = new \Zend\Db\Sql\Select ;
      $select->from(‘album’);
      $select->join(‘tracks’,’tracks.album_id = album.id’);
   
     $resultSet = $this->tableGateway->selectWith($select);
         
     return $resultSet;
}
http://samsonasik.wordpress.com/2013/09/05/zend-framework-2-using-hydratingresultset-and-objectproperty-s-hydrator/?relatedposts_exclude=1693

zf2 authentication

http://samsonasik.wordpress.com/2013/05/
https://github.com/samsonasik/SanAuthWithDbSaveHandler/tree/master/src/SanAuthWithDbSaveHandler
http://samsonasik.wordpress.com/2013/05/29/zend-framework-2-working-with-authenticationservice-and-db-session-save-handler/

xem code o day
http://www.kdecom.com/simple-authentication-using-zend-framework-2/
// test auth
use Zend\Authentication\Storage;
use Zend\Authentication\AuthenticationService;
use Zend\Authentication\Adapter\DbTable;
use Zend\Db\Adapter\Adapter;

$dbAdapter = $this->serviceLocator->get(‘Zend\Db\Adapter\Adapter’);

$authAdapter = new DbTable($dbAdapter, ‘users’, ‘username’, ‘password’, ‘MD5(?)’);
$authAdapter->setIdentity(‘admin’)
->setCredential(‘admin’);
$authService = new AuthenticationService(new Storage\Session(“auth”));
$authService->setAdapter($authAdapter);
$result = $authService->authenticate();
if ($result->isValid()) {
// set id as identifier in session
$userId = $authAdapter->getResultRowObject(‘id’)->id;
$authService->getStorage()
->write($userId.”da noi them vao”);

var_dump($userId);
$a= $authService->getStorage()->read();
var_dump($a);
} else {
var_dump(“k dung”);
}
return FALSE;