Use the interactive flag.
./yii migrate --interactive=0
Btw. actionUp
is the default action, so you can omit /up
. You can see the default and other actions by issuing the yii command
./yii
Or... you know.... use the property "enablePrettyUrl" as outlined here. Who wants to publish those GET params anyways?!
I know that you're using Yii. You're in /r/yii.
It's either
Yii::app()>db;
or
Yii::$app->db;
To connect to a database you have to configure the database application component.
Wish I could make it stupid easy for you, but it's numerous steps.
Here are a couple of relevant articles which, if you study should get you there. I've done it a few times, but each time I have to study what I did the previous time to fully get it.
http://www.yiiframework.com/forum/index.php/topic/29797-using-two-database/
http://www.yiiframework.com/wiki/123/multiple-database-support-in-yii/
Yii is simply a framework for building PHP sites/applications. The tutorials simply show you how to get started and some basics on what the framework does for you. Most people suggest doing the Blog tutorial. If I remember correctly, I ran into a little trouble following along with the blog tutorial and just dropped it and started working on my own project. Now that I know a little more I plan on reviewing it to see what I missed.
Did you have a project in mind for Yii?
I learned Yii by following their guide: http://www.yiiframework.com/doc-2.0/guide-index.html
Then I would try to extrapolate the guide examples to my work in question. After a while I'd go and check the source code in order to do more advanced stuff. 3 months later I felt 100% comfortable doing anything in Yii. Yii may seem to have a steep learning curve, but you easily start doing a lot of stuff really easily.
We want to use the ACL that comes with YII http://www.yiiframework.com/extension/acl/ , but I have realized that this only works with the MODEL and some CRUD actions like CREATE, READ, UPDATE, but what we need is to use the ACL with the controller and actions , by example
Class PostController {
actionIndex(){
}
actionDelete(){
}
}
I want to be able to grant the action Index and Delete.
if you want to use minifield version of your each css or js, you can follow this tips: http://www.yiiframework.com/wiki/785/use-minified-version-of-jqueryasset-bootstrapasset-and-all-default-assets/
more example from cebe: http://www.yiiframework.com/forum/index.php/topic/50825-manage-assets-in-yii2-theme/page__view__findpost__p__236161