dektrium / yii2-user-demo Goto Github PK
View Code? Open in Web Editor NEWYii2-user demo site
Home Page: http://yii2-user.dmeroff.ru
License: MIT License
Yii2-user demo site
Home Page: http://yii2-user.dmeroff.ru
License: MIT License
Если ставить это приложение, то по умолчанию оно не работает.
В "composer.json" указана старая слишком старая версия расширения "yii2-user".
Вручную исправляешь версию "yii2-user" на последнюю, а заодно и требуемый для него "yii2-authclient", и только тогда начинает работать.
Полагаю, нужно обновить "composer.json" проекта, чтобы приложение сразу работало из коробки.
Например, так:
"yiisoft/yii2-authclient": "^2.1.0",
"dektrium/yii2-user": "dev-master",
Dear sir,
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)
Created project in yii2-user
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
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]
403 Forbidden
nginx/1.0.15
:(
Joined on : i think there should be a date and time or so..
but its not showing...
UPD: Тупанул, по неопытности. Все окей.
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.