PHPTAL_VariableNotFoundException [ Error ]:
Array doesn't have key named 'lbl_date_deadline'
91 <img src="${array_contents/link_icon}" class="img-circle pull-left" style="margin-right:5px;" /> 92 <a href="" tal:attributes="href array_contents/url_site | default" tal:content="array_contents/title_sites | default" target="site">Site Title</a><br /> 93 <span tal:content="array_contents/title_contents | default">Title</span><br /> 94 <div class="clearfix"></div> 95 <hr /> 96 <tal:block define="global message_deadline string:${label/lbl_date_deadline}:${array_contents/date_deadline}" /> 97 <p style="color:#ff0000;" tal:content="message_deadline" tal:condition="exists:array_contents/date_deadline"></p> 98 <p><pre style="overflow-x: visible; white-space: pre-wrap;" tal:content="array_contents/description | default">Description</pre></p> 99 <div class="clearfix"></div> 100 <img src="${array_contents/link_image}" class="img-responsive img-thumbnail pull-left" /> 101 <div class="clearfix"></div>
438 } 439 440 if ($nothrow) 441 return null; 442 443 PHPTAL_Context::pathError($base, $path, $current, $prev); 444 } 445 446 // string handling 447 if (is_string($base)) { 448 // virtual methods provided by phptal
217<div class=clearfix></div> 218 <?php /* tag "hr" from line 95 */; ?> 219<hr> 220 <?php 221 /* tag "tal:block" from line 96 */ ; 222 $tpl->getGlobalContext()->message_deadline = ($ctx->path($ctx->label, 'lbl_date_deadline')).':'.($ctx->path($ctx->array_contents, 'date_deadline')) ; 223?> 224 225 <?php 226 /* tag "p" from line 97 */ ; 227 if (phptal_true((null !== $ctx->path($ctx, 'array_contents'."/".'date_deadline', true)))): ;
662 663 $templateFunction = $this->getFunctionName(); 664 665 try { 666 ob_start(); 667 $templateFunction($this, $this->_context); 668 $res = ob_get_clean(); 669 } 670 catch (Exception $e) 671 { 672 ob_end_clean();
29 foreach($this->get_data() as $key => $value) 30 { 31 $parser->set($key,$value); 32 } 33 $parser->setTemplate($file); 34 return $parser->execute(); 35 } 36 catch (\Exception $e) 37 { 38 // Delete the output buffer & re-throw the exception 39 ob_end_clean();
560 { 561 throw new \FuelException('You must set the file to use within your view before rendering'); 562 } 563 564 // combine local and global data and capture the output 565 $return = $this->process_file(); 566 567 // restore the current language setting 568 $this->active_language and \Config::set('language', $current_language); 569 570 // and the active request class
268 269 $this->before(); 270 $this->{$this->_method}(); 271 $this->after(); 272 273 $return = $this->_view->render(); 274 275 if (class_exists('Request', false)) 276 { 277 Request::active($current_request); 278 }
285 */ 286 public function __toString() 287 { 288 try 289 { 290 return $this->render(); 291 } 292 catch (\Exception $e) 293 { 294 \Error::exception_handler($e); 295
350 * 351 * @return string 352 */ 353 public function __toString() 354 { 355 return (string) $this->body; 356 } 357}
75 throw $e; 76 } 77} 78 79// Render the output 80$response->body((string) $response); 81 82// This will add the execution time and memory usage to the output. 83// Comment this out if you don't use it. 84if (strpos($response->body(), '{exec_time}') !== false or strpos($response->body(), '{mem_usage}') !== false) 85{