Galera estou lendo o livro Agile web application development with Yii1.1 and PHP5 do Jeffery Winesett
Porém na parte Iteration 5: User Access Control onde se monta o RBAC estou tentando rodar o yiic shell nem a parte do help eu consigo e ñ sei o motivo.
Tentei das seguintes maneiras: acessando a pasta www/YiiRoot/framework$ depois rodei o comando yiic shell daí diz q o arquivo ñ foi encontrado. depois…
fui para www/YiiRoot$ yiic shell. aí mostra a msg.
[i]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.[/i]
no msm caminho acima tentei rodar o comando com o help yiic shell help e dá a msm msg acima.
Ele reclama do index.php mas essa pasta não tem o tal index. Onde YiiRoot é a pasta onde descpactei o framework q baixei da web e não minha aplicação gerada pelo yiic webapp.
Preciso passar disso para tentar rodar o yiic rbac e ñ consigo. Alguém tem alguma luz.
acessei a pasta do meu projeto /www/trakstar, dentro dele executei o comando passando o caminho completo.
user@desktop:~/www/trackstar$ /home/user/www/yii/framework/yiic shell oq me retornou foi o código HTML. Esse HTML eu testei para saber o conteudo e foi um daqueles que exibem erro qnd vc faz alguma caca no código.
mostra um:
CException
Property "CWebApplication.authManager" is read only.