Created
May 3, 2014 16:58
-
-
Save jippi/45d346bac7c1c74217ac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Controller; | |
class AppController extends \Cake\Controller\Controller { | |
use \Crud\Controller\ControllerTrait; | |
public $viewClass = 'CrudView\View\CrudView'; | |
public $components = [ | |
'RequestHandler', | |
'Search.Prg', | |
'Crud.Crud' => [ | |
'actions' => [ | |
'Crud.Index', | |
'Crud.Add', | |
'Crud.Edit', | |
'Crud.View', | |
'Crud.Delete', | |
'Crud.Lookup' | |
], | |
'listeners' => [ | |
'Crud.Api', | |
'Crud.ApiQueryLog', | |
'Crud.RelatedModels', | |
'Crud.Redirect', | |
'CrudView.View', | |
'CrudView.Search', | |
] | |
] | |
]; | |
public $helpers = [ | |
'Form' => [ | |
'templates' => 'CrudView.forms', | |
'widgets' => [ | |
'textarea' => ['CrudView\View\Widget\Textarea'], | |
'select' => ['CrudView\View\Widget\SelectBox'], | |
'label' => ['CrudView\View\Widget\Label'], | |
'datetime' => ['CrudView\View\Widget\DateTime', 'select'], | |
'_default' => ['CrudView\View\Widget\Basic'], | |
] | |
], | |
'Paginator' => [ | |
'templates' => 'CrudView.paginator' | |
] | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment