/cakephp-seaff

CakePHP Plugin Implementing the Shopify Embedded App Frontend Framework by Microapps.

Primary LanguageCSS

CakePHP SEAFF Plugin

Latest Stable Version Total Downloads

CakePHP Plugin Implementing the Shopify Embedded App Frontend Framework by Microapps.

Installation

You can install this plugin into your CakePHP application using composer.

The recommended way to install composer packages is:

composer require --prefer-dist multidimensional/cakephp-seaff

Setup

Load the plugin by running following command in terminal:

bin/cake plugin load Multidimensional/Seaff

Or by manually adding following line to your app's config/bootstrap.php:

Plugin::load('Multidimensional/Seaff');

Usage

Add this in your Controller:

// In a controller
public function initialize()
{
    parent::initialize();
    $this->loadComponent('Multidimensional/Seaff.Seaff]);
}

For more information about Components, see this page.

Improve CakePHP Performance

Once you have a production ready CakePHP application, it is important to create symlinks to move all your webroot files (including this one) into your main webroot folder. This is easily done by running a command in terminal for CakaPHP.

CakePHP Documentation > Improve Your Application’s Performance

bin/cake plugin assets (symlink | copy)