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
PLUGIN (save as selectize-fast-click.js and load after selectize.js): | |
------------------------------------------------------ | |
Selectize.define('fast_click', function(options) { | |
var self = this; | |
this.render = (function() { | |
var original = self.render; | |
return function(templateName, data) { | |
var html = original.apply(this, arguments); | |
var $output = $(html).addClass('needsclick'); |
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\Model\Table; | |
use Cake\ORM\Table; | |
use Cake\ORM\Query; | |
use Cake\Validation\Validator; | |
class UsersTable extends Table | |
{ |
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
/src/Model/Table/UsersTable.php (line 46) | |
object(Cake\Validation\Validator) { | |
'_presenceMessages' => [], | |
'_allowEmptyMessages' => [], | |
'_useI18n' => true, | |
'_providers' => [], | |
'_fields' => [] | |
} |
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\Model\Table; | |
use Cake\ORM\Table; | |
use Cake\ORM\Query; | |
use Cake\Validation\Validator; | |
class UsersTable extends Table | |
{ |
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
src/Controller/Admin/UsersController.php (line 64) | |
object(App\Model\Entity\User) { | |
'role' => '', | |
'[new]' => true, | |
'[accessible]' => [ | |
'*' => true | |
], | |
'[dirty]' => [ | |
'role' => 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 | |
App::uses('Folder', 'Utility'); | |
App::uses('AppShell', 'Console/Command'); | |
class UpgradeTask extends AppShell { | |
public function execute() { | |
$this->out(sprintf('Location: %s', APP)); | |
$this->hr(); | |
$files = $this->_getFiles(); |
NewerOlder