How to redirect if a method is missing CakePHP?

175
July 10, 2018, at 7:50 PM

I have a trouble when I'm using a wrong method with CakePHP and since new versions of it, things have changed. I didn't found how to redirect a wrong page to the default page each time it's a wrong URL. Here it's the problem

Answer 1

Use: $this->redirect( array( "controller" => "Controller", "action" => "user", "?" => array( "username" => "USER123", "usertype" => "Test" ) ), $status, $exit );

Rent Charter Buses Company
READ ALSO
MySQL - Import table does not update the column with new import value?

MySQL - Import table does not update the column with new import value?

I have windows mysql and phpUsing php i am importing the table, but while importing all works except columns values are not accurate

164
how to create url with function yii2

how to create url with function yii2

I want to get base URL with parameter in Yii2 eg:

207
Wordpress plugin admin ajax returning 400 bad request

Wordpress plugin admin ajax returning 400 bad request

I am writing a plugin and i am trying to submit an ajax request from the main plugin file which another file picks up and returns a response

274