Yii Framework Forum: Yii shop installation - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Yii shop installation How to install yii shop plugin Rate Topic: -----

#1 User is offline   senthil.keys 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 27-December 11

Posted 27 December 2011 - 01:03 PM

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

Attached File(s)


0

#2 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 27 December 2011 - 01:35 PM

/* moved to Extensions forum */
"Less noise - more signal"
0

#3 User is offline   senthil.keys 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 27-December 11

Posted 27 December 2011 - 01:39 PM

Hi

I have found issue We have to give URL

websitename/index.php?r=shop/install

Please make use of it
1

#4 User is offline   leo4all 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 30
  • Joined: 01-April 13
  • Location:Alajuela, Costa Rica

Posted 14 May 2013 - 05:54 PM

View Postsenthil.keys, on 27 December 2011 - 01:39 PM, said:

Hi

I have found issue We have to give URL

websitename/index.php?r=shop/install

Please make use of it


I tried both url paths to make this work. But still having same issue

The table "shop_category" for active record class "Category" cannot be found in the database.
0

#5 User is offline   rakeshj 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 13-January 14

Posted 13 January 2014 - 02:54 AM

hi,
plz any one help me how to install yiishop..and how to proceed further steps.


than's adv..
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users