PHP notice

Undefined variable: birdlist

/home/birdcom/domains/birdwatchingvietnam.net/public_html/protected/controllers/PhotographerController.php(23)

11             $criteria->condition = "photographer like '" . $searchby . "'";      
12             $criteria->select = 'birdID';
13             $listbirdid = Birdimages::model()->findAll($criteria);
14             
15             $arr = CHtml::listData($listbirdid, 'birdID', 'birdID');
16             $ids = implode(",",$arr);
17             $birdlist = Bird::model()->getBirdByEnglishNameAndIds($ids);
18             
19             $tempBirdimages = Birdimages::model()->find("photographer like '" . $searchby . "'");
20         }
21         // Data
22         $data = array(
23             'birdlist' => $birdlist,
24             'tempBirdimages' => $tempBirdimages,
25             'searchby' => $searchby,
26         );
27         
28         // Load views
29         $this->pageTitle = 'Vietnam Bird Guide - The Birds of Vietnam and ASEAN';
30         $this->seo_description = 'Guide to the birds of Vietnam and Southeast Asia Countries including Brunei Darussalam, Cambodia, Indonesia, Lao PDR, Malaysia, Myanmar, Philippines, Singapore, Thailand.';
31         
32         $this->seo_keyword='asia birder, oriental birds, wildtour, birding 2 asia, birding vietnam, vietnam birding, birding tours, vietnam birdwatching, birding guide, wildlife, vietnam national parks, birding tour company, Cuc Phuong, Cat Tien, Tam dao, Lo Xo, Sai Gon, Bach Ma, Phong Nha, Ke Bang, birding maps,Xuan Thuy, Di Linh, Tan Phu, deo Nui san, Nguyen Hoai Bao, Bjoin anderson, Nick Dimond, Hugh Buck, Da Lat city, langbiang, Tan Phu park, Thac Mai, Nha Trang, Phan Thiet, Ninh Chu, Vinh Hy, Buon Don, Con Dao Island, Phu Quoc Island Du lịch sinh thái, dã ngoại, xem chim, asia birder, oriental birds, wildtour, birding 2 asia, birding vietnam, vietnam birding, birding tours, vietnam birdwatching, birding guide, wildlife, vietnam national parks, birding tour company, Cuc Phuong, Cat Tien, Tam dao, Lo Xo, Sai Gon, Bach Ma, Phong Nha, Ke Bang, birding maps,Xuan Thuy, Di Linh, Tan Phu, deo Nui san, Nguyen Hoai Bao, Bjoin anderson, Nick Dimond, Hugh Buck, Da Lat city, langbiang, Tan Phu park, Thac Mai, Nha Trang, Phan Thiet, Ninh Chu, Vinh Hy, Buon Don, Con Dao Island, Phu Quoc Island';
33        
34        
35         $this->render('index', $data);

Stack Trace

#7
+
 /home/birdcom/domains/birdwatchingvietnam.net/public_html/index.php(12): CApplication->run()
07 defined('YII_DEBUG') or define('YII_DEBUG',true);
08 // specify how many levels of call stack should be shown in each log message
09 //defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
10 require_once($yii);
11 
12 Yii::createWebApplication($config)->run();
13 
14 
2024-03-28 19:57:42 Apache/2 Yii Framework/1.1.13