示例#1
0
 /**
  *  Uses ActionControllers render_partial method.
  *  @todo Document this API
  */
 function render_partial($path, $options = array())
 {
     $locals = $this->preparse_body;
     if (is_array($options['locals']) && is_array($locals)) {
         $options['locals'] = array_merge($locals, $options['locals']);
     } elseif (is_array($locals)) {
         $options['locals'] = $locals;
     }
     $ar = new ActionController();
     $ar->views_path = $this->template_path;
     $ar->render_partial($path, $options);
 }