English 中文(简体)
我如何共同利用泽斯德框架和亚马逊·迪纳莫亚。
原标题:How can I use the Zend Framework and Amazon DynamoDB together?

我正在使用泽斯德框架,并想利用亚马孙妇协。 我下载了AWS SDK用于PHP,我正在利用这一数据保存数据。 但我不知道如何将这两者联系起来。

How can I call the AWS SDK from Zend?

问题回答

I have downloaded the current SDK for php and placed it in the library directory. Structure : /library/DynamoDb/sdk-1.5.3

阁下:

主计长(超越类别申报):

require_once( DynamoDb/sdk-1.5.3/sdk.class.php );
class SomeController extends Zend_Controller_Action {

 function indexAction() {
  $MyTable = new AmazonDynamoDb();
  $all_items = $MyTable->scan();
 }
}

我建议设立一个简单的人事管理机制,以便于处理。

如果没有SDK,也可以这样做,但必须说明如何做临时认证和所有签名。 SDK至少是最新的,使用V2和V3认证。

我希望这有所帮助。





相关问题
Zend 邮件问题,涉及外国char子+ com子

泽斯德邮局在名称被定为具有外国性质(如“保”)和 com(”)的物品时,就放弃了一种例外(因为邮局(邮局)退回假)。 重新提出以下守则。

PHP Framework: Ebay Like Site

I am going to be builiding a site like ebay - with all the features of ebay. Please note my payment method is limited to paypal. What would be the best PHP framework to use to build this quickly, ...

Link to a specific step in onepage checkout

Is it possible to redirect the browser to nth step in the onepage checkout? If so, how would one go about doing it? I m working on a payment module and have a sort of "cancel" action that i would ...

Tagging with Zend Framework

I m trying to create the same solutions as below, but using a simple MySQL query (instead of the static version used below where the words/tags are implemented in the code). The name of the MySQL ...

dynamicaly adding textboxes to zend_form

I hope that this is a quick question to answer. I am developing a form using Zend_Form, I have a number of Zend_Dojo_Form_Element_Textboxs to add to this form dynamically. These are added from rows ...

热门标签