hi
I have a problem with this ext when I’m trying to run your attached sample, I face this error:
PHP Error
Description
Object of class Invoiceline could not be converted to string
Source File
C:\wamp\www\Yii\framework\web\CDataProvider.php(62)
00050: {
00051: $this->_id=$value;
00052: }
00053:
00054: /**
00055: * @return CPagination the pagination object. If this is false, it means the pagination is disabled.
00056: */
00057: public function getPagination()
00058: {
00059: if($this->_pagination===null)
00060: {
00061: $this->_pagination=new CPagination;
00062: $this->_pagination->pageVar=$this->getId().’_page’;
00063: }
00064: return $this->_pagination;
00065: }
00066:
00067: /**
00068: * @param mixed the pagination to be used by this data provider. This could be a {@link CPagination} object
00069: * or an array used to configure the pagination object. If this is false, it means the pagination should be disabled.
00070: */
00071: public function setPagination($value)
00072: {
00073: if(is_array($value))
00074: {
Stack Trace
#0 C:\wamp\www\Yii\framework\web\CDataProvider.php(75): KeenActiveDataProvider->getPagination()
#1 C:\wamp\www\Yii\framework\base\CComponent.php(152): KeenActiveDataProvider->setPagination()
#2 C:\wamp\www\Yii\framework\web\CActiveDataProvider.php(56): KeenActiveDataProvider->__set()
#3 C:\wamp\www\relatedsearchbehavior\protected\extensions\KeenActiveDataProvider.php(65): KeenActiveDataProvider->__construct()
#4 C:\wamp\www\relatedsearchbehavior\protected\extensions\RelatedSearchBehavior.php(179): KeenActiveDataProvider->__construct()
#5 unknown(0): RelatedSearchBehavior->relatedSearch()
#6 C:\wamp\www\Yii\framework\base\CComponent.php(234): call_user_func_array()
#7 C:\wamp\www\Yii\framework\db\ar\CActiveRecord.php(192): Invoiceline->__call()
#8 C:\wamp\www\relatedsearchbehavior\protected\models\Invoiceline.php(137): Invoiceline->__call()
#9 C:\wamp\www\relatedsearchbehavior\protected\models\Invoiceline.php(137): Invoiceline->relatedSearch()
#10 C:\wamp\www\relatedsearchbehavior\protected\views\site\index.php(15): Invoiceline->search()
#11 C:\wamp\www\Yii\framework\web\CBaseController.php(119): require()
#12 C:\wamp\www\Yii\framework\web\CBaseController.php(88): SiteController->renderInternal()
#13 C:\wamp\www\Yii\framework\web\CController.php(748): SiteController->renderFile()
#14 C:\wamp\www\Yii\framework\web\CController.php(687): SiteController->renderPartial()
#15 C:\wamp\www\relatedsearchbehavior\protected\controllers\SiteController.php( 8 ) : SiteController->render()
#16 C:\wamp\www\Yii\framework\web\actions\CInlineAction.php(32): SiteController->actionIndex()
#17 C:\wamp\www\Yii\framework\web\CController.php(300): CInlineAction->run()
#18 C:\wamp\www\Yii\framework\web\CController.php(278): SiteController->runAction()
#19 C:\wamp\www\Yii\framework\web\CController.php(257): SiteController->runActionWithFilters()
#20 C:\wamp\www\Yii\framework\web\CWebApplication.php(320): SiteController->run()
#21 C:\wamp\www\Yii\framework\web\CWebApplication.php(120): CWebApplication->runController()
#22 C:\wamp\www\Yii\framework\base\CApplication.php(135): CWebApplication->processRequest()
#23 C:\wamp\www\relatedsearchbehavior\index.php(13): CWebApplication->run()