Skip to content

Instantly share code, notes, and snippets.

@nilsonpena
nilsonpena / Readme.md
Created February 14, 2016 02:08 — forked from mrgcohen/Readme.md
Twitter Bootstrap Typeahead autocomplete example

Requirements

  • bootstrap with typeahead
  • jquery

Explanation

This will use bootstrap with typeahead to create an autocomplete search.

@nilsonpena
nilsonpena / ProfilesController.php
Created January 17, 2012 00:16
Profile com MeioUpload
<?php
public function add() {
if ($this->request->is('post')) {
$this->Profile->create();
// debug($this->request->data);
// exit;
if ($this->Profile->save($this->request->data) && $this->Profile->Avatar->save($this->request->data)) {
$this->Session->setFlash(__('The profile has been saved'));
$this->redirect(array('action' => 'index'));
} else {