Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | SDKs | SDKs

How do use couchbase php library in Zend Framework 2.0?

4 replies [Last post]
  • Login or register to post comments
Tue, 10/02/2012 - 12:51
dunkspot
Offline
Joined: 05/29/2012
Groups: None

Couchbase php extension was recognized when i used Zend Framework 1.12 but now that I am moving on to Zend Framework 2.0 , it is no longer recognized.

Top
  • Login or register to post comments
Mon, 10/08/2012 - 21:59
ingenthr
Offline
Joined: 03/16/2010
Groups:

Does the new framework version perhaps use a different PHP extension directory? Perhaps you need to install there? Check that php -i gives you the extension directory you've installed the couchbase extension into.

Top
  • Login or register to post comments
Thu, 10/11/2012 - 04:14
daschl
Offline
Joined: 05/19/2012
Groups: None

Hi Dunkspot,

technically speaking, the PHP extension has nothing to do with the Zend Framework which is just a PHP library sitting on top.

Are you also using the Zend Server in combination with the framework? If you've upgraded, you may also need to recompile/readd the extension to the upgraded server. Also, if you've tried to load it make sure to check the integrated web gui if it reports any errors on loading the extension.

If the extension is loaded correctly, the couchbase methods should be available to use. From there on, its a matter of correctly integrating it into the zend framework.

If you have specific information let us know! helpful would be a phpinfo() output or something like this.

Best,
Michael

Top
  • Login or register to post comments
Sat, 10/13/2012 - 18:16
dunkspot
Offline
Joined: 05/29/2012
Groups: None

I figured in out.It works now , this was due to use of namespaces in Zend framework 2.0 . I had to backslash couchbase (\couchbase) instead of just (couchbase) when creating a new couchase object ,i.e
$cb = new \couchbase("host","username","password","bucket");

Top
  • Login or register to post comments
Fri, 10/19/2012 - 13:54
ganthore
Offline
Joined: 10/19/2012
Groups: None

I wrote a cache backend for the Zend framework to utilize the php extension.

Not sure if this will help you, but you can download the file from my website at:
http://silverdire.com/2012/10/04/native-connection-php-couchbase/

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker