junkins/tongue

Tongue is CakePHP controller action **dirty** TypeHinting plugin.

Installs: 4 637

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 4

Forks: 1

Open Issues: 0

Type:cakephp-plugin

1.0.1 2014-11-26 05:29 UTC

This package is auto-updated.

Last update: 2024-04-29 03:21:04 UTC


README

"Tongue" is CakePHP controller action dirty "TypeHinting" plugin.

Usage

// PostsController.php
    public $components = [
        'Tongue.Tongue'
    ];

    public function view(TNumeric $id) { // <= TypeHinting!!!
        $post = $this->Post->findById($id);
        $this->set(compact('post'));
    }

License

The MIT License