Error

Description

[] operator not supported for strings

Source File

/home2/foundbb2/public_html/registry/protected/controllers/SearchController.php(215)

00203:             'tableRows' => $tableRows,
00204:             'results'        => $results,
00205:             'title'            => $title,
00206:             'listTable' => $listTable,
00207:         ));
00208:     }
00209: 
00210:     public function actionByname()
00211:     {
00212:         $list = $this->atoz();
00213:         $atozList = '';
00214:         foreach ($list as $l){
00215: $atozList[] = '<a href="?letter='.$l['letter'].'">'.strtoupper($l['letter']).'</a>';
00216: } 00217: $atozList = implode (' | ', $atozList); 00218: 00219: $listTable = ''; 00220: 00221: if (!isset($_GET['letter'])){ 00222: $model = Horse::model()->orderbyNameASC()->findAll(); // Horse::model()->retrieveLetter($_GET['letter'])->orderbyNameASC()->findAll(); 00223: $results = count($model); 00224: 00225: $tableRows = '<p></p>'; 00226: 00227: $listTable .= '<table style="width:300px;">';

Stack Trace

#0 /home2/foundbb2/public_html/libraries/yii/framework/web/actions/CInlineAction.php(50): SearchController->actionByname()
#1 /home2/foundbb2/public_html/libraries/yii/framework/web/CController.php(300): CInlineAction->run()
#2 /home2/foundbb2/public_html/libraries/yii/framework/web/CController.php(278): CController->runAction(Object(CInlineAction))
#3 /home2/foundbb2/public_html/libraries/yii/framework/web/CController.php(257): CController->runActionWithFilters(Object(CInlineAction), Array)
#4 /home2/foundbb2/public_html/libraries/yii/framework/web/CWebApplication.php(324): CController->run('byname')
#5 /home2/foundbb2/public_html/libraries/yii/framework/web/CWebApplication.php(121): CWebApplication->runController('search/byname')
#6 /home2/foundbb2/public_html/libraries/yii/framework/base/CApplication.php(135): CWebApplication->processRequest()
#7 /home2/foundbb2/public_html/registry/index.php(12): CApplication->run()
#8 {main}
2024-03-28 08:57:59 Apache Yii Framework/1.1.4