Cakephp plugin models without tables

This one kept me up a few days while doing development. The documentation at the Cakephp.org site does not mention that models from a plugin referenced have to be added in the $uses array on a controller as $uses=array(‘Plugin.Model’). So of course, without the name of the plugin to look up the files, our beloved plugin kept missing the mark. I hope it helps those poor souls out there some to get their code in better shape.

Post to Twitter

This entry was posted in Cakephp and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>