PHP and views
Ok,
now while we mastered the php mystery and the limitations, we are able to create doc's edit them delete
them and all is fine. here is my scenario and i hope someone can provide me an example or at least point me in a direction where i can find what i need.
In my app i am storing picture information like location, where the files are stored etc in a json doc on couchbase.
I also have an array called folders in that json doc which has one or more id's of the folder in format like "2.10"
"5.4" the way it works is the first nbr is the userid, the second part the folderid. i have written a view in
console to use doc.folder as key. All well so far..
how can i get the data of a view in php now for all docs where the key in view is for example "4.2"
that would get me the info on all images who are stored logically in one folder ?
hope there is a way to do so that i dont have to store my keys in mysql to get a list of all docs..
thanks
There is no examples how to create view.
Please vote:
http://www.couchbase.com/issues/browse/PCBC-185
You should have a look at the tutorial for the PHP client at couchbase.com/docs. There, is an example of views with the beer-sample database.