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 3850312
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T16:59:22+00:00 2026-05-19T16:59:22+00:00

I am new to PHP and very new to Zend Framework, so please give

  • 0

I am new to PHP and very new to Zend Framework, so please give me a detailed answer.

I have Zend Server (including Zend Framework), Apache, MySql installed on the machine.
I have a project created in Eclipse PDT (not with Zend Framework) and I’ve decided I want to use Zend_Db in my Data Acces Layer. I read many answers here and on other forums, I saw that I should use Zend_Loader but I am not really sure how to begin. I also saw that I need some php extension appropriate to the type of my database server.

As I said, please give me a detailed answer or a kick in the right direction.

Thanks

Later edit: I’ve just copied the required components in my project and included them and it works.

  • 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-05-19T16:59:23+00:00Added an answer on May 19, 2026 at 4:59 pm

    I ended up copying the Zend folder with the components I needed into a folder called Library and this is the way I instantiate the Autoloader, for example.

    /* Define site root */
    defined('DOCUMENT_ROOT') ? null : define('DOCUMENT_ROOT',realpath(dirname(__FILE__)));
    defined('SITE_ROOT') ? null : define('SITE_ROOT',realpath(dirname(DOCUMENT_ROOT).'\mysite'));
    
    
    $includePath[] = DOCUMENT_ROOT.'.';
    $includePath[] = SITE_ROOT . '\Library';
    $includePath[] = get_include_path();
    $includePath = implode(PATH_SEPARATOR,$includePath);
    set_include_path($includePath);
    
    //Including Zend LoaderClass
    require_once('Library/Zend/Loader/Autoloader.php');
    
    //Loading the auto loader file.( Including the autoloader.php file)
    $autoloader = Zend_Loader_Autoloader::getInstance();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to php and zend framework and fill very uncertain about following: For
I'm very new to PHP. I have a line of code on a server
I am very new to Zend Framework. And i have tried to get the
I am new to zend framework and having very basic doubt.I have created one
I'm very new to PHP and I have a small task of displaying a
I am new to PHP and find it very hard to explain. I have
Since I moved a PHP app to a new server (PHP/5.3.8 running as Apache
I'm very new to php/MySQL and I'm having a bit of trouble. Help would
i am very new to PHP and MySQL. I am trying to write a
I'm very new to PHP and having a hard time finding this answer as

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.