I am looking for Plugins to upload content - mainly images. I found a couple of plugins which are for 1.3 but not none for 2.1
could you please share a few plugins for 2.1
Have you tried meio upload? It is compatible with cake 2.x?
https://github.com/jrbasso/MeioUpload
A nice one i just found:
https://github.com/bmcclure/CakePHP-Media-Plugin
i have not tested it much, but it seems to work great, you even can define additional image sizes to be created automaticalliy.
You could customize 1.3 version plugin for 2.1 or use something like this: CakePHP File Upload
Although the others are nice, I found this one a lot more easy to use than the others check it out :
https://github.com/malikov/cakephp2.0-image-upload
I use wrapper for cakephp imagine Library:
https://github.com/burzum/cakephp-imagine-plugin
Upload plugin is available now at Github
Related
This is just for describing the issue and sharing my solution, I got stuck a lot of time on it.
This issue happened after I upgraded the Angular 10 -> 11 and changed the builder from udk:udk-runner to #angular-devkit
The issue I was facing is when I set the field bundleDependencies in angular.json to true . The Puppeteer cannot start with the error cannot launch the browser
Then I found it also happened on the other external libraries I'm using at the Server side like BullJS Bull-Board Puppeteer-Cluster with the below error
Github source for demo the issue: https://github.com/phattranky/angular-ssr-error-with-pupepteer
The solution is quite simple you just need to add externalDependencies below the field bundleDependencies, which are the libraries we are using.
"externalDependencies": ["puppeteer", "puppeteer-cluster", "bull", "bull-board"]
Sample:
What is the externalDependencies ?
https://github.com/angular/angular-cli/blob/master/packages/angular_devkit/build_angular/src/builders/server/schema.json
If you have the better solution and any feedbacks, please share for me. Thanks
I have downloaded an extjs-docs-5.0.0 package. But I cannot find it in the "example" folder.
Where can I get it? An avaliable link is best!
Thank you!
By 'extjs-docs-5.0.0'-package, do you mean the documentation? The source code for this application is in the 'examples/executive-dashboard' of the actual ExtJS 5.0 package, not the documentation.
Code can be downloaded from here
https://github.com/bjornharrtell/extjs
More easy questions - this time, how do I install a CakePHP plugin? I get that I take the plugin folder and put it in the, well, the plugins directory.
so
/app
/plugins
/what is this?
And I ask this, because I just downloaded a plugin - here:
http://milesj.me/blog/read/changelog-forum-2.3
And the name of the folder that everything is in is milesj-cake-forum-29a0699
This doesn't appear to be a good plugin name... is there some place that lists or describes what the plugin should be called? I know i know, I'm going to try it out without the 29stuff, but I like things to be silky smooth, not "trial and error".
Yes, I am a terrible programmer.
Based on the plugin's documentation, they refer to models as Forum.Profile for example which suggests that the plugins should be installed in APP/plugins/forum as that's where the CakePHP autoloader will look unless instructed otherwise (section 2).
for example fb plugin ; Load the plugin in your app/Config/bootstrap.php file:
//app/Config/bootstrap.php
CakePlugin::load('Facebook');
You can use all or some of the Facebook plugin as you see fit. At the very least you will probably want to use the Facebook Helper
public $helpers = array('Facebook.Facebook');
Trying to get CakePHP work with subfolders for Controllers, Views, or Models is not really working and from what I've read I need to use "Plugins". Right now I have the following folder structure:
/app/Plugin/Manager/
/Controller
CandyController.php
/Models
/View
/Candy
viewCandy.ctp
ManagerAppController.php
ManagerAppModel.php
When I try and set my url to: http://localhost/Manager/Candy/viewCandy/123. I get the error message: "ManagerController does not exist". Why is CakePHP not picking up that it should look in the Manager plugin folder?
Now that 2.0 has been released the docs are fleshed out a bit more. This is described in the Plugin section of the cookbook.
They suggest putting this in bootstrap.php instead of routes.php:
CakePlugin::loadAll(); // Loads all plugins at once
CakePlugin::load('ContactManager'); //Loads a single plugin
Here is the solution:
Go to /app/Config/routes.php and add the line CakePlugin::load(array('YourPluginName')); after the line CakePlugin::routes();. In my case it was line 40.
Basically CakePHP 2.0 doesn't automatically load plugins. I think that's fine and dandy, but there isn't really any documentation for this.
I am using the Media plugin by David Persson for CakePHP (https://github.com/davidpersson/media). I've placed the files in app/plugins/media and added
require APP . 'plugins/media/config/core.php';
to my app's core.php, but when I run cake media init I get this error:
Fatal Error: Call to undefined method MIME_Type::config() in C:\xampp\htdocs\wompwomp\app\plugins\media\config\core.php on line 166
Any idea what's happening here? Can I just make the directories manually? If so, what are the default directories?
It looks like you need to install the MIME_Type library. The pear package for it is available here.
EDIT
The proper library would be found here.
I encounter this error on windows when i updated my php to 5.3.5 (xampp 1.7.4).
There is a conflict between Cakephp Mime Types and Pear Mime types. I rename the folder or
disable Pear Mime Type located at /php/PEAR/MIME..
That solves the problem.
Here is my solution to the conflict between the Plugin library and Pear library:
As we all known, the order of multiple php include_path matters, in other words, if the PEAR path is set before the Cake Media Plugin Built_In Mine_Type Library Path, the Mine_Type class in PEAR is found first, and the built-in one is ignored, that's the reason of the error.
To fix this, just open /app/plugins/media/config/core.php, and find the ini_set('include_path') directive, move the cake media plugin built-in library path to the very beginning of the INCLUDE_PATH.
That's it, enjoy!
Maybe someone can report this as a bug to the plugin author.