dev-master
9999999-devPhotoGallery plugin for CakePHP.
MIT
The Requires
- php >=5.4
- cakephp/cakephp ~3.0
The Development Requires
PhotoGallery plugin for CakePHP.
Developed by: George Whitcher, (*1)
You can install this plugin into your CakePHP application using composer., (*2)
The recommended way to install composer packages is: composer require gwhitcher/cakephp-photo-gallery (If composer is unavailable download the zip and extract it to your plugins directory.), (*3)
PhotoGallery requires Imagick php extension for image resizing: Imagick. You cannot run it without it., (*4)
Install the database tables by visiting DOMAIN.com/photo_gallery/install or by running the below queries on your database., (*5)
CREATE TABLE gallery ( id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, category_id INT(11), title VARCHAR(50), description TEXT, img VARCHAR(50), created DATETIME DEFAULT NULL, modified DATETIME DEFAULT NULL );, (*6)
CREATE TABLE category ( id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, title VARCHAR(50), description TEXT, img VARCHAR(50), created DATETIME DEFAULT NULL, modified DATETIME DEFAULT NULL );, (*7)
CHMOD 777 your /plugins/PhotoGallery/webroot/img/gallery and all it's subfolders., (*8)
Go to your /ROOT/config/bootstrap.php and load the plugin by adding the following to the end of the file: Plugin::load('PhotoGallery', ['bootstrap' => false, 'routes' => true]);, (*9)
Congratulations you are all setup!, (*10)
The URL's are as follows: Auto Installer: DOMAIN.com/photo_gallery/install, (*11)
Main gallery view: DOMAIN.com/photo_gallery/gallery DOMAIN.com/photo_gallery/category, (*12)
Gallery image add: DOMAIN.com/photo_gallery/gallery/add, (*13)
Category add: DOMAIN.com/photo_gallery/category/add, (*14)
Gallery image edit: (replace ID) DOMAIN.com/photo_gallery/gallery/edit/ID, (*15)
Category edit: (replace ID) DOMAIN.com/photo_gallery/category/edit/ID, (*16)
Gallery image delete: (replace ID) DOMAIN.com/photo_gallery/gallery/delete/ID, (*17)
Category delete: (replace ID) DOMAIN.com/photo_gallery/category/delete/ID, (*18)
Open /plugins/PhotoGallery/src/Controller/AppController.php, (*19)
You will see some commented out code. Remove the comments so it will be functioning., (*20)
Get your IP and replace it with the 127.0.0.1 (If you remove the comments from echo $ip you can get your current IP. It will show at the top of any unsecured page. Just make sure to remove it after you have noted your IP.), (*21)
PhotoGallery plugin for CakePHP.
MIT