Cakephp3: sending json response message to view

23666Method1:

Method2:

//controller action