adrianodemoura / select2
Element Select2 to cakephp 2.x
Installs: 15
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 2
Open Issues: 0
Language:JavaScript
Type:cakephp-plugin
This package is auto-updated.
Last update: 2025-03-10 05:07:19 UTC
README
============================ Select 2 ---------------------------- - Requirements cakePHP 2.X.X - Intall $ cd you_app_cake2 $ vim composer.json add in require line: "adrianodemoura/select2": "*" or $ composer require adrianodemoura/select2 $ composer update - Usage In bootstrap.php: CakePlugin::load('Select2'); in controller: <?php class AppController extends Controller { public $helpers = ['Form', 'Html', 'Js', 'Time', 'Select2.S2Form']; ?> or inside view: <?php $this->Helpers->load('Select2.S2Form'); echo $this->S2Form->input('Model.campo', ['label'=>false, 'width'=>'resolve', 'style'=>'min-width: 200px;', 'ajax'=>['url'=>'http://site.com/controller/get_list_select2']]); ?> - Como usar