doujishan2247 2013-10-19 23:08
浏览 18
已采纳

如何在Agiletoolkit中使用API​​中的Filestore?

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条回答 默认 最新

  • dongtuanzi1080 2013-11-23 02:21
    关注

    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.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 luckysheet
  • ¥25 关于##爬虫##的问题,如何解决?:
  • ¥15 ZABBIX6.0L连接数据库报错,如何解决?(操作系统-centos)
  • ¥15 找一位技术过硬的游戏pj程序员
  • ¥15 matlab生成电测深三层曲线模型代码
  • ¥50 随机森林与房贷信用风险模型
  • ¥50 buildozer打包kivy app失败
  • ¥30 在vs2022里运行python代码
  • ¥15 不同尺寸货物如何寻找合适的包装箱型谱
  • ¥15 求解 yolo算法问题