i have created a table named "foo_logs" by bake migrations. and then, created model and controller named "FooLogs" by bake.
Now, the model and controller have been created. The controller has a property called "$FooLogs" (bake wrote).
i tried to get the data for "foo_logs" but I see "Call to a member function find () on null". as follows;
$fooLogs = $this->paginate($this->FooLogs->find('all')->where($conditions));
i searched for the reason why $ this-> FooLogs is null. then, when identifying the modelClass, i confirmed that "Foologs" was used (l instead of L).
i want to know why "Foologs" is used. bakes it was completed as "FooLogs"! maybe the word "log" has a special meaning in CakePHP?
thanks in advance. reguards,