title: how to create a yii model without a database table
body: <p>i created a yii model that has no database table, but the problem now is, whenever I tried to call the model function within a view file, it doesn't get recognize</p>
  
  <pre><code>class blah extends CActiveRecord()
  
      public static function model($className=__CLASS__)
      {
          return parent::model($className);
      }
  
      public function tableName()
      {
          return '{{UNVETTED}}';
      }
  
      public function sayHello()
      { 
           echo "hello world";
      }
  }
  </code></pre>
  
  <p>while inside the view i called it like this</p>
  
  <p><code>blah::model()-&gt;sayHello()</code> , and then I got a white page of death, why is that?</p>