title: How to call a function of db table row class from a controller in zend framework?
body: <p>I am trying to call a function exists in my dbtable row class ie Test.php.and I want to call it from my controller. My dbtable class is Tests.</p>
  <pre><code>$obj=new Model_Test();
  $obj-&gt;testFunction();
  </code></pre>
  <p>but it's not working and giving the below error.</p>
  <blockquote>
  <p>Notice: Undefined variable: modelTest in /opt/lampp/htdocs/TestApp/application/modules/public/controllers/TestsController.php on line 19</p>
  <p>Fatal error: Call to a member function testFunction() on a non-object in /opt/lampp/htdocs/TestApp/application/modules/public/controllers/TestsController.php on line 19</p>
  </blockquote>
  <p>I need to how can I call that function form my cotroller.</p>