Note that there are some explanatory texts on larger screens.

plurals
  1. POerror in the selecting action and strange verification form
    text
    copied!<p>Each application has instance. When I try propirat way to url mananager </p> <pre><code>'application/&lt;slug:[\w+]+&gt;/instance/create/' =&gt; 'instance/create', 'application/&lt;slug:[\w+]+&gt;/instance/&lt;uuid:[\w0-9]+&gt;/update/' =&gt; 'instance/update', </code></pre> <p>To open a link, set the path in the form of</p> <pre><code>$this-&gt;menu=array( array('label'=&gt;'Create Instance', 'url'=&gt;Yii::app()-&gt;createUrl('instance/create', array('slug' =&gt; $model-&gt;application-&gt;slug, 'uuid' =&gt; $model-&gt;uuid))), array('label'=&gt;'Update Instance', 'url'=&gt;Yii::app()-&gt;createUrl('instance/update', array('slug' =&gt; $model-&gt;application-&gt;slug, 'uuid' =&gt; $model-&gt;uuid))), </code></pre> <p>I get an error</p> <pre><code>include(optional_note.php): failed to open stream: No such file or directory </code></pre> <p>What the file and that there has to be done to satisfy the referrals?</p> <p><strong>Update</strong></p> <pre><code>public function actionCreate() { $model=new Instance; $model-&gt;application_id = $this-&gt;_application-&gt;id; // Uncomment the following line if AJAX validation is needed // $this-&gt;performAjaxValidation($model); if(isset($_POST['Instance'])) { $model-&gt;attributes=$_POST['Instance']; if($model-&gt;save()) $this-&gt;redirect(array('view','uuid'=&gt;$model-&gt;uuid)); } $this-&gt;render('create',array( 'model'=&gt;$model, )); } </code></pre> <p><strong>Update</strong></p> <p>Now comes the strange behavior, gets the following field parameters</p> <pre><code>Stack Trace #3 \yii-1.1.12.b600af\framework\base\CModel.php(285): CValidator::createValidator("optional_note", Instance, "uuid", array(0 =&gt; "length", "max" =&gt; 128)) #4 \yii-1.1.12.b600af\framework\base\CModel.php(259): CModel-&gt;createValidators() #5 \yii-1.1.12.b600af\framework\base\CModel.php(302): CModel-&gt;getValidators("uuid") #6 \yii-1.1.12.b600af\framework\web\helpers\CHtml.php(1197): CModel-&gt;isAttributeRequired("uuid") #7 \yii-1.1.12.b600af\framework\web\widgets\CActiveForm.php(563): CHtml::activeLabelEx(Instance, "uuid", array()) #8 \protected\views\instance\_form.php(25): CActiveForm-&gt;labelEx(Instance, "uuid") &lt;?php echo $form-&gt;errorSummary($model); ?&gt; &lt;div class="row"&gt; &lt;?php echo $form-&gt;labelEx($model,'uuid'); ?&gt; &lt;?php echo $form-&gt;textField($model,'uuid',array('size'=&gt;60,'maxlength'=&gt;128)); ?&gt; &lt;?php echo $form-&gt;error($model,'uuid'); ?&gt; &lt;/div&gt; &lt;div class="row"&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload