PHP notice

Undefined index: nation_name

/opt/lampp/htdocs/webmega/protected/views/scholarship/detail.php(12)

01 <!-- Banner top -->
02 <?php $this->widget("BannerTop", array("page"=>$this->page));?>    
03 <!-- End Banner top -->
04 
05 <div class="c1">                    
06     <div class="p posComponent">
07         <div class="posCom-1">
08             <div class="mB mPath">
09                 <div class="breadcrumbs">
10                     <div itemscope itemtype="http://data-vocabulary.org/Breadcrumb" style="float:right">
11                         <a  itemprop="url" href="<?php echo Url::CreateUrl("scholarship/nation", array("nationAlias"=>$scholarship["alias"], "id"=>$scholarship["nationId"]));?>">
12                             <span itemprop="title"><?php echo "Học Bổng ". ltrim($scholarship["nation_name"], "Du học");?></span>
13                         </a>                    
14                     </div>
15                     <div itemscope itemtype="http://data-vocabulary.org/Breadcrumb" style="float:right">
16                         <a  itemprop="url" href="<?php echo Url::CreateUrl("scholarship/continent", array("continentAlias"=>str_replace("du-hoc-", "", $scholarship["continent_alias"]), "id"=>$scholarship["continentId"]));?>">
17                             <span itemprop="title"><?php echo "Học Bổng ". ltrim($scholarship["continent_name"], "Du học");?></span>
18                         </a>
19                         <img src="<?php echo Yii::app()->createUrl('themes'); ?>/images/arrow.png" title="Tin tức" alt="Tin tức" /> 
20                     </div>
21                     <div itemscope itemtype="http://data-vocabulary.org/Breadcrumb" style="float:right">
22                         <a  itemprop="url" href="<?php echo Url::CreateUrl("scholarship/index");?>">
23                             <span itemprop="title">Học Bổng</span>
24                         </a>

Stack Trace

#4
+
 /opt/lampp/htdocs/webmega/protected/controllers/ScholarshipController.php(44): CController->render()
39             $this->metaKeywords = $scholarship["meta_keyword"];
40 
41         $this->urlShare = Common::getImage($scholarship["picture"], "news", $scholarship["create_date"], "medium");    
42             
43         $this->render("detail", array("scholarship" => $scholarship,
44                 "lastestScholarship" => $lastestScholarship));
45     }
46 
47     public function actionIndex()
48     {
49         $currentPage = (int) Yii::app()->getRequest()->getParam('page', 1);
#12
+
 /opt/lampp/htdocs/webmega/index.php(29): CApplication->run()
24 date_default_timezone_set("Asia/Ho_Chi_Minh");
25 
26 defined('YII_DEBUG') || define('YII_DEBUG', true);
27 require_once dirname(__FILE__) . '/framework/yii.php';
28 Yii::createWebApplication(dirname(__FILE__) . '/protected/config/main.php')->
29     run();
30 
31     
2024-03-29 05:17:15 Apache Yii Framework/1.1.10