Note that there are some explanatory texts on larger screens.

plurals
  1. POIntegrate MeioUpload behavior in Cakephp 2.1.1
    text
    copied!<p>I'm using MeioUpload 4.0 Behavior Plugin from <a href="https://github.com/jrbasso/MeioUpload" rel="nofollow">https://github.com/jrbasso/MeioUpload</a></p> <p>I installed the plugin via git: git clone git://github.com/jrbasso/MeioUpload.git Plugin/MeioUpload Now, my dir structure looks like:</p> <pre><code>/app /Plugin /MeioUpload /Model /Behavior /MeioUploadBehavior.php /Locale /Test </code></pre> <p>My picture model looks like:</p> <pre><code> &lt;?php App::uses('AppModel', 'Model'); class Picture extends AppModel { $actsAs = array( 'MeioUpload.MeioUpload' =&gt; array( 'picture' =&gt; array( 'dir' =&gt; 'img{DS}pictures', 'create_directory' =&gt; true, 'allowed_mime' =&gt; array('image/jpeg', 'image/pjpeg', 'image/png'), 'allowed_ext' =&gt; array('.jpg', '.jpeg', '.png'), 'zoomCrop' =&gt; true, 'thumbsizes' =&gt; array( 'small' =&gt; array('width'=&gt;165, 'height'=&gt;115), 'medium' =&gt; array('width'=&gt;800, 'height'=&gt;600) ), 'default' =&gt; 'default.jpg' ) ) ); } ?&gt; </code></pre> <p>When I'm trying to access /pictures/add I get the following error in debug.log:</p> <pre><code> 2012-04-12 21:42:38 Error: [MissingPluginException] Plugin MeioUpload could not be found. #0 C:\wamp\www\starter211\lib\Cake\Core\App.php(364): CakePlugin::path('MeioUpload') #1 C:\wamp\www\starter211\lib\Cake\Core\App.php(225): App::pluginPath('MeioUpload') #2 C:\wamp\www\starter211\lib\Cake\Core\App.php(542): App::path('Model/Behavior', 'MeioUpload') #3 [internal function]: App::load('MeioUploadBehav...') #4 [internal function]: spl_autoload_call('MeioUploadBehav...') #5 C:\wamp\www\starter211\lib\Cake\Model\BehaviorCollection.php(121): class_exists('MeioUploadBehav...') #6 C:\wamp\www\starter211\lib\Cake\Model\BehaviorCollection.php(68): BehaviorCollection-&gt;load('MeioUpload.Meio...', Array) #7 C:\wamp\www\starter211\lib\Cake\Model\Model.php(725): BehaviorCollection-&gt;init('Picture', Array) #8 [internal function]: Model-&gt;__construct(Array) #9 C:\wamp\www\starter211\lib\Cake\Utility\ClassRegistry.php(156): ReflectionClass-&gt;newInstance(Array) #10 C:\wamp\www\starter211\lib\Cake\View\Helper\FormHelper.php(145): ClassRegistry::init(Array) #11 C:\wamp\www\starter211\lib\Cake\View\Helper\FormHelper.php(331): FormHelper-&gt;_getModel('Picture') #12 C:\wamp\www\starter211\app\View\Pictures\add.ctp(2): FormHelper-&gt;create('Picture', Array) #13 C:\wamp\www\starter211\lib\Cake\View\View.php(908): include('C:\wamp\www\sta...') #14 C:\wamp\www\starter211\lib\Cake\View\View.php(872): View-&gt;_evaluate('C:\wamp\www\sta...', Array) #15 C:\wamp\www\starter211\lib\Cake\View\View.php(463): View-&gt;_render('C:\wamp\www\sta...') #16 C:\wamp\www\starter211\lib\Cake\Controller\Controller.php(959): View-&gt;render(NULL, NULL) #17 C:\wamp\www\starter211\lib\Cake\Routing\Dispatcher.php(110): Controller-&gt;render() #18 C:\wamp\www\starter211\lib\Cake\Routing\Dispatcher.php(85): Dispatcher-&gt;_invoke(Object(PicturesController), Object(CakeRequest), Object(CakeResponse)) #19 C:\wamp\www\starter211\app\webroot\index.php(96): Dispatcher-&gt;dispatch(Object(CakeRequest), Object(CakeResponse)) #20 {main} </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload