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
$ git push origin :hoge | |
To git@github.com:example/example.git | |
- [deleted] hoge |
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
public $helpers = array( | |
'Html' => array( | |
'configFile' => array('tags', 'php') | |
), | |
); |
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
$config['tags'] = array( | |
'input' => '<div class="input"><input name="%s" %s/></div>', | |
'label' => '<div class="info"><label for="%s"%s>%s</label></div>', | |
'radio' => '<div class="input radio"><input type="radio" name="%s" id="%s" %s />%s</div>', | |
'button' => '<div class="input submit"><button type="%s"%s>%s</button></div>', | |
); | |
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
Configure::write('Exception.renderer', 'AppExceptionRenderer'); |
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 | |
// in app/Lib/Error/AppExceptionRenderer.php | |
App::uses('ExceptionRenderer', 'Error'); | |
class AppExceptionRenderer extends ExceptionRenderer { | |
protected function _getController($exception) { | |
$controller = parent::_getController($exception); | |
$controller->layout = 'error'; | |
return $controller; | |
} |
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
function beforeFilter() { | |
if(isset($this->Ktai) && $this->Ktai->is_ktai()){ | |
$this->layout = 'ktai_default'; | |
$this->viewPath = 'ktai' . DS . $this->viewPath; | |
$this->Ktai->_options = array_merge($this->Ktai->_options, array( | |
'input_encoding' => 'UTF-8', |
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 | |
class UsersController extends AppController { | |
public $components = array('Search.Prg'); | |
public $presetVars = array( | |
array('model' => 'User', 'field' => 'name', 'type' => 'value'), | |
array('model' => 'User', 'field' => 'state', 'type' => 'value'), | |
array('model' => 'User', 'field' => 'tel', 'type' => 'value'), | |
); | |
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 | |
class AppModel extends Model { | |
public $actsAs = array( | |
'Search.Searchable', | |
'Collectionable.Options', | |
); | |
public $defaultOption = true; | |
} |
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 | |
class User extends AppModel { | |
public $filterArgs = array( | |
array('name' => 'name', 'type' => 'like', 'field' => 'User.name'), | |
array('name' => 'state', 'type' => 'value', 'field'=>'User.state'), | |
); | |
} |
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 | |
App::uses('AppController', 'Controller'); | |
class UsersController extends AppController { | |
public $components = array('Search.Prg'); | |
public $presetVars = array( | |
array('model' => 'User', 'field' => 'name', 'type' => 'value'), | |
array('model' => 'User', 'field' => 'state', 'type' => 'value'), |
OlderNewer