PHPackages                             gregnuj/fondant - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. gregnuj/fondant

ActiveCakephp-plugin[Framework](/categories/framework)

gregnuj/fondant
===============

Fondant plugin for CakePHP 3

0122HTML

Since Feb 28Pushed 7y agoCompare

[ Source](https://github.com/gregnuj/cakephp-fondant)[ Packagist](https://packagist.org/packages/gregnuj/fondant)[ RSS](/packages/gregnuj-fondant/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

Fondant for CakePHP
===================

[](#fondant-for-cakephp)

Scaffolding and templates for CakePHP. Fondant attempts improve upon the default templates in CakePHP to allow for an improved user experience with less customization by focusing on integrating more Javascript into the bake templates.

Requirements
------------

[](#requirements)

- CakePHP 3.6.0 or greater.
- PHP 5.6 or greater

Prerequisites
-------------

[](#prerequisites)

Enable JSON [resource routing](https://book.cakephp.org/3.0/en/development/routing.html#resource-routes) for your CakePHP application.

Use composer to intstall [foxy](https://github.com/fxpio/foxy):

```
composer require foxy/foxy": "^1.0.0"

```

Install
-------

[](#install)

```
composer require gregnuj/fondant:*

```

or by adding this package to your project's `composer.json`:

```
"require": {
	"gregnuj/fondant": "*"
}

```

Now, enable the plugin in your `bootstrap.php` (exclude bootstrap and routes):

```
Plugin::load('gregnuj/Fondant', ['bootstrap' => false, 'routes' => false]);

```

You will also need to symlink the assets:

FromToTBDThat's it! You can now begin using Fondant!

Documentation
=============

[](#documentation)

Fondant supplies custom components and templates meant to be used together. The the primary difference in the templates is the use of Jquery [datatables](https://datatables.net/) with the FondantComponent supplying [server-side methods for datatables](https://datatables.net/manual/server-side).

Baking with fondant
-------------------

[](#baking-with-fondant)

To bake using the fondant templates use bake as you would normally with the -t|--template option when baking controller and templates.

```
cake bake controller MyStuffs -t Fondant
cake bake template MyStuffs -t Fondant

```

Using FondantComponent in your controllers
------------------------------------------

[](#using-fondantcomponent-in-your-controllers)

The recommended approach is to bake your controllers as described above, and make modifications as needed.

Example Controller class:

```
