"If for some reason you?d like to skip the default behavior. Both of the following techniques will by-pass the default view rendering behavior.
- If you return a string, or an object that can be converted to a string from your controller action, it will be used as the response body.
- You can return a CakeResponse object with the completely created response."
Chodzi o pogrubione zdanie.
<?php class HelloController extends AppController { public function hello(){ return '<p>Hello World!</p>' } } ?>
Wcale nie powoduje wyrenderowania zwracanego stringu tylko wywala błąd o braku widoku dla HelloController::hello(). Co robię nie tak?