class GetVal{ public function value(){ $sql = new DbQuery(); $sql->from('ps_table'); $sql->select('id_name'); $sql->where('id_addr = some street 10'); return Db::getInstance()->execute($sql); // return ONE name } }
I try to get the result in other class,but get nothing
$ddb = new GetVal(); $result = $ddb->value();