Bom Dia Galera.
Eu instalei o yii e quando fui executar o SHELL na pasta protected da nova aplicação apareceu esse erro:
[color="#483D8B "]
C:\wamp\www\odonto\protected>yiic shell
Error: index.php does not exist or is not an entry script fil
USAGE
yiic shell [entry-script | config-file]
DESCRIPTION
This command allows you to interact with a Web application
on the command line. It 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.[/color]
a Solução foi criar um arquivo [color="#FF0000 "]"index.php"[/color] na pasta protected da nova palicação será que existe outra maneira pois ainda não consigo gerar no SHELL o MODEL aparece esse erro:
[color="#8B0000 "]C:\wamp\www\odonto\protected>yiic shell
Yii Interactive Tool v1.0 (based on Yii v1.0.5)
Please type ‘help’ for help. Type ‘exit’ to quit.
>> model pessoas
Fatal error: Call to a member function getDb() on a non-object in C:\wamp\www\yi
i\framework\cli\commands\shell\ModelCommand.php on line 115[/color]
testei o banco e o php deu tudo certo, o caminho no path tambem tá ok. mais persiste a mensagem.
Fatal error: Call to a member function getDb() on a non-object in C:\wamp\www\yi
i\framework\cli\commands\shell\ModelCommand.php on line 115
A linha que ele fala é essa do Arquivo "ModelCommand.php"
===============================================================================
…
[color="#FF0000 "]linha 115->[/color] if(($db=Yii::app()->getDb())!==null)
{
$db->active=true;
if(($table=$db->schema->getTable($tableName))!==null)
{
$required=array();
$integers=array();
$numerical=array();
foreach($table->columns as $column)
{
.............
Agradeço desde já pela atenção vlw.
Ismael
(Shalanga)
October 1, 2009, 2:16pm
3
Bom Dia Galera.
Eu instalei o yii e quando fui executar o SHELL na pasta protected da nova aplicação apareceu esse erro:
[color="#483D8B "]
C:\wamp\www\odonto\protected>yiic shell
Error: index.php does not exist or is not an entry script fil
USAGE
yiic shell [entry-script | config-file]
DESCRIPTION
This command allows you to interact with a Web application
on the command line. It 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.[/color]
a Solução foi criar um arquivo [color="#FF0000 "]"index.php"[/color] na pasta protected da nova palicação será que existe outra maneira pois ainda não consigo gerar no SHELL o MODEL aparece esse erro:
[color="#8B0000 "]C:\wamp\www\odonto\protected>yiic shell
Yii Interactive Tool v1.0 (based on Yii v1.0.5)
Please type ‘help’ for help. Type ‘exit’ to quit.
>> model pessoas
Fatal error: Call to a member function getDb() on a non-object in C:\wamp\www\yi
i\framework\cli\commands\shell\ModelCommand.php on line 115[/color]
testei o banco e o php deu tudo certo, o caminho no path tambem tá ok. mais persiste a mensagem.
Certamente criar um index.php dentro do protected é ilógico.
Faça algo como.
yiic shell .\config\main.php
VLW meu irmão deu certo essa Bagaça kkkkkkkk cv é o cara.
Obs: (Não gostei do “ilógico”) mais tudo bem
Ismael
(Shalanga)
October 2, 2009, 12:15am
5
Desculpa, sou nerd sem sentimentos as vezes.
Curto, grosso, objetivo e sem vida.
Minhas apologias.
Ismael:
Desculpa, sou nerd sem sentimentos as vezes.
Curto, grosso, objetivo e sem vida.
Minhas apologias.
Mais é nos Cedros mais duros que se constroe os melhores barcos.