Use model inside helper class cakephp
Posted on February 23, 2010

Hello All,

Finally after researching for hours we got the solution to call a model inside a helper class. we hope this helps you.

In a method of your helper class just use : $this->ModelName=& ClassRegistry::init(’ModelName’);

And now $this->ModelName has all the property of the model.

Do let us know if you are unable to use the same.

Happy Algo-blogging.