title: Failed to Run any "Model/Controller in Browser using YII and gii ?
body: <p>I am newbie in Php using YII and Gii when iam trying to open any model and controller file in browser i am getting error the console of error and code is:
  <strong>CODE:</strong></p>
  
  <pre><code> &lt;?php
  
   class UsersController extends Controller {
  
      public function actionIndex() {
          $this-&gt;render('index');
      }
  public function actionLogIn() {
          if (isset($_POST['user_name']) &amp;&amp; !empty($_POST['user_name']) &amp;&amp; isset($_POST['password']) &amp;&amp; !empty($_POST['password'])) {
              $username = strtolower($_POST['user_name']);
                    $pass = MD5($_POST['password']);
                  $record = Users::model()-&gt;find('user_name=:username and password=:pass and status=:status', array(':username' =&gt; $username, ':pass' =&gt; $pass, ':status' =&gt; 'ACTIVE'));
            if($record){
  
                  $response['status'] = true;
                      $response['message'] = "Successfully Logged In.";
                      $response['user'] = $record;
            } else {
                      $response['status'] = false;
                      $response['message'] = "Username Or Password did not Match.";
                  }
              echo CJSON::encode($response);
          }
      }
  
  }
  </code></pre>
  
  <p>Here is the error which appears in browser 
    <img src="https://i.stack.imgur.com/0MuTN.png" alt="Browser Result">
  Can someone please point me what does this error mean  ? </p>