Download the PHP package cobaia/komplete without Composer
On this page you can find all versions of the php package cobaia/komplete. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cobaia/komplete
More information about cobaia/komplete
Files in cobaia/komplete
Package komplete
Short Description CakePHP 2.0 Plugin that aims to make easily the autocomplete fuctionality.
License MIT
Homepage https://github.com/krolow/Komplete
Informations about the package komplete
Komplete
CakePHP 2.0 Plugin that aims to make easily the autocomplete fuctionality
Requirements
- PHP 5.3
- CakePHP 2.0 or >
Installation
- Clone from github: in your app directory type
git clone [email protected]:krolow/Komplete.git Plugin/Komplete
- Download an archive from github and extract it in
app/Plugin/Komplete
When use it?
Autocomplete functionality
Several times you want to make one input autcomplete, for the front-end side we have serveral solutions that works pretty well, but in the back-end side we have always to code that feature.
Komplete aims to make plug and play the autocomplete featurein the back-end side.
How?
It provides to you one controller action that answer as json the autocomplete functionality, and one behavior to save the data tha comes from the input field.
- It look for existent data
- Performs update/insert
- Performs the relationship between data
- Works with multiple data
- Works with single data
Import data
Import data is always another boring task, we have always to check if the data already exists in the database case it does not exists we should insert and create the relations.
Using Komplete you don't need more to care about this, you just enable Komplete and let the behavior handle that task to you, you pass one field as string, define what will be the property of database that you want to use as the search, and it will look for in database to you, case it exists in database will create the relations need, case not it will insert and also create the relations.
How it works?
Using as autocomplete
In your model:
In your view:
The javascript example, in this case using bootstrap of github and jquery:
Using to import
In your model:
Importing:
License
Licensed under The MIT License Redistributions of files must retain the above copyright notice.
Author
Vinícius Krolow - krolow[at]gmail.com