I was using an example...
It has this:
// /app/plugins/pizza/models/example_model.php:
class ExampleModel extends PizzaAppModel {
var $name = 'ExampleModel';
var $hasMany = array('Pizza.PizzaOrder');
}
?>
Buttt, which breaks some automagic stuff. I've found that changing the
abov
Hi,
http://book.cakephp.org/view/1114/Plugin-Models doesn't have what you
mentioned. It uses model name as 'PizzaOrder' and not 'PizzaOrderModel'.
Amit Badkas
PHP Applications for E-Biz: http://www.sanisoft.com
On Tue, Jan 11, 2011 at 5:42 AM, Parris wrote:
> Hi All,
> I was wondering why t
Hi All,
I was wondering why the plugin tutorial names models like:
"PizzaOrderModel." I understand Pizza is the name of the plugin, and
am fine with that, but the word model throws off the convention. Plus
it breaks a few other things like validation. It also forces you to
use: var $uses in your co