• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PHPActiveRecord error on empty table ?

#1
[eluser]Unknown[/eluser]
I am using codeigniter with phpactiverecord. Everything works fine when saving etc. But when i do a find or count on an empty table I get a :

Fatal error: Class 'ActiveRecord\ActiveRecordException' not found in

I first did this:
Code:
$namecount = $findactor::count(array('source_id' => $source_id));

after that I tried this:

Code:
try {
    $namecount = $findactor::count(array('source_id' => $source_id));
   }
catch (Exception $e) {
   $namecount = 0;
  }

But that gets the same error as mentiond above.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.