Fuel\Core\PhpErrorException [ Warning ]:
get_class() expects parameter 1 to be object, null given
236 foreach ($value as $k => $v) 237 { 238 $value[$k] = static::htmlentities($v, $flags, $encoding, $double_encode); 239 } 240 } 241 elseif ($value instanceof \Iterator or get_class($value) == 'stdClass') 242 { 243 // Add to $already_cleaned variable 244 $already_cleaned[] = $value; 245 246 foreach ($value as $k => $v)
98 include COREPATH.'classes/errorhandler.php'; 99 class_alias('\Fuel\Core\Errorhandler', 'Errorhandler'); 100 class_alias('\Fuel\Core\PhpErrorException', 'PhpErrorException'); 101 } 102 103 return \Errorhandler::error_handler($severity, $message, $filepath, $line); 104}); 105 106function setup_autoloader() 107{ 108 \Autoloader::add_namespace('Fuel\\Core', COREPATH.'classes/');
236 foreach ($value as $k => $v) 237 { 238 $value[$k] = static::htmlentities($v, $flags, $encoding, $double_encode); 239 } 240 } 241 elseif ($value instanceof \Iterator or get_class($value) == 'stdClass') 242 { 243 // Add to $already_cleaned variable 244 $already_cleaned[] = $value; 245 246 foreach ($value as $k => $v)
639 * @param string $value 640 * @return string 641 */ 642 public function prep_value($value) 643 { 644 $value = \Security::htmlentities($value, ENT_QUOTES); 645 646 return $value; 647 } 648 649 /**
569 (in_array((string) $key, $selected, true)) && $opt_attr[] = 'selected'; 570 $input .= str_repeat("\t", $level); 571 $opt_attr['value'] = ($current_obj->get_config('prep_value', true) && empty($attributes['dont_prep'])) ? 572 $current_obj->prep_value($opt_attr['value']) : $opt_attr['value']; 573 $val = ($current_obj->get_config('prep_value', true) && empty($attributes['dont_prep'])) ? 574 $current_obj->prep_value($val) : $val; 575 $input .= html_tag('option', $opt_attr, $val).PHP_EOL; 576 } 577 } 578 unset($attributes['dont_prep']); 579
579 580 return $input; 581 }; 582 583 // generate the select options list 584 $input = $listoptions($options, $selected).str_repeat("\t", 0); 585 586 if (empty($attributes['id']) && $this->get_config('auto_id', false) == true) 587 { 588 $attributes['id'] = $this->get_config('auto_id_prefix', '').$attributes['name']; 589 }
265 * @param array $attributes 266 * @return string 267 */ 268 public static function select($field, $values = null, array $options = array(), array $attributes = array()) 269 { 270 return static::$instance->select($field, $values, $options, $attributes); 271 } 272 273 /** 274 * Create a label field 275 *
95 <?php 96 $grouparray = array('id'=>'group' 97 , 'class'=>'form-control' 98 , 'style'=>'width:90%' 99 , 'disabled'=>'disabled'); 100 echo Form::select('group' 101 , '1' 102 , common::get_authgroups() 103 , $grouparray); 104 ?></span> 105 </div><!-- /.form-group -->
239 ob_start(); 240 241 try 242 { 243 // Load the view within the current scope 244 include $__file_name; 245 } 246 catch (\Exception $e) 247 { 248 // Delete the output buffer 249 ob_end_clean();
255 // Get the captured output and close the buffer 256 return ob_get_clean(); 257 }; 258 259 // import and process the view file 260 $result = $clean_room($file_override ?: $this->file_name, $data = $this->get_data()); 261 262 // disable sanitization on objects that support it 263 $this->unsanitize($data); 264 265 // return the result
660 { 661 throw new \FuelException('You must set the file to use within your view before rendering'); 662 } 663 664 // combine local and global data and capture the output 665 $return = $this->process_file(); 666 667 // restore the current language setting 668 $this->active_language and \Config::set('language', $current_language); 669 670 // and the active request class
208 */ 209 public function __toString() 210 { 211 try 212 { 213 return $this->render(); 214 } 215 catch (\Exception $e) 216 { 217 \Errorhandler::exception_handler($e); 218
30 <?php echo Asset::js('bo_common.js'); ?> 31 <?php echo Asset::js('bo_validation.js'); ?> 32 33 </head> 34 <body> 35 <?php echo $content; ?> 36 </body> 37 <!-- javascript --> 38 <script type="text/javascript"> 39 var baseurl = "<?php echo Uri::base(); ?>" 40 </script>
239 ob_start(); 240 241 try 242 { 243 // Load the view within the current scope 244 include $__file_name; 245 } 246 catch (\Exception $e) 247 { 248 // Delete the output buffer 249 ob_end_clean();
255 // Get the captured output and close the buffer 256 return ob_get_clean(); 257 }; 258 259 // import and process the view file 260 $result = $clean_room($file_override ?: $this->file_name, $data = $this->get_data()); 261 262 // disable sanitization on objects that support it 263 $this->unsanitize($data); 264 265 // return the result
660 { 661 throw new \FuelException('You must set the file to use within your view before rendering'); 662 } 663 664 // combine local and global data and capture the output 665 $return = $this->process_file(); 666 667 // restore the current language setting 668 $this->active_language and \Config::set('language', $current_language); 669 670 // and the active request class
208 */ 209 public function __toString() 210 { 211 try 212 { 213 return $this->render(); 214 } 215 catch (\Exception $e) 216 { 217 \Errorhandler::exception_handler($e); 218
377 * 378 * @return string 379 */ 380 public function __toString() 381 { 382 return (string) $this->body; 383 } 384}
108 $response = $routerequest('_500_', $e); 109} 110 111// This will add the execution time and memory usage to the output. 112// Comment this out if you don't use it. 113$response->body((string) $response); 114if (strpos($response->body(), '{exec_time}') !== false or strpos($response->body(), '{mem_usage}') !== false) 115{ 116 $bm = Profiler::app_total(); 117 $response->body( 118 str_replace(