Tyscall
(Davisallesamaral)
September 29, 2011, 8:55pm
1
Bem estou testando o Yii para saber qual framework vamos usar para uma nova ferramenta.
Estou fazendo aquele "Criando a primeira aplicação Yii "
Mas sempre que tento usar o CRUD da erro :
…\testdrive\protected>yiic shell
Error: index.php does not exist or is not an entry script file.
USAGE
yiic shell [entry-script | config-file]
DESCRIPTION
This command allows you to interact with a Web application
on the command line. It also provides tools to automatically
generate new controllers, views and data models.
It is recommended that you execute this command under
the directory that contains the entry script file of
the Web application.
PARAMETERS
entry-script | config-file: optional, the path to
the entry script file or the configuration file for
the Web application. If not given, it is assumed to be
the ‘index.php’ file under the current directory.
Alguem pode ajudar?
Tyscall:
Bem estou testando o Yii para saber qual framework vamos usar para uma nova ferramenta.
Estou fazendo aquele "Criando a primeira aplicação Yii "
Mas sempre que tento usar o CRUD da erro :
…\testdrive\protected>yiic shell
Error: index.php does not exist or is not an entry script file.
USAGE
yiic shell [entry-script | config-file]
DESCRIPTION
This command allows you to interact with a Web application
on the command line. It also provides tools to automatically
generate new controllers, views and data models.
It is recommended that you execute this command under
the directory that contains the entry script file of
the Web application.
PARAMETERS
entry-script | config-file: optional, the path to
the entry script file or the configuration file for
the Web application. If not given, it is assumed to be
the ‘index.php’ file under the current directory.
Alguem pode ajudar?
Amigo você já configurou o /config/main.php para que ele possa visualizar o seu banco? Pois antes de criar os cruds é preciso fazer a conexão com o banco.
Sds,
Adriano Silva
Tyscall
(Davisallesamaral)
September 30, 2011, 12:32pm
3
Não sei se é isso :
'db'=>array(
'connectionString' => 'mysql:host=localhost;dbname=testdrive',
'emulatePrepare' => true,
'username' => 'root',
'password' => 'root',
'charset' => 'utf8',
),
Desculpa, é que sou novo no PHP e ´mais novo ainda em Framework para PHP…
Tyscall
(Davisallesamaral)
September 30, 2011, 12:58pm
4
eu executei assim : yiic shell ../index.php
E funcionou !
jojovem
(Ferreira)
January 31, 2012, 1:22pm
5
Foda quando a pessoa não entende a pergunta e responde uma coisa nada a ver.
Newerton
(Newerton Araujo)
January 31, 2012, 10:09pm
6
Não entendi seu questionamento, já não foi dado a resposta correta e solucionado posteriormente?