За последние 24 часа нас посетили 20873 программиста и 1131 робот. Сейчас ищут 362 программиста ...

Hello страница не выводит текст

Тема в разделе "Yii", создана пользователем jpc, 25 авг 2019.

  1. jpc

    jpc Зэк
    [ БАН ]

    С нами с:
    30 июн 2019
    Сообщения:
    128
    Симпатии:
    0
    Код (Text):
    1.  */
    2. class HelloController extends Controller
    3. {
    4.     /**
    5.      * This command echoes what you have entered as the message.
    6.      * @param string $message the message to be echoed.
    7.      * @return int Exit code
    8.      */
    9.     public function actionIndex($message = 'hello world')
    10.     {
    11.         echo $message . "\n";
    12.  
    13.         return ExitCode::OK;
    14.     }
    15.  
    16.     public function actionHello($message = 'hello world')
    17.     {
    18.         echo $message . "\n";
    19.  
    20.         return ExitCode::OK;
    21.     }
    22. }
    страница есть а нет текста
    404 ошибка
     
  2. jpc

    jpc Зэк
    [ БАН ]

    С нами с:
    30 июн 2019
    Сообщения:
    128
    Симпатии:
    0
    проблема решена