Correction from dans la requete sql en lieu et place de columns

This commit is contained in:
Michael RICOIS 2012-01-11 16:16:18 +00:00
parent 0d7257d63d
commit 01b0543a8f

View File

@ -33,7 +33,7 @@ class IndexController extends Zend_Controller_Action
$db = Zend_Registry::get('db');
$criteresM = new Application_Model_Criteres();
$sql = $criteresM->select()
->columns($criteresM, array('criteres'))
->from($criteresM, array('criteres'))
->where('login = ?', $user->username)
->where('id = ?', $id);