Juan R.
Juan R.

Reputation: 41

execute an action without calling its view in Cakephp 3.x.x

Is there a way to just execute an action inside a controller without the request of its view.

I'm using cakephp 3.x.x

Thanks.

Upvotes: 3

Views: 2379

Answers (2)

Yoseph
Yoseph

Reputation: 660

In CakePHP version >= 3.6

$this->disableAutoRender();

Upvotes: 0

dpp
dpp

Reputation: 496

You can just turn off the view controller docs:

$this->autoRender = false;

Upvotes: 3

Related Questions