Yii:: Dialog box dialog is not a function

Posted: December 14, 2010 in Php, Yii Framework

Error: Yii dialog box – dialog is not a function

In Controller:
$this->renderPartial(‘problemDetails’,array(
                         ‘modelProblem’=>$modelProblem,
                        ),false,true );

Then, add this script inside your partial view.

<span class="typ">Yii</span><span class="pun">::</span><span class="pln">app</span><span class="pun">()-></span><span class="pln">clientScript</span><span class="pun">-></span><span class="pln">scriptMap</span><span class="pun">=</span><span class="pln">array</span><span class="pun">(</span><span class="pln">
         </span><span class="com">//scripts that you don't need inside this view</span><span class="pln">
        </span><span class="str">'jquery.js'</span><span class="pun">=></span><span class="kwd">false</span><span class="pun">,</span><span class="pln">       
</span><span class="pun">);</span>

Comments
  1. Sandeep Ranjan says:

    How can we do Show error message inside dialogue box form.?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s