CodeIgniter Using Third Party Components : Zend Framework Components Abdul Malik Ikhsan http://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 )
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 one package
Like this…
The Zf Loader Library <?php class Zf { public function __construct() { set_include_path(implode( 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( 'nama' =>'samsonasik' , 'ciriciri' => 'ganteng‘ ); //use the zf library ;) Zend_Debug::Dump($arraydebug);
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 References  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/

Codeigniter : Using Third Party Components - Zend Framework Components

  • 1.
    CodeIgniter UsingThird Party Components : Zend Framework Components Abdul Malik Ikhsan http://slideshare.net/samsonasik/presentations
  • 2.
    Why Integrate withother(s) ?  Because No ‘body’ who is perfect, supporting each other is the game called life ( Kamen Rider Skull )
  • 3.
    Why Zend Framework( ZF ) ?  Component Based Framework  Easy to Integrate
  • 4.
    Preparing…  Copy ZendLibrary in CodeIgniter third_party folder ( You can create other or rename if necessary )  Add a library to load ZF Component in one package
  • 5.
  • 6.
    The Zf LoaderLibrary <?php class Zf { public function __construct() { set_include_path(implode( 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 */
  • 7.
    Testing Time… $this->load->add_package_path(APPPATH.'third_party/zf'); $this->load->library('zf'); $arraydebug = array( 'nama' =>'samsonasik' , 'ciriciri' => 'ganteng‘ ); //use the zf library ;) Zend_Debug::Dump($arraydebug);
  • 8.
  • 9.
    This presentation containedcopyrighted 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 References  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/