NOTICE: Undefined index: avatar in /www/wwwroot/test.com/protected/tmp/d856a5ab21f08a71ffb29ab2869b4b0a.1758013152.layout.html.php on line 153

519.      $msg "ERROR";
520.      if($errno == E_WARNING)$msg "WARNING";
521.      if($errno == E_NOTICE)$msg "NOTICE";
522.      if($errno == E_STRICT)$msg "STRICT";
523.      if($errno == 8192)$msg "DEPRECATED";
524.      err("$msg$errstr in $errfile on line $errline");
525.  }
526.  function err($msg){
527.      $msg htmlspecialchars($msg);
528.      $traces debug_backtrace();
529.      if(!empty($GLOBALS['err_handler'])){
148.              <!-- 已登录状态显示 -->
149.              <?php if ($user) : ?>
150.              <div class="relative group">
151.                <div class="flex items-center space-x-2 cursor-pointer">
152.                  <div class="w-8 h-8 rounded-full bg-primary flex items-center justify-center text-white font-medium">
153.                    <?php if ($user['avatar']) : ?>
154.                    <img src="<?php echo htmlspecialchars($user['avatar'], ENT_QUOTES"UTF-8"); ?>" alt="头像" class="w-full h-full rounded-full object-cover">
155.                    <?php else : ?>
156.                    <class="fa fa-user"></i>
157.                    <?php endif; ?>
158.                  </div>
396.          $complied_file $this->compile($tempalte_name);
397.          
398.          @ob_start();
399.          extract($this->template_valsEXTR_SKIP);
400.          $_view_obj = & $this;
401.          include $complied_file;
402.          
403.          return ob_get_clean();
404.      
405.      
406.      public function assign($mixed$val ''){
208.          $this->_auto_display false;
209.          
210.          if($return){
211.              return $this->_v->render($tpl_name);
212.          }else{
213.              echo $this->_v->render($tpl_name);
214.          }
215.      }
216.  }
217. 
218.  class Model{
95.  $controller_obj = new $controller_name();
96.  $controller_obj->$action_name();
97. 
98.  if($controller_obj->_auto_display){
99.      $auto_tpl_name = (empty($__module) ? '' $__module.DS).$__controller.'_'.$__action.'.html';
100.      if(file_exists(APP_DIR.DS.'protected'.DS.'view'.DS.$auto_tpl_name))$controller_obj->display($auto_tpl_name);
101.  }
102. 
103.  function url($c 'main'$a 'index'$param = array()){
104.      if(is_array($c)){
105.          $param $c;
3.  header('Access-Control-Allow-Origin: *');
4.  header('Access-Control-Allow-Methods: GET, POST, OPTIONS');
5.  header('Access-Control-Allow-Headers: Content-Type, Authorization, X-Requested-With');
6.  define('APP_DIR'realpath('./'));
7.  define("APP_PATH",dirname(__FILE__));
8.  require(APP_DIR.'/protected/lib/speed.php');