Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8330037
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T01:59:34+00:00 2026-06-09T01:59:34+00:00

i am using Zend Framework classes in my CORE PHP project. i am not

  • 0

i am using Zend Framework classes in my CORE PHP project.
i am not using all features of ZF just need some classes.

i need to know How to include all Zend Classes at once so that i don’t include it one by one each time i need it.

in ZF we are doing so

defined('APPLICATION_PATH')
|| define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));

set_include_path(implode(PATH_SEPARATOR, array(
realpath(APPLICATION_PATH . '/../library'),
get_include_path(),
)));

public function _initRegisterLibraries(){
    $moduleLoader = new Zend_Application_Module_Autoloader(array('namespace' => '', 'basePath' => APPLICATION_PATH));
    $autoLoader = Zend_Loader_Autoloader::getInstance(); 
    return $moduleLoader;
  }

how can we achieve same in CORE PHP in which i want to use some zend classes.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T01:59:37+00:00Added an answer on June 9, 2026 at 1:59 am

    For me I do this in any PHP File :

    define('WWW_PATH', dirname(__FILE__) . '/../..');
    
    set_include_path(implode(PATH_SEPARATOR, array(realpath(WWW_PATH . '/library'), get_include_path())));
    
    require_once 'Zend/Loader/Autoloader.php';
    
    $autoloader = Zend_Loader_Autoloader::getInstance();
    
    $autoloader->registerNamespace('Zend_');
    

    Then I can instantiate any Zend class I want, for exemple :

    $db = new Zend_Db_Adapter_Mysql();
    

    (Just be sure the WWW_PATH point to were the library directory is currently in)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Zend Framework but not Zend_Application , just some classes - no
We are using Zend Framework 1.7 on a project (old, I know) and just
Hi I'm currently working on some php - zend framework project on my osx
I have PHP project and I am using Zend Framework. There is a library
I want to know how can i use Zend Framework in my php project
We are using PHP 5.3 and Zend Framework for a large project, and I've
how do i auto load zend framework classes when i am not using the
just started using Zend Framework and I'm wondering what to do with odd classes
I'm currently using Zend Framework 2 beta for on PHP 5.4.4 to develop a
I have a PHP MVC application using Zend Framework. As presented in the quickstart,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.