C:\wamp\www\yii\framework\web\helpers\CHtml.php(1622)
1610 $content.="<li>$error</li>\n"; 1611 if($firstError) 1612 break; 1613 } 1614 } 1615 } 1616 if($content!=='') 1617 { 1618 if($header===null) 1619 $header='<p>'.Yii::t('yii','Please fix the following input errors:').'</p>'; 1620 if(!isset($htmlOptions['class'])) 1621 $htmlOptions['class']=self::$errorSummaryCss; 1622 return self::tag('div',$htmlOptions,$header."\n<ul>\n$content</ul>".$footer); 1623 } 1624 else 1625 return ''; 1626 } 1627 1628 /** 1629 * Displays the first validation error for a model attribute. 1630 * @param CModel $model the data model 1631 * @param string $attribute the attribute name 1632 * @param array $htmlOptions additional HTML attributes to be rendered in the container div tag. 1633 * This parameter has been available since version 1.0.7. 1634 * @return string the error display. Empty if no errors are found.
#0 |
+
–
C:\wamp\www\yii\framework\web\widgets\CActiveForm.php(507): CHtml::errorSummary(Lawyer, User, null, array()) 502 * @see CHtml::errorSummary 503 */ 504 public function errorSummary($models,$header=null,$footer=null,$htmlOptions=array()) 505 { 506 if(!$this->enableAjaxValidation && !$this->enableClientValidation) 507 return CHtml::errorSummary($models,$header,$footer,$htmlOptions); 508 509 if(!isset($htmlOptions['id'])) 510 $htmlOptions['id']=$this->id.'_es_'; 511 $html=CHtml::errorSummary($models,$header,$footer,$htmlOptions); 512 if($html==='') |
#1 |
+
–
C:\wamp\www\hewage\protected\views\lawyer\_form.php(10): CActiveForm->errorSummary(Lawyer, User) 05 'enableAjaxValidation'=>false, 06 )); ?> 07 08 <p class="note">Fields with <span class="required">*</span> are required.</p> 09 10 <?php echo $form->errorSummary($model,$model2); ?> 11 12 <div class="row"> 13 <?php echo $form->labelEx($model,'name'); ?> 14 <?php echo $form->textField($model,'name',array('size'=>50,'maxlength'=>50)); ?> 15 <?php echo $form->error($model,'name'); ?> |
#2 |
+
–
C:\wamp\www\yii\framework\web\CBaseController.php(119): require("C:\wamp\www\hewage\protected\views\lawyer\_form.php") 114 $data=$_data_; 115 if($_return_) 116 { 117 ob_start(); 118 ob_implicit_flush(false); 119 require($_viewFile_); 120 return ob_get_clean(); 121 } 122 else 123 require($_viewFile_); 124 } |
#3 |
+
–
C:\wamp\www\yii\framework\web\CBaseController.php(88): CBaseController->renderInternal("C:\wamp\www\hewage\protected\views\lawyer\_form.php", array("model" => Lawyer, "model2" => User), true) 83 { 84 $widgetCount=count($this->_widgetStack); 85 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 86 $content=$renderer->renderFile($this,$viewFile,$data,$return); 87 else 88 $content=$this->renderInternal($viewFile,$data,$return); 89 if(count($this->_widgetStack)===$widgetCount) 90 return $content; 91 else 92 { 93 $widget=end($this->_widgetStack); |
#4 |
+
–
C:\wamp\www\yii\framework\web\CController.php(866): CBaseController->renderFile("C:\wamp\www\hewage\protected\views\lawyer\_form.php", array("model" => Lawyer, "model2" => User), true) 861 */ 862 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 863 { 864 if(($viewFile=$this->getViewFile($view))!==false) 865 { 866 $output=$this->renderFile($viewFile,$data,true); 867 if($processOutput) 868 $output=$this->processOutput($output); 869 if($return) 870 return $output; 871 else |
#5 |
+
–
C:\wamp\www\hewage\protected\views\lawyer\create.php(15): CController->renderPartial("_form", array("model" => Lawyer, "model2" => User)) 10 ); 11 ?> 12 13 <h1>Create Lawyer</h1> 14 15 <?php echo $this->renderPartial('_form', array('model'=>$model,'model2'=>$model2)); ?> |
#6 |
+
–
C:\wamp\www\yii\framework\web\CBaseController.php(119): require("C:\wamp\www\hewage\protected\views\lawyer\create.php") 114 $data=$_data_; 115 if($_return_) 116 { 117 ob_start(); 118 ob_implicit_flush(false); 119 require($_viewFile_); 120 return ob_get_clean(); 121 } 122 else 123 require($_viewFile_); 124 } |
#7 |
+
–
C:\wamp\www\yii\framework\web\CBaseController.php(88): CBaseController->renderInternal("C:\wamp\www\hewage\protected\views\lawyer\create.php", array("model" => Lawyer, "model2" => User), true) 83 { 84 $widgetCount=count($this->_widgetStack); 85 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 86 $content=$renderer->renderFile($this,$viewFile,$data,$return); 87 else 88 $content=$this->renderInternal($viewFile,$data,$return); 89 if(count($this->_widgetStack)===$widgetCount) 90 return $content; 91 else 92 { 93 $widget=end($this->_widgetStack); |
#8 |
+
–
C:\wamp\www\yii\framework\web\CController.php(866): CBaseController->renderFile("C:\wamp\www\hewage\protected\views\lawyer\create.php", array("model" => Lawyer, "model2" => User), true) 861 */ 862 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 863 { 864 if(($viewFile=$this->getViewFile($view))!==false) 865 { 866 $output=$this->renderFile($viewFile,$data,true); 867 if($processOutput) 868 $output=$this->processOutput($output); 869 if($return) 870 return $output; 871 else |
#9 |
+
–
C:\wamp\www\yii\framework\web\CController.php(779): CController->renderPartial("create", array("model" => Lawyer, "model2" => User), true) 774 */ 775 public function render($view,$data=null,$return=false) 776 { 777 if($this->beforeRender($view)) 778 { 779 $output=$this->renderPartial($view,$data,true); 780 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 781 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 782 783 $this->afterRender($view,$output); 784 |
#10 |
+
–
C:\wamp\www\hewage\protected\controllers\LawyerController.php(100): CController->render("create", array("model" => Lawyer, "model2" => User)) 095 } 096 097 $this->render('create',array( 098 'model'=>$model, 099 'model2'=>$model2, 100 )); 101 } 102 103 /** 104 * Updates a particular model. 105 * If update is successful, the browser will be redirected to the 'view' page. |
#11 |
+
–
C:\wamp\www\yii\framework\web\actions\CInlineAction.php(50): LawyerController->actionCreate() 45 $controller=$this->getController(); 46 $method=new ReflectionMethod($controller, $methodName); 47 if($method->getNumberOfParameters()>0) 48 return $this->runWithParamsInternal($controller, $method, $params); 49 else 50 return $controller->$methodName(); 51 } 52 53 } |
#12 |
+
–
C:\wamp\www\yii\framework\web\CController.php(300): CInlineAction->runWithParams(array("r" => "lawyer/create")) 295 { 296 $priorAction=$this->_action; 297 $this->_action=$action; 298 if($this->beforeAction($action)) 299 { 300 if($action->runWithParams($this->getActionParams())===false) 301 $this->invalidActionParams($action); 302 else 303 $this->afterAction($action); 304 } 305 $this->_action=$priorAction; |
#13 |
+
–
C:\wamp\www\yii\framework\web\filters\CFilterChain.php(134): CController->runAction(CInlineAction) 129 $filter=$this->itemAt($this->filterIndex++); 130 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 131 $filter->filter($this); 132 } 133 else 134 $this->controller->runAction($this->action); 135 } 136 } |
#14 |
+
–
C:\wamp\www\yii\framework\web\filters\CFilter.php(41): CFilterChain->run() 36 */ 37 public function filter($filterChain) 38 { 39 if($this->preFilter($filterChain)) 40 { 41 $filterChain->run(); 42 $this->postFilter($filterChain); 43 } 44 } 45 46 /** |
#15 |
+
–
C:\wamp\www\yii\framework\web\CController.php(1144): CFilter->filter(CFilterChain) 1139 */ 1140 public function filterAccessControl($filterChain) 1141 { 1142 $filter=new CAccessControlFilter; 1143 $filter->setRules($this->accessRules()); 1144 $filter->filter($filterChain); 1145 } 1146 1147 /** 1148 * Generates pagination information. 1149 * This method can be used to generate pagination information given item count |
#16 |
+
–
C:\wamp\www\yii\framework\web\filters\CInlineFilter.php(59): CController->filterAccessControl(CFilterChain) 54 * @param CFilterChain $filterChain the filter chain that the filter is on. 55 */ 56 public function filter($filterChain) 57 { 58 $method='filter'.$this->name; 59 $filterChain->controller->$method($filterChain); 60 } 61 } |
#17 |
+
–
C:\wamp\www\yii\framework\web\filters\CFilterChain.php(131): CInlineFilter->filter(CFilterChain) 126 { 127 if($this->offsetExists($this->filterIndex)) 128 { 129 $filter=$this->itemAt($this->filterIndex++); 130 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 131 $filter->filter($this); 132 } 133 else 134 $this->controller->runAction($this->action); 135 } 136 } |
#18 |
+
–
C:\wamp\www\yii\framework\web\CController.php(283): CFilterChain->run() 278 $this->runAction($action); 279 else 280 { 281 $priorAction=$this->_action; 282 $this->_action=$action; 283 CFilterChain::create($this,$action,$filters)->run(); 284 $this->_action=$priorAction; 285 } 286 } 287 288 /** |
#19 |
+
–
C:\wamp\www\yii\framework\web\CController.php(257): CController->runActionWithFilters(CInlineAction, array("accessControl")) 252 { 253 if(($parent=$this->getModule())===null) 254 $parent=Yii::app(); 255 if($parent->beforeControllerAction($this,$action)) 256 { 257 $this->runActionWithFilters($action,$this->filters()); 258 $parent->afterControllerAction($this,$action); 259 } 260 } 261 else 262 $this->missingAction($actionID); |
#20 |
+
–
C:\wamp\www\yii\framework\web\CWebApplication.php(277): CController->run("create") 272 { 273 list($controller,$actionID)=$ca; 274 $oldController=$this->_controller; 275 $this->_controller=$controller; 276 $controller->init(); 277 $controller->run($actionID); 278 $this->_controller=$oldController; 279 } 280 else 281 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 282 array('{route}'=>$route===''?$this->defaultController:$route))); |
#21 |
+
–
C:\wamp\www\yii\framework\web\CWebApplication.php(136): CWebApplication->runController("lawyer/create") 131 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 132 $_GET[$name]=$value; 133 } 134 else 135 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 136 $this->runController($route); 137 } 138 139 /** 140 * Registers the core application components. 141 * This method overrides the parent implementation by registering additional core components. |
#22 |
+
–
C:\wamp\www\yii\framework\base\CApplication.php(158): CWebApplication->processRequest() 153 */ 154 public function run() 155 { 156 if($this->hasEventHandler('onBeginRequest')) 157 $this->onBeginRequest(new CEvent($this)); 158 $this->processRequest(); 159 if($this->hasEventHandler('onEndRequest')) 160 $this->onEndRequest(new CEvent($this)); 161 } 162 163 /** |
#23 |
+
–
C:\wamp\www\hewage\index.php(13): CApplication->run() 08 defined('YII_DEBUG') or define('YII_DEBUG',true); 09 // specify how many levels of call stack should be shown in each log message 10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 11 12 require_once($yii); 13 Yii::createWebApplication($config)->run(); |