Server IP : 103.233.192.212 / Your IP : 18.191.222.230 Web Server : Apache/2 System : Linux sv1.inde.co.th 3.10.0-1160.36.2.el7.x86_64 #1 SMP Wed Jul 21 11:57:15 UTC 2021 x86_64 User : sumpatuan ( 1058) PHP Version : 5.5.38 Disable Function : symlink,shell_exec,exec,proc_close,proc_open,popen,system,dl,putenv,passthru,escapeshellarg,escapeshellcmd,pcntl_exec,proc_get_status,proc_nice,proc_terminate,pclose,ini_alter,virtual,openlog,ini_restore MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/sumpatuan/public_html/backup/framework/gii/generators/form/views/ |
Upload File : |
<h1>Form Generator</h1> <p>This generator generates a view script file that displays a form to collect input for the specified model class.</p> <?php $form=$this->beginWidget('CCodeForm', array('model'=>$model)); ?> <div class="row"> <?php echo $form->labelEx($model,'model'); ?> <?php echo $form->textField($model,'model', array('size'=>65)); ?> <div class="tooltip"> Model class is case-sensitive. It can be either a class name (e.g. <code>Post</code>) or the path alias of the class file (e.g. <code>application.models.LoginForm</code>). Note that if the former, the class must be auto-loadable. </div> <?php echo $form->error($model,'model'); ?> </div> <div class="row"> <?php echo $form->labelEx($model,'viewName'); ?> <?php echo $form->textField($model,'viewName', array('size'=>65)); ?> <div class="tooltip"> This refers to the name of the view script to be generated, for example, <code>site/contact</code>, <code>user/login</code>. The actual view script file will be generated under the View Path specified below. </div> <?php echo $form->error($model,'viewName'); ?> </div> <div class="row sticky"> <?php echo $form->labelEx($model,'viewPath'); ?> <?php echo $form->textField($model,'viewPath', array('size'=>65)); ?> <div class="tooltip"> This refers to the directory that the new view script file should be generated under. It should be specified in the form of a path alias, for example, <code>application.views</code>, <code>mymodule.views</code>. </div> <?php echo $form->error($model,'viewPath'); ?> </div> <div class="row"> <?php echo $form->labelEx($model,'scenario'); ?> <?php echo $form->textField($model,'scenario', array('size'=>65)); ?> <div class="tooltip"> This refers to the scenario in which the model should be used to collect user input. For example, a <code>User</code> model can be used in both <code>login</code> and <code>register</code> scenarios. To create a form for the login purpose, the scenario should be specified as <code>login</code>. Leave this empty if the model does not need to differentiate scenarios. </div> <?php echo $form->error($model,'scenario'); ?> </div> <?php $this->endWidget(); ?>