@@ -7,15 +7,15 @@ Using `Composer <http://getcomposer.org/>`__
7
7
`View on
8
8
Packagist <https://packagist.org/packages/josegonzalez/cakephp-upload> `__,
9
9
and copy the json snippet for the latest version into your project's
10
- ``composer.json ``. Eg, v. 1.1.1 would look like this:
10
+ ``composer.json ``. Eg, v. 1.3.0 would look like this:
11
11
12
12
.. code :: json
13
13
14
- {
15
- "require" : {
16
- "josegonzalez/cakephp-upload" : " 1.1.1 "
17
- }
18
- }
14
+ {
15
+ "require" : {
16
+ "josegonzalez/cakephp-upload" : " 1.3.0 "
17
+ }
18
+ }
19
19
20
20
This plugin has the type ``cakephp-plugin `` set in its own
21
21
``composer.json ``, composer knows to install it inside your ``/Plugins ``
@@ -39,9 +39,9 @@ In your *app directory* type:
39
39
40
40
.. code :: bash
41
41
42
- git submodule add -b master git://github.com/josegonzalez/cakephp-upload.git Plugin/Upload
43
- git submodule init
44
- git submodule update
42
+ git submodule add -b master git://github.com/josegonzalez/cakephp-upload.git Plugin/Upload
43
+ git submodule init
44
+ git submodule update
45
45
46
46
GIT Clone
47
47
~~~~~~~~~
@@ -50,7 +50,7 @@ In your ``Plugin`` directory type:
50
50
51
51
.. code :: bash
52
52
53
- git clone -b master git://github.com/josegonzalez/cakephp-upload.git Upload
53
+ git clone -b master git://github.com/josegonzalez/cakephp-upload.git Upload
54
54
55
55
Imagick Support
56
56
---------------
@@ -60,16 +60,16 @@ have Imagick installed:
60
60
61
61
.. code :: bash
62
62
63
- # Debian systems
64
- sudo apt-get install php-imagick
63
+ # Debian systems
64
+ sudo apt-get install php-imagick
65
65
66
- # OS X Homebrew
67
- brew tap homebrew/dupes
68
- brew tap josegonzalez/homebrew-php
69
- brew install php54-imagick
66
+ # OS X Homebrew
67
+ brew tap homebrew/dupes
68
+ brew tap josegonzalez/homebrew-php
69
+ brew install php54-imagick
70
70
71
- # From pecl
72
- pecl install imagick
71
+ # From pecl
72
+ pecl install imagick
73
73
74
74
If you cannot install Imagick, instead configure the plugin with
75
75
``'thumbnailMethod' => 'php' `` in the files options.
@@ -81,8 +81,8 @@ You need to enable the plugin your ``app/Config/bootstrap.php`` file:
81
81
82
82
.. code :: php
83
83
84
- <?php
85
- CakePlugin::load('Upload');
84
+ <?php
85
+ CakePlugin::load('Upload');
86
86
87
87
If you are already using ``CakePlugin::loadAll(); ``, then this is not
88
88
necessary.
0 commit comments