I am trying to run a query in AppController on a table that has no Model associated with it. I don\'t want to use a Model cause this query would fire on every request and I gues
The getDataSource() method is static in CakePHP 2.x, so you should be able to use:
getDataSource()
$db = ConnectionManager::getDataSource('default'); $db->rawQuery($some_sql);