ThinkPHP/Extend/Vendor/TemplateLite/internal/compile.generate_compiler_debug_output.php

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?php

/**

 * Template Lite generate_debug_output template internal module

 *

 * Type:	 template

 * Name:	 generate_debug_output

 */



function generate_compiler_debug_output(&$object)

{

    $debug_output = "\$assigned_vars = \$this->_vars;\n";

    $debug_output .= "ksort(\$assigned_vars);\n";

    $debug_output .= "if (@is_array(\$this->_config[0])) {\n";

    $debug_output .= "    \$config_vars = \$this->_config[0];\n";

    $debug_output .= "    ksort(\$config_vars);\n";

    $debug_output .= "    \$this->assign('_debug_config_keys', array_keys(\$config_vars));\n";

    $debug_output .= "    \$this->assign('_debug_config_vals', array_values(\$config_vars));\n";

    $debug_output .= "}   \n";

	

    $debug_output .= "\$included_templates = \$this->_templatelite_debug_info;\n";



    $debug_output .= "\$this->assign('_debug_keys', array_keys(\$assigned_vars));\n";

    $debug_output .= "\$this->assign('_debug_vals', array_values(\$assigned_vars));\n";

    $debug_output .= "\$this->assign('_debug_tpls', \$included_templates);\n";



	$debug_output .= "\$this->_templatelite_debug_loop = true;\n";

	$debug_output .= "\$this->_templatelite_debug_dir = \$this->template_dir;\n";

	$debug_output .= "\$this->template_dir = TEMPLATE_LITE_DIR . 'internal/';\n";

	$debug_output .= "echo \$this->_fetch_compile('debug.tpl');\n";

	$debug_output .= "\$this->template_dir = \$this->_templatelite_debug_dir;\n";

后面还有 9 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。