I have W8, xampp
-
webapp testdrive etc. ok
-
prepared and konfigured in config main.php and console.php correct Mysql database ‘jajatest’,
where has been table User built
- crud User freezes after generation view.php
Ctrl+C canceled script (second round):
Please type ‘help’ for help. Type ‘exit’ to quit.
>> crud User
unchanged UserController.php
unchanged UserTest.php
unchanged create.php
unchanged update.php
unchanged index.php
unchanged view.php
<?php
$this->breadcrumbs=array(
'Users'=>array('index'),
'Manage',
);
$this->menu=array(
array('label'=>'List User', 'url'=>array('index')),
array('label'=>'Create User', 'url'=>array('create')),
);
Yii::app()->clientScript->registerScript(‘search’, "
$(’.search-button’).click(function(){
$('.search-form').toggle();
return false;
});
$(’.search-form form’).submit(function(){
$('#exception 'CException' with message 'Property "CrudCommand.modelC
s" is not defined.’ in C:\xampp\htdocs\yii\framework\base\CComponent.php:130
Stack trace:
#0 C:\xampp\htdocs\yii\framework\cli\views\shell\crud\admin.php(30): CCompone
>__get(‘modelClass’)
#1 C:\xampp\htdocs\yii\framework\console\CConsoleCommand.php(477): require('C
ampp\htdocs…’)
#2 C:\xampp\htdocs\yii\framework\cli\commands\shell\CrudCommand.php(222): CCo
leCommand->renderFile(‘C:\xampp\htdocs…’, Array, true)
#3 [internal function]: CrudCommand->generateView(‘C:\xampp\htdocs…’, 'User
#4 C:\xampp\htdocs\yii\framework\console\CConsoleCommand.php(370): call_user_
c(Array, ‘C:\xampp\htdocs…’, ‘User’)
#5 C:\xampp\htdocs\yii\framework\cli\commands\shell\CrudCommand.php(181): CCo
leCommand->copyFiles(Array)
#6 C:\xampp\htdocs\yii\framework\cli\commands\ShellCommand.php(128): CrudComm
->run(Array)
#7 C:\xampp\htdocs\yii\framework\cli\commands\ShellCommand.php(99): ShellComm
->runShell()
#8 C:\xampp\htdocs\yii\framework\console\CConsoleCommandRunner.php(67): Shell
mand->run(Array)
#9 C:\xampp\htdocs\yii\framework\console\CConsoleApplication.php(91): CConsol
mmandRunner->run(Array)
#10 C:\xampp\htdocs\yii\framework\base\CApplication.php(169): CConsoleApplica
n->processRequest()
#11 C:\xampp\htdocs\yii\framework\yiic.php(33): CApplication->run()
#12 C:\xampp\htdocs\testdrive\protected\yiic.php(7): require_once('C:\xampp\h
cs…’)
#13 {main}
>> ^CTerminate batch job (Y/N)?