Zend without Database

Posted by dbemerlin on Stack Overflow See other posts from Stack Overflow or by dbemerlin
Published on 2010-05-13T14:02:28Z Indexed on 2010/05/13 14:34 UTC
Read the original article Hit count: 259

Filed under:
|
|
|

Hi,
i googled for an hour now but maybe my Google-Fu is just too weak, i couldn't find a solution.

I want to create an application that queries a service via JSON requests (all data and backend/business logic is stored in the service). With plain PHP it's simple enough since i just make a curl request, json_decode the result and get what i need. This already works quite well.

A request might look like this:

Call http://service-host/userlist with body:

{"logintoken": "123456-1234-5678-901234"}

Get Result:

{
  "status": "Ok",
  "userlist":[
     {"name": "foo", "id": 1},
     {"name": "bar", "id": 2}
  ]
}

Now we want to get that into the Zend Framework since it's a hobby project and we want to learn about Zend. The problem is that all information i could find use a Database.

Is there even a way to create a Zend Project that does not use a Database? And how can i write a model that represents the actions instead of objects and object-relations?

© Stack Overflow or respective owner

Related posts about php

Related posts about zend-framework