1

I am using cake PHP 2.1. I want to show an error message something like 'Invalid Parameter' in many places on my application.I want to define it in one place and use in many places.how can i achive this in Cake PHP.

4

1 回答 1

0

只需在 YourApplication/app/config/bootstrap.php 中定义一个常量并在您的应用程序中使用该常量

define('INVALID_MSG','Invalid Parameter');
于 2014-02-19T07:04:01.700 回答