azraf
(Tameemdh)
November 22, 2014, 8:45am
1
I have created a package, that can be useful to some new Yii2 developers, who need user-profile with RBAC working example.
Hope this will be helpful at least few people.
Github Repository:
A yii2 package comes with pre-installed jquery UI, RBAC (mdmsoft/yii2-admin), User profile (dektrium/yii2-user), upload files plugin (mdmsoft/yii2-upload-file) and few more coming to boostup initia...
GuideLine:
http://blog.makewebsmart.com/yii2-simpleapp-with-yii2-admin-user-adminlte-and-few-more/234
N.B.
I have already working with AdminLTE for admin template, hope to add this admin them soon.
mtri66
(Minhtri66)
November 22, 2014, 2:56pm
2
Thanks so much for this package! I am looking for this.
I have download the Zip file at github.com/azraf/yii2-simple and extract it in my webroot localhost/yii2-simple-master/
After that I follow the installation guide step by step:
Everthing ok!
My webroot:
assets
commands
config
controllers
mail
messages
models
runtime
tests
vendor
views
web
.gitignore
LICENSE-yii.md
LICENSE.md
README.md
composer.json
composer.lock
requirements.php
yii
yii.bat
yii2simple.sql
But I browse to localhost/yii2-simple-master/index.php/admin/ -> The requested URL /localhost/yii2-simple-master/index.php/admin/ was not found on this server.
I don’t see the admin folder in my webroot. I see the web folder and the index.php in it. Then I browse to localhost/yii2-simple-master/web/index.php -> Invalid Parameter – yii\base\InvalidParamException
The file or directory to be published does not exist: D:\wamp\www\yii2-simple-master\vendor\bower/jquery/dist
Please help me… Thanks
amd64bit
(Fedoracore9)
November 22, 2014, 3:16pm
3
From your webroot: you must browse to localhost/yii2-simple-master/web/index.php/admin
mtri66
(Minhtri66)
November 22, 2014, 3:40pm
4
Yes, I have tried it: localhost/yii2-simple-master/web/index.php/admin
But it error: Invalid Parameter – yii\base\InvalidParamException
The file or directory to be published does not exist: D:\wamp\www\yii2-simple-master\vendor\bower/jquery/dist
mtri66
(Minhtri66)
November 22, 2014, 3:56pm
5
Done! I have solved it. The problem is this package is missing bower folder in vendor… I have copied it from another Yii project and now it work!..
azraf
(Tameemdh)
November 22, 2014, 7:40pm
6
Great! Thanks.
If you still facing issues, then please update the package from github [you can only update the composer.json in project root and config/web.php] and run
composer update
command.
Also, Please dont forget to check if your composer is well set. You may give a look at this post for that: http://blog.makewebsmart.com/composer-and-php-environment-variable-fix/264
Thanks.