Home / Tutorials / CodeIgniter : Integrate Zend Framework as third-party component

CodeIgniter : Integrate Zend Framework as third-party component

Why Integrate with other(s) ?

Because No ‘body’ who is perfect, supporting each other is the game called life

… ( Kamen Rider Skull )

Prepare the things …

  • 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

ci_zf

zf.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 */

Load zf and test

$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);

Source: http://www.slideshare.net/samsonasik/codeigniter-using-third-party-components-zend-framework-components

About cmadmin

Web Developer & Designer | Android App Developer

Check Also

Faucet

What is a Bitcoin / Cryptocurrency Faucet? A faucet is the name given to any …

Bitcoin Wallets – How to Choose the Best Wallet for You

Wallets are one of the first things that you will need to learn about when …

One comment

  1. Thanks for the useful information. Need to add your blog to bookmarks

Leave a Reply

Your email address will not be published. Required fields are marked *

Login


Username
Create an Account!
Password
Forgot Password? (close)

Sign Up


Username
Email
Password
Confirm Password
Want to Login? (close)

Forget Password?


Username or Email
(close)
%d bloggers like this:
SHARE
OR
SUBSCRIBE
To get latest new / tutorial / technology / development information subscribe with us.
ARE YOU READY? GET IT NOW!
Lets Get Updated with latest trends & tutorials!
Your Information will never be shared with any third party.
Ready for latest tutorials & tools !
OR SUBSCRIBE WITH