k1low/ya

Ya: Yet Another **

Fund package maintenance!
k1LoW

Installs: 6

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 3

Forks: 0

Open Issues: 0

Type:cakephp-plugin

dev-master 2015-07-02 13:13 UTC

This package is auto-updated.

Last update: 2024-12-06 10:03:22 UTC


README

Ya

Yet Another **

Setting

app/webroot/index.php

<?php

...

// App::uses('Dispatcher', 'Routing');
// $Dispatcher = new Dispatcher();
App::uses('YaDispatcher', 'Ya.Routing');
$Dispatcher = new YaDispatcher();
$Dispatcher->dispatch(
    new CakeRequest(),
    new CakeResponse()
);

Usage

Create YAPostsController.php to prototype new feature of PostsController.

app/Ya/YAPostsController.php

<?php
  class YAPostsController extends PostsController
  {

    public add() {
       // override PostsController::add()
    }

  }

Behavior of YaDispatcher

Default action

default flow

Safety action

safety flow