Код: Выделить всё
// controller
$model->load($_POST); // assign name and other attribs
// model
public $name
..
public function setName(){?run this code?}
Код: Выделить всё
// controller
$model->load($_POST); // assign name and other attribs
// model
public $name
..
public function setName(){?run this code?}
sharp писал(а):Собственно и вопрос почему вынесли из frontend/tests?
Код: Выделить всё
fixture/load "*"
Код: Выделить всё
Array
(
[0] => 42501
[1] => 7
[2] => ERROR: permission denied: "RI_ConstraintTrigger_c_33382" is a system trigger
)
zelenin писал(а):так и написано retrun? окsharp писал(а):вообщем, вот мое решение, может секономит время кому.
Код: Выделить всё
public function run(ModelEvent $event) { $event->isValid = false; retrun $event; }
Код: Выделить всё
public function run(ModelEvent $event)
{
$event->isValid = false;
return $event;
}
мне нужно в бихейвере отменить а не в самой модели. Потому не сработает.Demon_id писал(а):return false;