vvshevelev писал(а):Написали простенький веб интерфейс для просмотра журнала транзакций по кассе.
С его помощью можно только просматривать активность по кассе
Написано на yii+bootstrap
Инсталяция:
1. Зависимости - apache2, php5 php5-pgsql (на убунту apt-get install php5-pgsql apache2)
2. Далее разархивируем в каталог вебсервера обе папки, и поправим в файле ./cash/protected/config/main.php 71 строку - в ней нужно прописать IP адрес хоста с базой. ВАЖНО если зост не локальный, то нужно разрешить удаленные подключения к POSTGRESQL
Для подключения в браузере открываем
http://IPADRESS/cash/
Ubuntu 12.4 desktop
postgresql 9.1
http://localhost/cash/CDbException
CDbConnection failed to open the DB connection: SQLSTATE[08006] [7] FATAL: password authentication failed for user "postgres"
FATAL: password authentication failed for user "postgres"
/var/www/framework/db/CDbConnection.php(382)
370 throw new CDbException(Yii::t('yii','CDbConnection.connectionString cannot be empty.'));
371 try
372 {
373 Yii::trace('Opening DB connection','system.db.CDbConnection');
374 $this->_pdo=$this->createPdoInstance();
375 $this->initConnection($this->_pdo);
376 $this->_active=true;
377 }
378 catch(PDOException $e)
379 {
380 if(YII_DEBUG)
381 {
382 throw new CDbException(Yii::t('yii','CDbConnection failed to open the DB connection: {error}',
383 array('{error}'=>$e->getMessage())),(int)$e->getCode(),$e->errorInfo);
384 }
385 else
386 {
387 Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException');
388 throw new CDbException(Yii::t('yii','CDbConnection failed to open the DB connection.'),(int)$e->getCode(),$e->errorInfo);
389 }
390 }
391 }
392 }
393
394 /**