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.
February 9th, 2011 at 5:04 pm
Thanx!
February 14th, 2011 at 10:20 am
Thank you for this update!
It works for me as well..
February 18th, 2011 at 4:06 pm
Yes it works!