I’m new to yii.
I created two tables joined by FK relation.
I generated the model using gii.
Then i generated the CRUD, gave model name, controllerid same as model name.
It generated successfully.
Now when i go to manage table or create using the CRUD generated i get this error.
Please note i’m using yii-user-management module. Is this problem because of tis as it comes in stack trace.
Description
trim() expects parameter 1 to be string, array given
Source File
C:\wamp\www\yii-framework\framework\web\CUrlManager.php(237)
00225: {
00226: unset($params[$this->routeVar]);
00227: foreach($params as &$param)
00228: if($param===null)
00229: $param=’’;
00230: if(isset($params[’#’]))
00231: {
00232: $anchor=’#’.$params[’#’];
00233: unset($params[’#’]);
00234: }
00235: else
00236: $anchor=’’;
00237: $route=trim($route,’/’);
00238: foreach($this->_rules as $rule)
00239: {
00240: if(($url=$rule->createUrl($this,$route,$params,$ampersand))!==false)
00241: return $rule->hasHostInfo ? $url.$anchor : $this->getBaseUrl().’/’.$url.$anchor;
00242: }
00243: return $this->createUrlDefault($route,$params,$ampersand).$anchor;
00244: }
00245:
00246: /**
00247: * Contructs a URL based on default settings.
00248: * @param string the controller and the action (e.g. article/read)
00249: * @param array list of GET parameters
Stack Trace
#0 C:\wamp\www\yii-framework\framework\web\CUrlManager.php(237): trim()
#1 C:\wamp\www\yii-framework\framework\web\CWebApplication.php(254): CUrlManager->createUrl()
#2 C:\wamp\www\yii-framework\framework\web\auth\CWebUser.php(306): CWebApplication->createUrl()
#3 C:\wamp\www\yii-framework\framework\web\auth\CAccessControlFilter.php(151): YumWebUser->loginRequired()
#4 C:\wamp\www\yii-framework\framework\web\auth\CAccessControlFilter.php(115): CAccessControlFilter->accessDenied()
#5 C:\wamp\www\yii-framework\framework\web\filters\CFilter.php(39): CAccessControlFilter->preFilter()
#6 C:\wamp\www\yii-framework\framework\web\CController.php(999): CAccessControlFilter->filter()
#7 C:\wamp\www\yii-framework\framework\web\filters\CInlineFilter.php(59): TeamLookupCodeController->filterAccessControl()
#8 C:\wamp\www\yii-framework\framework\web\filters\CFilterChain.php(126): CInlineFilter->filter()
#9 C:\wamp\www\yii-framework\framework\web\CController.php(283): CFilterChain->run()
#10 C:\wamp\www\yii-framework\framework\web\CController.php(257): TeamLookupCodeController->runActionWithFilters()
#11 C:\wamp\www\yii-framework\framework\web\CWebApplication.php(320): TeamLookupCodeController->run()
#12 C:\wamp\www\yii-framework\framework\web\CWebApplication.php(120): CWebApplication->runController()
#13 C:\wamp\www\yii-framework\framework\base\CApplication.php(135): CWebApplication->processRequest()
#14 C:\wamp\www\sattaonline\index.php(12): CWebApplication->run()