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

ssl error

Self-Signed SSL Certificate Warning

An SSL certificate is required to allow a web application to serve HTTPS traffic. Usually, …

install cpanel whtm

Install And Setup CPanel On A Linux Server

What is CPanel? cPanel is the most popular Linux based hosting control panel used in the …

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