CakePHP SEAFF Plugin
, (*1)
CakePHP Plugin Implementing the Shopify Embedded App Frontend Framework by Microapps., (*2)
Installation
You can install this plugin into your CakePHP application using composer., (*3)
The recommended way to install composer packages is:, (*4)
composer require --prefer-dist multidimensional/cakephp-seaff
Setup
Load the plugin by running following command in terminal:, (*5)
bin/cake plugin load Multidimensional/Seaff
Or by manually adding following line to your app's config/bootstrap.php
:, (*6)
Plugin::load('Multidimensional/Seaff');
Usage
Add this in your Controller:, (*7)
// In a controller
public function initialize()
{
parent::initialize();
$this->loadComponent('Multidimensional/Seaff.Seaff]);
}
For more information about Components, see this page., (*8)
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., (*9)
CakePHP Documentation > Improve Your Applicationâs Performance, (*10)
bin/cake plugin assets (symlink | copy)