mscherer 2122674f8b Cleanup 6 年 前
..
Auth 7d59d2678c Upgrade forms. 7 年 前
Behavior 6893ad1bf6 Refactor enum into trait. 6 年 前
Component 6f34532c33 Merge remote-tracking branch 'origin/master' into cake4 6 年 前
Controller 77581427a9 Use ShimController as base 10 年 前
Entity 9a7d86b6f4 Docs. 6 年 前
Error 6893ad1bf6 Refactor enum into trait. 6 年 前
Helper 6f34532c33 Merge remote-tracking branch 'origin/master' into cake4 6 年 前
I18n 6893ad1bf6 Refactor enum into trait. 6 年 前
Mailer 6893ad1bf6 Refactor enum into trait. 6 年 前
Url 5e99e247f7 Fix up linkReset and linkComplete to be consistent with the rest of the API 9 年 前
Widget 401430cd5f Add Datalist widget. 7 年 前
Contributing.md 65e282f378 Fix pot file. 6 年 前
Install.md 2122674f8b Cleanup 6 年 前
README.md 3fdefb7cbd Move helpers to Shim. Fix email tests. 6 年 前
Shims.md 3fdefb7cbd Move helpers to Shim. Fix email tests. 6 年 前
Upgrade.md 2122674f8b Cleanup 6 年 前

README.md

CakePHP Tools Plugin Documentation

Installation

Upgrade Guide

Detailed Documentation - Quicklinks

Routing:

  • Url for useful tooling around URL generation.

I18n:

  • I18n for language detection and switching

ErrorHandler

Auth

Email

  • Email for sending Emails

Controller:

Behaviors:

Components:

Helpers:

Widgets:

Entity:

Basic enhancements of the core

Model

Extend the Tools plugin table and entity class to benefit from a few gotchas:

<?php
namespace App\Model\Table;

use Tools\Model\Table\Table;

class UsersTable extends Table {}

and

<?php
namespace App\Model\Entity;

use Tools\Model\Entity\Entity;

class User extends Entity {}

You can also make yourself your own AppTable and AppEntity class in your application and then extend those for each of the individual files - which I recommend for most flexibility.

Controller

<?php
namespace App\Controller;

use Tools\Controller\Controller;

class AppController extends Controller {

    public $components = ['Tools.Common'];

    public $helpers = ['Tools.Common', 'Tools.Time', 'Tools.Number', 'Tools.Format'];

}

Here we can also see some of the most useful components and helpers included right away.

The Common component for example will automatically provide:

  • Auto-trim on POST (to make - not only notEmpty - validation working properly).

The Tools plugin controller will allow you to:

  • Disable cache also works for older IE versions.

BC shims for easier migration from 2.x

It contains many shims to provide 2.x functionality when upgrading apps to 3.0. This eases migration as complete parts of the code, such as validation and other model property settings can be reused immediatelly without refactoring them right away.

Contributing

Your help is greatly appreciated.