How to use Filestore in API in Agiletoolkit?

时光毁灭记忆、已成空白 提交于 2019-12-13 02:25:52

问题


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

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');

there is this example there

Questions:

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 is a controller i get that .. so if i want it on multiple pages, do i add it in the 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 ?


回答1:


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.



来源:https://stackoverflow.com/questions/19472132/how-to-use-filestore-in-api-in-agiletoolkit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!