cakephp2-media's Introduction
*** MEDIA PLUGIN *** 1. INSTALL 2. CONFIGURE 3. USAGE *** 1. INSTALL *** git submodule add [url_to_repo] [path/to/plugins/]Media or - create a new folder 'Media' in your application's plugin directory - copy all files to that 'Media' directory *** 2. CONFIGURE *** 2.1 Enable the plugin To enable the Media plugin in your application add this to your app/Config/bootstrap.php CakePlugin::load('Media') 2.2 Paths /** * Media Data directory */ defined('MEDIA_DATA_DIR') or define('MEDIA_DATA_DIR', ROOT.DS.'media'.DS); /** * Media Data directory */ defined('MEDIA_DATA_URL') or define('MEDIA_DATA_URL', '/m/'); /** * Media Attachment directory */ defined('MEDIA_ATTACHMENT_DIR') or define('MEDIA_ATTACHMENT_DIR', MEDIA_DATA_DIR . 'attachments' . DS); /** * Media cache directory */ defined('MEDIA_CACHE_DIR') or define('MEDIA_CACHE_DIR', CACHE . "media" . DS); /** * Upload directory */ defined('MEDIA_UPLOAD_DIR') or define('MEDIA_UPLOAD_DIR', TMP . "uploads" . DS); /** * Media thumbnail directory */ defined('MEDIA_THUMB_DIR') or define('MEDIA_THUMB_DIR',WWW_ROOT."cache".DS); defined('MEDIA_THUMB_URL') or define('MEDIA_THUMB_URL', '/cache/'); *** 3. USAGE *** 3.1 FileExplorer 3.2 Uploads 3.3 Attachments 3.4 Thumbnails
cakephp2-media's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.