mscherer 3af319f753 Docs 2 years ago
..
Behavior 3af319f753 Docs 2 years ago
Command 02aab77060 Move inflect script to command. 5 years ago
Component 8902d93c95 Update RefererRedirect.md 5 years ago
Controller 77581427a9 Use ShimController as base 10 years ago
Entity 9a7d86b6f4 Docs. 6 years ago
Error f38eb8a6d1 Fix exception trap. Re-Add Mime 2 years ago
Helper a8abcfc7d9 Merge remote-tracking branch 'origin/master' into cake5 2 years ago
I18n 6893ad1bf6 Refactor enum into trait. 6 years ago
Mailer 3f7678c22f Update Email.md 3 years ago
Model 625011451c Refactor tokens. 5 years ago
Url ddc4ffff8c Update Url.md 5 years ago
Utility 73e72be638 Change Log.php to FileLog.php 5 years ago
Widget 401430cd5f Add Datalist widget. 7 years ago
Contributing.md 3eb947d8f5 CS Fix 5 years ago
Install.md 5ae5be3360 Fix up properties and docs. 5 years ago
README.md 3af319f753 Docs 2 years ago
Shims.md 2d5288ff87 Init Cake5 2 years ago
Upgrade.md 3af319f753 Docs 2 years ago

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

Email

  • Email for sending Emails

Tokens

Controller:

Behaviors:

Components:

Helpers:

Widgets:

Entity:

Utility:

  • FileLog to log data into custom file(s) with one line

Command:

  • Inflect to test inflection of words.

IDE compatibility improvements

For some methods you can find a IdeHelper task in IdeHelperExtra plugin:

  • FormatHelper::icon() (deprecated)
  • IconHelper::render()

Those will give you automcomplete for the input.

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 {

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

    protected $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 4.x

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

Contributing

Your help is greatly appreciated.