dev-master
9999999-dev https://github.com/darkside666/autocompleteAutoComplete field add-on for Agile Toolkit (ATK4)
MIT AGPL
The Requires
- php >=5.4
- atk4/atk4 *
by Imants Horsts
autocomplete agile atk4 toolkit
Wallogit.com
2017 © Pedro Peláez
AutoComplete field add-on for Agile Toolkit (ATK4)
This will replace standard drop-down field with an auto-complete field., (*1)
, (*2)
The recommended way to install this add-on is through Composer., (*3)
# Install Composer curl -sS https://getcomposer.org/installer | php
Next, update your project's composer.json file to include AutoComplete:, (*4)
{
"require": {
"darkside666/autocomplete": "dev-master"
}
}
In your Frontend->init() add following lines:, (*5)
// allow add-ons to reside in /vendor folder
$this->addLocation(['addons' => ['../vendor']])
->setBasePath($this->pathfinder->base_location->getPath());
// HACK: force call Initiator of all used add-ons :)
foreach (['darkside666/autocomplete'] as $addon) {
$this->add("$addon\Initiator");
}
And then you're ready to use this add-on like this:, (*6)
// In model
$model->hasOne('User')->display(['form'=>'darkside666/autocomplete/Basic']);
// Or directly in form
$field = $form->addField('darkside666/autocomplete/Basic');
$field->setModel('User');
AutoComplete field add-on for Agile Toolkit (ATK4)
MIT AGPL
autocomplete agile atk4 toolkit