FileStore step by step example with 4.2.1

2019-03-01 14:11发布

I am wanting to upload a csv file, validate it, and then upload into an existing model. However, I am using ATK4.2.1 and finding that either the example code that have googled are either missing some steps or not relevant in version 4.2.1.

To this end, for my first step I have tried mixing and matching code in attempt to get a fileStore up and running with no working results thus far.

Is there a step by step tutorial/guide that anyone can point me to. The reference on the agiletoolkit.org site does not have any examples for the atk4-addons; that I can find. It seems that it is more involved than just adding an object to the page.

Grateful for any assistance.

标签: atk4
1条回答
We Are One
2楼-- · 2019-03-01 15:06

You can find some installation instructions here:

http://agiletoolkit.org/doc/filestore

  1. Import this SQL into your database atk4-addons/misc/docs/dbupdates/filestore-001.sql
  2. Create a new page, page_fileadmin extends filestore/Page_FileAdmin
  3. Create directory 'upload' and make it writable.
  4. In your model instead of addField use $this->add('filestore/File');

If you need images, use filestore/Image instead.

Please join https://groups.google.com/forum/?fromgroups#!forum/agile-toolkit-devel for updates on new documentation.

查看更多
登录 后发表回答