cakephp-plugin ya
Ya: Yet Another **
k1low/ya
Ya: Yet Another **
- Thursday, July 2, 2015
- by k1LoW
- Repository
- 2 Watchers
- 1 Stars
- 0 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
THIS IS STILL IN DEVELOPMENT
Ya
Yet Another **, (*1)
Setting
app/webroot/index.php, (*2)
<?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., (*3)
app/Ya/YAPostsController.php, (*4)
<?php
class YAPostsController extends PostsController
{
public add() {
// override PostsController::add()
}
}
Behavior of YaDispatcher
Default action
, (*5)
Safety action
, (*6)