Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You got an error in your php synax in <strong>_form2.php</strong></p> <pre><code>&lt;?php echo CHtml::submitButton($model-&gt;isNewRecord ? 'Delete a news item'); ?&gt; </code></pre> <p>more like </p> <pre><code>&lt;?php echo CHtml::submitButton($model-&gt;isNewRecord ? 'Delete a news item':'Delete an old item'); ?&gt; </code></pre> <p>See the <strong>Ternary Operator</strong> in <a href="http://php.net/manual/en/language.operators.comparison.php" rel="nofollow"><strong>PHP: Comparison Operators</strong></a></p> <p>... yet I don't se the point in that sentence, to me it would seem a little bit more like:</p> <pre><code>&lt;?php if (!$model-&gt;isNewRecord) echo CHtml::submitButton("Delete Record"); ?&gt; </code></pre> <p>... but the record is guaranteed to not be new when it is loaded by <code>$model=$this-&gt;loadModel($id);</code></p> <p>Also, In <strong>Delete.php</strong></p> <pre><code>&lt;?php echo $this-&gt;renderPartial('_form2', array('model'=&gt;$model)); ?&gt; </code></pre> <p>would be more like </p> <pre><code>&lt;?php echo $this-&gt;renderPartial('_form2', array('model'=&gt;$model), true); ?&gt; </code></pre> <p>or</p> <pre><code>&lt;?php $this-&gt;renderPartial('_form2', array('model'=&gt;$model)); ?&gt; </code></pre> <p>Seel the documentation <a href="http://www.yiiframework.com/doc/api/1.1/CController#renderPartial-detail" rel="nofollow"><code>renderPartial()</code></a>, specially pay attention to its return value its third argument. Turns out that you're actually echoing NULL. which explains why there is no display.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

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