发布网友 发布时间:2022-04-25 13:14
共1个回答
热心网友 时间:2024-10-24 05:28
=, function() { $flash = new , ,在controller里面,please modify the article title; =;falsh;服务;save()) { $this-: public function validation() { $this-;set(;flash;;Mvc. Register the flash service with custom CSS classes */ $di-: , ;The slug already exists in other articles;getMessages() as $message) { $this-;flashSession-;success;error($message);redirect($paginateUrl); $this-;, ;warning; =; ;alert alert-warning; )); return $flash; }); 以;** 1;validate(new Uniqueness(array( ;view-;disable(); } 当然. ;success($Article-;title ;Phalcon; ;Phalcon: if ($Article-;slug;;Flash;message;, ;notice;alert alert-success;Direct(array( ;error; =; ;alert alert-danger callout callout-danger;;Model为例; =; ;validationHasFailed() == true) { return false; ,你也可以自定义验证信息; =; ;alert alert-info;flash-; ))); if ($this-;has been updated;); } else { foreach ($Article-; } return $this-;response-;field假设你已经注册