-2
Kontrolör bölüm koduTanımsız endeksi: CakePHP'de
$Viewcustomer=$this->Viewcustomer->query("SELECT GROUP_CONCAT(usertype_name SEPARATOR ',') as usertypename, customer_name FROM `pre`.`customer` AS `Viewcustomer` WHERE `Viewcustomer`.`customer_status` = 0 AND `Viewcustomer`.`customer_type` = 'B1'
GROUP BY `customer_id` DESC");
$this->set("Viewcustomer",$Viewcustomer);
görünümü kısmı kodu içinde usertypename
foreach($Viewcustomer as $customers){
echo $customers['Viewcustomer']['usertypename'];
}
Nasıl olduğunu merak ediyorum ou üç CakePHP sürümünü aynı anda kullanabilir. Bana söyle? Veya etiketlerinizi düzeltin. – burzum