简体   繁体   English

Smarty模板PHP脚本和级联

[英]Smarty Template PHP Script and Cascade

I need help. 我需要帮助。 Not sure if anyone has used Cascade CMS but I am using one now and trying to call and display the contents from publicAccess.php. 不知道是否有人使用过Cascade CMS,但是我现在正在使用一个,并尝试从publicAccess.php调用并显示内容。 So I created a page (details.php) in Cascade and inserted this code under the HTML editor. 因此,我在Cascade中创建了一个页面(details.php),并将此代码插入HTML编辑器下。

<span><br /> </span><!--#passthrough
<?php
require_once $_SERVER['ATS_CORE_PHP_LIB_PATH'].'/web/store/shopping/publicAccess.php';
?>
#passthrough-->

But nothing is happening! 但是什么也没发生! No errors and just blank page when I try to access the details.php on my browser. 当我尝试在浏览器上访问details.php时,没有错误,只是空白页。 FYI, in the publicAccess.php file it has some php functions that calls different .tpl (smarty templates) files and inside those .tpl files there are some Bootstrap codes to display tables. 仅供参考,在publicAccess.php文件中,它具有一些php函数,这些函数调用不同的.tpl(智能模板)文件,并且在这些.tpl文件中,有一些Bootstrap代码来显示表格。 So my question is, what else do I have to do in Cascade in order to call this publicAccess.php file to display the contents in my detail.php page?? 所以我的问题是,为了调用此publicAccess.php文件以在我的detail.php页面中显示内容,我还需要在Cascade中做什么?

Thanks for your help in advance. 感谢您的帮助。

J Ĵ

The passthrough code works but it was a bug in the .php that prevented my page to show correctly. 直通代码有效,但这是.php中的一个错误,导致我的页面无法正确显示。 case closed. 结案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM