Cakephp3-form methods GET and POST

23666GET:
to set the method your form is send in cakephp3 as GET;

to get the Data sent via get in controller;

POST:

 

Forms in cakephp3:
http://book.cakephp.org/3.0/en/views/helpers/form.html

Cakephp3-Creating custom queries

23666In your object table;

In your controller method;

So what does it do?
It will return the results where the artist field is like eg.”U2″ and where the title is like “U2”.
It also has an order clause in there and will contain the related records set “mp3files”.

Reference:
http://book.cakephp.org/3.0/en/orm/query-builder.html

Cakephp3: sending json response message to view

23666Method1:

Method2:

//controller action

 

Sample AJAX Call and Response

23666This is just a quick example of how to send a reply from your controller to n AJAX request.

//you controller

//javascript function

A link to call the function;