Couchbase::View not available in php module 1.1.0-dp1?
Hi,
I'm trying to get view to work with my Couchbase 2.0 dev4 install with the php 1.1.0-dp1 module from https://github.com/couchbase/php-ext-couchbase/tree/1.1.0-dp1.
When I try to run the function as the manual suggests, I simply get the error that the function does not exist.
Fatal error: Call to undefined method Couchbase::view() in /var/sites/fuell/htdocs/couchbase.php on line 23
What am I missing here? Or does the manual page on http://www.couchbase.com/develop/php/next talk about stuff that is not yet available?
Ditto here. What's happening?
Furthermore, the SDK downloaded from http://www.couchbase.com/develop/php/next is actually v1.0.3. I got to compile from source.
If you compile it from this source, you will have access to views from PHP:
https://github.com/couchbase/php-ext-couchbase
Imho it is a bit confusing, which of the repositories are in frequent use...
i compiled the master and doesn't work. if i fetch the views via. curl GET i get the views. Seems very strange.
I emailed shortly with one of the Couchbase guys yesterday, he's looking in to it with the tech guys. I'll post here if I get an answer.
I think I need to clarify a bit here.
View support is built in 1.1-dp2. With the tarball to download, only _all_docs works. There is a patch in review for making them fully usable, but you'll have to wait for dp3 on this (or clone and compile from master when it will be pushed).
If you need more information on this, let me know!
I'm having the same problem with the same versions.