2017 © Pedro Peláez
 

cakephp-plugin cakephp-photo-gallery

PhotoGallery plugin for CakePHP.

image

gwhitcher/cakephp-photo-gallery

PhotoGallery plugin for CakePHP.

  • Tuesday, January 5, 2016
  • by gwhitcher
  • Repository
  • 1 Watchers
  • 0 Stars
  • 33 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 3 % Grown

The README.md

PhotoGallery plugin for CakePHP

Developed by: George Whitcher, (*1)

Installation

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)

URL Structure (this can be changed in routes.php)

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)

CUSTOM SECURITY

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)

The Versions

05/01 2016

dev-master

9999999-dev

PhotoGallery plugin for CakePHP.

  Sources   Download

MIT

The Requires

 

The Development Requires