gii不能连接测试服务器,请问怎样解决 [ 新手入门 ]
I was going to report a bug, but since I'm new to Yii, I don't know if this is the desired behavior.
What steps will reproduce the problem? Following along in Agile Web Application Development book
- Create two databases (mine were trackstar_dev and trackstar_test)
- Set up one database under db in config/main.php (_dev in my case)
- Set up the other database under db in config/test.php
- Add one table with same name to both databases. Model generator works in this instance.
- Add another table to the test database only. Model generator does not work, fails with "Table 'tablename' does not exist"
What is the expected output? What do you see instead? Expect Gii to generate a model; get "Table 'tablename' does not exist" error. pls help and appreciated highly!
TimKan 湖南
注册时间:2012-09-05
最后登录:1970-01-01
在线时长:0小时0分
最后登录:1970-01-01
在线时长:0小时0分
- 粉丝0
- 金钱45
- 威望0
- 积分45