1
Model: CategoriaBanner
Controller: CategoriasBannersController
One thing’s keeping me up at night:
When trying to use create();
it gives object error when trying to use what would be the corresponding Model:
$this->CategoriaBanner->create();
Error: Call to a Member Function create() on a non-object File: /my/path/to/project/app/Controller/Categoriasbannerscontroller.php Line: 8
I’ve tried to add public $uses = 'CategoriaBanner';
but I didn’t succeed. What could it be?
Note: I am using the Cakeptbr to solve the inflections, and I don’t intend to settle with loadModel, because I want to use for the convention.
It would be interesting to see your controller code.
– Erlon Charles
Your $uses statement is wrong.
– Marcelo Aymone