{"action":"created","issue":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/6703","repository_url":"https://api.github.com/repos/cakephp/cakephp","labels_url":"https://api.github.com/repos/cakephp/cakephp/issues/6703/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/cakephp/issues/6703/comments","events_url":"https://api.github.com/repos/cakephp/cakephp/issues/6703/events","html_url":"https://github.com/cakephp/cakephp/issues/6703","id":83283012,"number":6703,"title":"[3.0] Cakephp 3.0 Validation notBlank cannot display my custom message","user":{"login":"macnie","id":405544,"avatar_url":"https://avatars.githubusercontent.com/u/405544?v=3","gravatar_id":"","url":"https://api.github.com/users/macnie","html_url":"https://github.com/macnie","followers_url":"https://api.github.com/users/macnie/followers","following_url":"https://api.github.com/users/macnie/following{/other_user}","gists_url":"https://api.github.com/users/macnie/gists{/gist_id}","starred_url":"https://api.github.com/users/macnie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macnie/subscriptions","organizations_url":"https://api.github.com/users/macnie/orgs","repos_url":"https://api.github.com/users/macnie/repos","events_url":"https://api.github.com/users/macnie/events{/privacy}","received_events_url":"https://api.github.com/users/macnie/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cakephp/cakephp/labels/Invalid","name":"Invalid","color":"e6e6e6"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/cakephp/cakephp/milestones/43","html_url":"https://github.com/cakephp/cakephp/milestones/3.0.7","labels_url":"https://api.github.com/repos/cakephp/cakephp/milestones/43/labels","id":1138294,"number":43,"title":"3.0.7","description":"Bugfixes and optimizations for 3.0.x","creator":{"login":"markstory","id":24086,"avatar_url":"https://avatars.githubusercontent.com/u/24086?v=3","gravatar_id":"","url":"https://api.github.com/users/markstory","html_url":"https://github.com/markstory","followers_url":"https://api.github.com/users/markstory/followers","following_url":"https://api.github.com/users/markstory/following{/other_user}","gists_url":"https://api.github.com/users/markstory/gists{/gist_id}","starred_url":"https://api.github.com/users/markstory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstory/subscriptions","organizations_url":"https://api.github.com/users/markstory/orgs","repos_url":"https://api.github.com/users/markstory/repos","events_url":"https://api.github.com/users/markstory/events{/privacy}","received_events_url":"https://api.github.com/users/markstory/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":101,"state":"closed","created_at":"2015-05-28T15:24:54Z","updated_at":"2015-06-15T01:48:36Z","due_on":"2015-06-13T04:00:00Z","closed_at":"2015-06-15T01:48:36Z"},"comments":5,"created_at":"2015-06-01T03:03:00Z","updated_at":"2016-04-30T19:56:49Z","closed_at":"2015-06-01T03:23:15Z","body":"# My Validation Rule\r\n\r\npublic function validationLogin(Validator $validator)\r\n    {\r\n        $extra = '';\r\n        return $validator\r\n            ->add('username',[\r\n                'notBlank'=>    ['rule'=>'notBlank','message'=>'ab'],\r\n                'minLength'=>   ['rule'=>['minLength',5],'message'=>'cd'],\r\n            ])\r\n            ->add('password',[\r\n                'notBlank'=>    ['rule'=>'notBlank','message'=>'ef'],\r\n            ]);\r\n    }\r\n\r\n# Also display error :This field cannot be left empty\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/comments/215991329","html_url":"https://github.com/cakephp/cakephp/issues/6703#issuecomment-215991329","issue_url":"https://api.github.com/repos/cakephp/cakephp/issues/6703","id":215991329,"user":{"login":"ADmad","id":142658,"avatar_url":"https://avatars.githubusercontent.com/u/142658?v=3","gravatar_id":"","url":"https://api.github.com/users/ADmad","html_url":"https://github.com/ADmad","followers_url":"https://api.github.com/users/ADmad/followers","following_url":"https://api.github.com/users/ADmad/following{/other_user}","gists_url":"https://api.github.com/users/ADmad/gists{/gist_id}","starred_url":"https://api.github.com/users/ADmad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ADmad/subscriptions","organizations_url":"https://api.github.com/users/ADmad/orgs","repos_url":"https://api.github.com/users/ADmad/repos","events_url":"https://api.github.com/users/ADmad/events{/privacy}","received_events_url":"https://api.github.com/users/ADmad/received_events","type":"User","site_admin":false},"created_at":"2016-04-30T19:56:49Z","updated_at":"2016-04-30T19:56:49Z","body":"> to be able to write all the validation rules of the field inside same array...\r\n\r\nYou can already do that. Use `notBlank` instead of your custom `isNotEmpty` or add your custom `isNotEmpty()` method in table / behavior."}}