2017 © Pedro Peláez
 

cakephp-plugin media

Multi upload plugin

image

waldemarnt/media

Multi upload plugin

  • Thursday, November 27, 2014
  • by waldemarnt
  • Repository
  • 0 Watchers
  • 2 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

About

This is a multiupload plugin to cakephp., (*1)

Install

install via composer: reference: waldemarnt/media, (*2)

install manual:, (*3)

copy to app/Plugin folder and run composer update comand to download WideImage, (*4)

create table, (*5)

CREATE TABLE media ( id int(11) NOT NULL AUTO_INCREMENT, path varchar(255) NOT NULL, name varchar(255) NOT NULL, model_name varchar(255) NOT NULL, model_id int(11) NOT NULL, size int(11) DEFAULT NULL, PRIMARY KEY (id) ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=latin1;, (*6)

Using

First you need load into your bootstrap.php file;, (*7)

CakePlugin::load('Media');, (*8)

Now you need add this parameter into your Model;, (*9)

public $actsAs = array(
    'Media.Media'=>array(
        'thumb_size'=>array(
            'width'=>100,
            'height'=>100
            )
        )
    );

You need add public $helpers = array("Media.Media"); to your controller or app controller, to use Media plugin file upload helper., (*10)

Now in your view you need this field, (*11)

Media->file(); ?>

To show uplaoded files you need in your view, (*12)

Element('Media.show'); ?>

Now it's works fine :D, (*13)

The Versions

27/11 2014

dev-master

9999999-dev https://github.com/waldemarnt/MediaPlugin

Multi upload plugin

  Sources   Download

MIT

The Requires

 

by Avatar waldemarnt

20/10 2014

v1.0.0

1.0.0.0

Multi upload plugin

  Sources   Download

MIT

The Requires

 

by Avatar waldemarnt