Navigation: Development > Function Reference > Model >
Count row of a table based on condition.
App::Model(MODEL)->countEntry(CONDITION);
Return integer value of row count. For example:
$cnt = App::Model('Page')->countEntry(' id > 5'); pr($cnt);