ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 1047


Ignore:
Timestamp:
Dec 6, 2006, 3:12:48 PM (13 years ago)
Author:
ogawa
Message:

ext_includeで変数渡しに対応

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/ogawa/prj_new_tpl_structure/webapp/lib/smarty_plugins/function.ext_include.php

    r2 r1047  
    2626    $tpl = 'file:' . $tpl;
    2727
    28     $params['smarty_include_tpl_file'] = $tpl;
    29     $params['smarty_include_vars'] = array();
    30     $smarty->_smarty_include($params);
     28    $arg_list = $params;
     29    unset($arg_list['file']);
     30
     31    $p = array();
     32    $p['smarty_include_tpl_file'] = $tpl;
     33    $p['smarty_include_vars'] = $arg_list;
     34    $smarty->_smarty_include($p);
    3135    return;
    3236}
Note: See TracChangeset for help on using the changeset viewer.