Hi
1.I have downloaded the Yii shop plugin and after extracting I have pasted in modules folder.
2.Changed my config file to
return array(
[…]
‘modules’ => array(‘shop’ => array( ‘debug’ => ‘true’)),
[…]
3.to install yii I have changed my URL as mywebsitename.index.php?r=shop/products/index after that I have encountered below error .
############ Error ########################
CDbException
The table "shop_products" for active record class "Products" cannot be found in the database.
D:\wamp\www\yii_module\framework\db\ar\CActiveRecord.php(2276)
2264 private $_model;
2265
2266 /**
2267 * Constructor.
2268 * @param CActiveRecord $model the model instance
2269 */
2270 public function __construct($model)
2271 {
2272 $this->_model=$model;
2273
2274 $tableName=$model->tableName();
2275 if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null)
2276 throw new CDbException(Yii::t(‘yii’,‘The table “{table}” for active record class “{class}” cannot be found in the database.’,
2277 array(’{class}’=>get_class($model),’{table}’=>$tableName)));
2278 if($table->primaryKey===null)
2279 {
2280 $table->primaryKey=$model->primaryKey();
2281 if(is_string($table->primaryKey) && isset($table->columns[$table->primaryKey]))
2282 $table->columns[$table->primaryKey]->isPrimaryKey=true;
2283 else if(is_array($table->primaryKey))
2284 {
2285 foreach($table->primaryKey as $name)
2286 {
2287 if(isset($table->columns[$name]))
2288 $table->columns[$name]->isPrimaryKey=true;
Please any one help in this regard