Giter VIP home page Giter VIP logo

yii2-user-demo's People

Contributors

dmeroff avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

yii2-user-demo's Issues

Нужна последняя версия yii2-user

Если ставить это приложение, то по умолчанию оно не работает.

В "composer.json" указана старая слишком старая версия расширения "yii2-user".

Вручную исправляешь версию "yii2-user" на последнюю, а заодно и требуемый для него "yii2-authclient", и только тогда начинает работать.

Полагаю, нужно обновить "composer.json" проекта, чтобы приложение сразу работало из коробки.

Например, так:

        "yiisoft/yii2-authclient": "^2.1.0",
        "dektrium/yii2-user": "dev-master",

ErrorException

Dear sir,

There is an ErrorException when I install this project, would pls help me to find what is wrong with it?

D:\nginx-1.7.7\html>composer create-project --prefer-dist --stability=dev dektri
um/yii2-user-demo yii2-user
Installing dektrium/yii2-user-demo (dev-master c9e3817
b05b9aa)

  • Installing dektrium/yii2-user-demo (dev-master master)
    Loading from cache

Created project in yii2-user
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file

  • Installing yiisoft/yii2-composer (dev-master 665091a)
    Loading from cache
  • Installing bower-asset/jquery (2.1.1)
    Loading from cache
  • Installing bower-asset/bootstrap (v3.2.0)
    Loading from cache
  • Installing bower-asset/jquery.inputmask (3.1.47)
    Loading from cache
  • Installing bower-asset/punycode (v1.3.2)
    Loading from cache
  • Installing bower-asset/yii2-pjax (dev-master f07ce95)
    Loading from cache
  • Installing cebe/markdown (dev-master a0eeeac)
    Loading from cache
  • Installing myclabs/deep-copy (1.2.1)
    Loading from cache
  • Installing codeception/specify (dev-master c615e07)
    Loading from cache
  • Installing codeception/verify (dev-master f545e1d)
    Loading from cache
  • Installing ezyang/htmlpurifier (v4.6.0)
    Loading from cache
  • Installing yiisoft/yii2 (2.0.0)
    Loading from cache
  • Installing swiftmailer/swiftmailer (dev-master e29c7b6)
    Loading from cache
  • Installing yiisoft/yii2-swiftmailer (2.0.0)
    Loading from cache
  • Installing yiisoft/yii2-authclient (2.0.0)
    Loading from cache
  • Installing dektrium/yii2-user (dev-master 29f4bea)
    Loading from cache
  • Installing yiisoft/yii2-codeception (2.0.0)
    Loading from cache
  • Installing yiisoft/yii2-bootstrap (2.0.0)
    Loading from cache
  • Installing yiisoft/yii2-debug (2.0.0)
    Loading from cache
  • Installing phpspec/php-diff (dev-master 30e103d)
    Loading from cache
  • Installing bower-asset/typeahead.js (v0.10.5)
    Loading from cache
  • Installing yiisoft/yii2-gii (2.0.0)
    Loading from cache

Generating autoload files
Script yii\composer\Installer::setPermission handling the post-create-project-cm
d event terminated with an exception

[ErrorException]
Argument 1 passed to yii\composer\Installer::setPermission() must be of the
type array, object given, called in phar://C:/ProgramData/ComposerSetup/bi
n/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php on line 20
6 and defined

create-project [-s|--stability="..."] [--prefer-source] [--prefer-dist] [--repos
itory-url="..."] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--n
o-scripts] [--no-progress] [--keep-vcs] [--no-install] [package] [directory] [ve
rsion]

Удалить

UPD: Тупанул, по неопытности. Все окей.

The file or directory to be published does not exist: ~/projects/yii2/yii2-user/vendor/bower/jquery/dist'

exception 'yii\base\InvalidParamException' with message 'The file or directory to be published does not exist: ~/projects/yii2/yii2-user/vendor/bower/jquery/dist' in ~/projects/yii2/yii2-user/vendor/yiisoft/yii2/web/AssetManager.php:369

I had to add
"bower-asset/jquery": "@stable",
"bower-asset/bootstrap": "@stable",
"bower-asset/jquery-ui": "@stable",
"bower-asset/jquery.inputmask": "@stable",
"bower-asset/punycode": "@stable"

to composer.json and then symlink vendor/bower to vendor/bower-asset to get the site up

Layout cannot changes?

I have something layout
for admin and for login

My setting module is

'user' => [
'class' => 'dektrium\user\Module',
'enableUnconfirmedLogin' => true,
'confirmWithin' => 21600,
'cost' => 12,
'admins' => ['kireniusdena'],
'mailer' => [
'sender' => '[email protected]', // or ['[email protected]' => 'Sender name']
'welcomeSubject' => 'Welcome subject',
'confirmationSubject' => 'Confirmation subject',
'reconfirmationSubject' => 'Email change subject',
'recoverySubject' => 'Recovery subject',
],
'controllerMap' => [
'admin' => [
'class' => 'dektrium\user\controllers\AdminController',
'layout' => '@app/modules/administrator/views/layouts/main',
],
'login' => [
'class' => 'dektrium\user\controllers\LoginController',
'layout' => '@app/modules/administrator/views/layouts/main',
],
],
],

how to fix this? thx you

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.