Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/file/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/magento/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
File 如何将文件1包含到magento中的另一个文件中_File_Magento_Include - Fatal编程技术网

File 如何将文件1包含到magento中的另一个文件中

File 如何将文件1包含到magento中的另一个文件中,file,magento,include,File,Magento,Include,我的模板的目录文件夹中有2个文件。我想将一个文件包含到另一个文件中,我尝试了简单的php“require('html2fdf.php');”方法,但它不起作用。请告诉我如何将此文件包含到其他文件中。在Magento中,您可以使用getChildHtml包含块 Magento使用布局和块概念。 因此,您需要使用一些xml和块类文件创建一个块。此外,您还需要确保您的块位于正确的布局句柄中

我的模板的目录文件夹中有2个文件。我想将一个文件包含到另一个文件中,我尝试了简单的php“require('html2fdf.php');”方法,但它不起作用。请告诉我如何将此文件包含到其他文件中。

在Magento中,您可以使用getChildHtml包含块

Magento使用布局和块概念。 因此,您需要使用一些xml和块类文件创建一个块。此外,您还需要确保您的块位于正确的布局句柄中