Permalink
Browse files

autocomplete example

  • Loading branch information...
1 parent 1a9ecbc commit c5af06e107b286187899c9e88490c57203a0417e vadym committed Jul 22, 2013
Showing with 14 additions and 2 deletions.
  1. +1 −0 .gitignore
  2. +1 −0 addons/autocomplete
  3. +10 −0 docs/interactive-views_autocomplete.md
  4. +1 −1 lib/Frontend.php
  5. +1 −1 lib/Model/Person.php
View
@@ -15,3 +15,4 @@ ds-addons
.buildpath
.project
.settings
+*.sql.*
Submodule autocomplete added at 795a18
@@ -0,0 +1,10 @@
+# Autocomplete
+
+
+ $model = $page->add('Model_Person');
+
+ $form = $page->add('Form');
+ $field = $form->addField('autocomplete/Basic','bla');
+ $field->setModel($model);
+
+ $form->addSubmit('Save');
View
@@ -5,7 +5,7 @@ class Frontend extends ApiFrontend {
function init(){
parent::init();
- //$this->dbConnect();
+ $this->dbConnect();
$this->pathfinder->addLocation('./',array(
'docs'=>'docs',
View
@@ -1,6 +1,6 @@
<?php
class Model_Person extends Model_Table {
- public $entity_code='person';
+ public $table='person';
public $table_alias='p';
function init(){
parent::init();

0 comments on commit c5af06e

Please sign in to comment.