如何在Agiletoolkit的API中使用Filestore? [英] How to use Filestore in API in Agiletoolkit?

查看:86
本文介绍了如何在Agiletoolkit的API中使用Filestore?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理一个紧急项目,其中涉及对Agiletoolkit filestore的实施

i am working on an urgent project which involves implmentation of filestore of Agiletoolkit

我在这里浏览了文档=> http://agiletoolkit.org/doc/filestore

i went through the doc here => http://agiletoolkit.org/doc/filestore

$f=$p->add('Form');
$c=$p->add('Controller_Filestore_File');
$c->setActualFields(array('id','filestore_type_id','filestore_volume_id','filename','filesize'));
$f->addField('upload','upload')->setController($c);
$p->add('H4')->set('Previously Uploaded Files');
$g=$p->add('MVCGrid')->setController($c);
$g->dq->limit(5)->order('id desc');

那里有这个例子

Q1.我知道我不需要在这里使用MVCGrid插件,但是为什么在此示例中它被提及? (让我感到困惑)

Q1. I know i don't need to use MVCGrid addon here but why is it mentioend in this example? (its confusing me )

Q2. Filestore是一个控制器,我可以得到它..所以,如果我希望在多个页面上使用它,是否可以将其添加到API中?

Q2. Filestore is a controller i get that .. so if i want it on multiple pages, do i add it in the API ?

Q3.如果假设我在api中添加类似内容,我可以在所有页面中使用它吗?如果是,那怎么办? $ this-> api->什么?

Q3. If suppose i add something like that in api can i use it in all pages ? if yes then how ? $this->api-> WHAT ?

推荐答案

文件存储中有一个小错误,现已修复.因此,它应该可以正常工作.这是导入的sql查询中的错误.

There was a small bug in filestore which is fixed now. So it should work fine. It was a bug in sql queries that were imported.

这篇关于如何在Agiletoolkit的API中使用Filestore?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆