use cakephp component inside a model
问题 How do I use a component that I created in cakePHP inside one of my model classes? Is this possible? If so, please let me know how I can do so 回答1: It is possible but pretty bad practice in a MVC framework. You should re-think and re-organize your code if you think you need to use the component in a model because something is cleary wrong then. A component is thought to share code between controllers, only between controllers. Components in CakePHP 1.3 Components in CakePHP 2.x Components in