how to call models in cakephp 1.2 custom components?
Posted August 27, 2008on:
I was able to connect again to cakephp irc community yesterday about 1pm already, Philippines time. Another fellow cakephp programmer asked about how to call or include models in custom components.
I told him you can use,
so, after a while, he told me the code worked. I also explained to him that the uses() is deprecated in 1.2.
And then, another programmer told us about using ClassRegistry::init() in custom components. He provided us a link so we can see more explanation about using the code.
I post this blog because the way of Incorporating models in components is making me confused. You suggest using App::import and then , another will say use ClassRegistry. But when you suggest ClassRegistry, someone will say, just use App::import. I don’t get it.