Click here to load reader
Upload
abdul-malik-ikhsan
View
7.391
Download
2
Embed Size (px)
DESCRIPTION
Codeigniter : Using Third Party Components - Zend Framework Components
Citation preview
CodeIgniterUsing Third Party Components : Zend Framework Components
Abdul Malik Ikhsanhttp://slideshare.net/samsonasik/presentations
Why Integrate with other(s) ?
Because No ‘body’ who is perfect, supporting each other is the game called life ( Kamen Rider Skull )( Kamen Rider Skull )
Why Zend Framework ( ZF ) ?
Component Based Framework Easy to Integrate
Preparing…
Copy Zend Library in CodeIgniter third_party folder ( You can create other or rename if necessary )
Add a library to load ZF Component in Add a library to load ZF Component in one package
Like this…
The Zf Loader Library<?php
class Zf {public function __construct(){
set_include_path(implode(PATH_SEPARATOR,PATH_SEPARATOR,array(realpath( APPPATH.'third_party/zf' ),get_include_path()))
);
require_once 'Zend/Loader/Autoloader.php';$autoloader = Zend_Loader_Autoloader::getInstance();
}}/* End of file zf.php *//* Location:./application/third_party/zf/libraries/zf.php */
Testing Time…
$this->load->add_package_path(APPPATH.'third_party/zf');$this->load->library('zf');$arraydebug = array($arraydebug = array(
'nama' =>'samsonasik' ,'ciriciri' => 'ganteng‘
);
//use the zf library ;)Zend_Debug::Dump($arraydebug);
Thank You ;)Thank You ;)
This presentation contained copyrighted material licensed under various creative commons licenses unless otherwise noted:
Photos http://theglobalstream.ibitlive.eu/blog/wp-
content/uploads/2010/09/zend-framework-cube.png
ReferencesReferences CodeIgniter User Guide http://www.beyondcoding.com/2008/02/21/using-
zend-framework-with-codeigniter/ http://samsonasik.wordpress.com/2011/02/03/cod
eigniter-2-0-and-zend-framework-integration/