CakePHP – Accessing an un-related model from a controller action

Written by James McDonald

November 14, 2011

Check point 9 here =>

This didn’t work for me:


I got this error:
Fatal error: Call to undefined method EdiRecordsController::load()

This worked

$MyModel = ClassRegistry::init('IgnoreList');		
$ignore_list = $MyModel->find('list');

CakePHP version: 2.0.2


Submit a Comment

Your email address will not be published. Required fields are marked *

You May Also Like…

Toggen builds a new website

So I have built and hosted a new website for Roger Clark Pest Management they are a family owned and operated Pest...


Just downloaded WizTree (not a sponsor) from It seems to do what it says on the tin which is...

Scam call from “Telstra”

Just had a call from a man with a sub-continental accent from caller ID 0734946596 Told me there was problem with my...