Codeigniter : Using Third Party Components - Zend Framework Components

9,420 views

Published on

Codeigniter : Using Third Party Components - Zend Framework Components

Published in: Technology, Education
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
9,420
On SlideShare
0
From Embeds
0
Number of Embeds
25
Actions
Shares
0
Downloads
62
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

Codeigniter : Using Third Party Components - Zend Framework Components

  1. 1. CodeIgniter Using Third Party Components : Zend Framework Components Abdul Malik Ikhsan http://slideshare.net/samsonasik/presentations
  2. 2. Why Integrate with other(s) ? Because No ‘body’ who is perfect, supporting each other is the game called life ( Kamen Rider Skull )
  3. 3. Why Zend Framework ( ZF ) ? Component Based Framework Easy to Integrate
  4. 4. 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
  5. 5. Like this…
  6. 6. The Zf Loader Library<?phpclass 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. 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. 8. Thank You ;)
  9. 9. This presentation contained copyrighted material licensedunder various creative commons licenses unless otherwisenoted:Photos http://theglobalstream.ibitlive.eu/blog/wp- content/uploads/2010/09/zend-framework- cube.pngReferences 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/

×