Edit the Models

Just 4 fun to see the error …

<?php

class Product extends AppModel
{
  var $name = “Product”;
}
?>
/** fun changing..***/
when i change class Product into something else is says
 Fatal error: Class ‘Product’ not found in F:\apache2triad\htdocs\cake\cake\libs\class_registry.php on line 138
when i change var $name = “Product”;  into var $name = “ppp” it says
 Error: Database table ppp for model Product was not found.

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.