public function createOrganisation() { $this->view = false; $DB = $this->di['db']->sql(DB_DEFAULT); createOragnisation: $this->cadre("create oraganisation"); do { $rl = new Hoa\Console\Readline\Readline(); $oraganisation = $rl->readLine('Your Oraganisation : '); } while (strlen($oraganisation) < 3); $sql = "INSERT INTO client (`id`,`libelle`,`date`) VALUES (1,'" . $oraganisation . "', '" . date('Y-m-d H:i:s') . "')"; $DB->sql_query($sql); }