Giter Club home page Giter Club logo

Comments (8)

morontt avatar morontt commented on August 21, 2024

Пробовали перезагружать компьютер?

from yii2-comments.

 avatar commented on August 21, 2024

@morontt я ведь написал, что установкой модуля и его конфигурированием занимаюсь впервые. И вполне осознаю, что вопрос "школьного" уровня.

from yii2-comments.

morontt avatar morontt commented on August 21, 2024

@ArthurKr Извиняюсь, это такой юмор :) Я не специалист по этому модулю, но он скоро тут появится.

from yii2-comments.

ihorchepurnyi avatar ihorchepurnyi commented on August 21, 2024

Здравствуйте, вам в бекенде нужно добавить след. конфиг выше ключа modules

  'controllerMap' => [
      'comments' => 'yii2mod\comments\controllers\ManageController',
 ]

То есть ваш конфиг должен быть

'id' => 'app-backend'
'controllerMap' => [
      'comments' => 'yii2mod\comments\controllers\ManageController',
 ],
// 

from yii2-comments.

ihorchepurnyi avatar ihorchepurnyi commented on August 21, 2024

и урл будет http://backend.dev/comments/index

from yii2-comments.

 avatar commented on August 21, 2024

@igor-chepurnoi заработало, спасибо! аж стыдно, вопрос реально глупый. Теперь ругается на интернационализацию, но с этим, думаю, управлюсь. Спасибо еще раз, можно закрывать.

from yii2-comments.

ihorchepurnyi avatar ihorchepurnyi commented on August 21, 2024

Не за что :) Чтобы не ругалось на интернационализацию нужно добавить в конфиг след. код

  'components' => [
        'i18n' => [
            'translations' => [
                'yii2mod.comments' => [
                    'class' => 'yii\i18n\PhpMessageSource',
                    'basePath' => '@yii2mod/comments/messages',
                ],
                // ...
            ],
        ],
        // ...
    ],

from yii2-comments.

ihorchepurnyi avatar ihorchepurnyi commented on August 21, 2024

или чтобы не искало переводы в yii2mod, сделайте так.

'i18n' => [
            'translations' => [
                '*' => [
                    'class' => 'yii\i18n\PhpMessageSource',
                ],
            ],
        ],

А потом когда переводы будут нужны, добавите код, который выше я написал.

from yii2-comments.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.