2017 © Pedro Peláez
 

cakephp-plugin simple-file-manager

SimpleFileManager For CakePHP + TinyMCE

image

sadapon2008/simple-file-manager

SimpleFileManager For CakePHP + TinyMCE

  • Friday, January 23, 2015
  • by sadapon2008
  • Repository
  • 1 Watchers
  • 1 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

SimpleFileManager

Example

1. create upload directory

$ mkdir app/webroot/upload
$ chmod a+w app/webroot/upload

2. load plugin

app/Config/bootstra.php:, (*1)

CakePlugin::load('Migrations');
CakePlugin::load('BoostCake');
CakePlugin::load('SimpleFileManager', array('bootstrap' => true));

3. create database table

$ ./app/Console/cake Migrations.migration run all -p SimpleFileManager

4. example controller & view

app/Controller/PostsController:, (*2)

request->is('post') || $this->request->is('put')) {
      $this->Post->create();
      $this->Post->save($this->request->data);
    }
  }
}
```
app/View/Posts/index.ctp:
```php
start('script'); ?>



SimpleFileManager->script(); ?>





end(); ?>

Form->create('Post'); ?>
Form->input('content', array('type' => 'textarea')); ?>
Form->end(); ?>

The Versions

23/01 2015