Задать вопрос
  • Как открыть 80 порт?

    @Root_men Автор вопроса
    Работало какое то время, неделю может, щас слетело и не хочет открывать
  • Как пофиксить ошибку?

    @Root_men Автор вопроса
    исправил, в инпуте, но теперь Trying to get property of non-object
  • Что тут не так?

    @Root_men Автор вопроса
    Дмитрий Васильев:
    Warning: The use statement with non-compound name 'Casegame' has no effect in C:\Service\OpenServer\domains\moneygame\app\controllers\GamesController.php on line 3

    Warning: The use statement with non-compound name 'Games' has no effect in C:\Service\OpenServer\domains\moneygame\app\controllers\GamesController.php on line 4

    Warning: The use statement with non-compound name 'Items' has no effect in C:\Service\OpenServer\domains\moneygame\app\controllers\GamesController.php on line 5

    Redis server went away
    #0 C:\Service\OpenServer\domains\moneygame\app\controllers\GamesController.php(47): Redis->publish('new.winner', '{"status":1,"id...')
    #1 [internal function]: GamesController->playAction()
    #2 [internal function]: Phalcon\Dispatcher->callActionMethod(Object(GamesController), 'playAction', Array)
    #3 [internal function]: Phalcon\Dispatcher->_dispatch()
    #4 [internal function]: Phalcon\Dispatcher->dispatch()
    #5 C:\Service\OpenServer\domains\moneygame\public\index.php(47): Phalcon\Mvc\Application->handle()
    #6 {main}
    VM26378:1 Uncaught SyntaxError: Unexpected token <(anonymous function)
    @ core.js:1541i
    @ jquery.min.js:2j.fireWith
    @ jquery.min.js:2z
    @ jquery.min.js:4(anonymous function) @ jquery.min.js:4
  • Что ему не нравится?

    @Root_men Автор вопроса
    danforth:
    public function beforeCreate()
    {
    // Установить дату создания
    $this->created_at = date("Y-m-d H:i:s");
    }

    public function beforeUpdate()
    {
    // Установить дату модификации
    $this->modified_in = date("Y-m-d H:i:s");
    }
  • Что ему не нравится?

    @Root_men Автор вопроса
  • Что ему не нравится?

    @Root_men Автор вопроса
    danforth: если убрать вообще все то ругается на $request = new Request();(строка 16)
    Fatal error: Class 'Request' not found in C:\Service\OpenServer\domains\moneygame.cf\app\controllers\AuthController.php on line 16
  • Что ему не нравится?

    @Root_men Автор вопроса
    danforth:
    SQLSTATE[22007]: Invalid datetime format: 1292 Incorrect datetime value: '0000-00-00 00:00:00' for column 'modified_in' at row 1

    #0 [internal function]: PDOStatement->execute()
    #1 [internal function]: Phalcon\Db\Adapter\Pdo->executePrepared(Object(PDOStatement), Array, Array)
    #2 [internal function]: Phalcon\Db\Adapter\Pdo->execute('INSERT INTO `us...', Array, Array)
    #3 [internal function]: Phalcon\Db\Adapter->insert('users', Array, Array, Array)
    #4 [internal function]: Phalcon\Mvc\Model->_doLowInsert(Object(Phalcon\Mvc\Model\MetaData\Memory), Object(Phalcon\Db\Adapter\Pdo\Mysql), 'users', 'id')
    #5 C:\Service\OpenServer\domains\moneygame.cf\app\controllers\AuthController.php(42): Phalcon\Mvc\Model->save(Array)
    #6 [internal function]: AuthController->loginAction()
    #7 [internal function]: Phalcon\Dispatcher->callActionMethod(Object(AuthController), 'loginAction', Array)
    #8 [internal function]: Phalcon\Dispatcher->_dispatch()
    #9 [internal function]: Phalcon\Dispatcher->dispatch()
    #10 C:\Service\OpenServer\domains\moneygame.cf\public\index.php(47): Phalcon\Mvc\Application->handle()
    #11 {main}
  • Ошибка fatal error using $this when not in object context?

    @Root_men Автор вопроса
    Ошибка в
    /**
    * Setting up the view component
    */
    $di->setShared('view', function () {
    $config = $this->getConfig();