![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 114 Pomógł: 12 Dołączył: 15.02.2012 Ostrzeżenie: (0%) ![]() ![]() |
Czytając dokumentacje trafiłem na http://book.cakephp.org/2.0/en/controllers...troller-actions i zastanawiam się nad tym jak to w praktyce wykożystać:
"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.
Wcale nie powoduje wyrenderowania zwracanego stringu tylko wywala błąd o braku widoku dla HelloController::hello(). Co robię nie tak? Ten post edytował spokoloko123 26.04.2013, 17:39:55 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 5.10.2025 - 08:34 |