页面加载但仅显示标题,其余内容为空白 [英] page loads but only header is displayed and rest of the content is blank

查看:90
本文介绍了页面加载但仅显示标题,其余内容为空白的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下代码,它是从.dwt模板生成的。我的问题是页面加载但只显示标题部分,并且不显示其余内容。在我的本地测试服务器上一切正常,但是当我上传托管服务器时问题浮出水面。我不知道为什么?请仔细阅读下面的代码:

i have the following code which is generated from a .dwt template. My problem is that the page loads but only the header part displays and rest of the contents are not displayed. Everything works fine in my local testing server but when i upload it the hosting server the problem surfaces. I am not sure why? Please kindly go through my code below:

展开 | 选择 | Wrap | 行号

推荐答案

会话必须初始化,之前任何输出都发送到浏览器。
sessions have to be initialized, before any output is sent to the browser.


@Dormilich


是的,你是对的,会话已经在会话类中初始化了。我包含会话类,然后在使用该类之前在每个页面中声明全局变量
@Dormilich
Yes you are right and the session has already been initialized in the session class itself . I include the session class and then declare global variable


会话。因此,我觉得应该没有任何问题。
session in every page before using the class. Thus, i feel there should not be any problem.


这篇关于页面加载但仅显示标题,其余内容为空白的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆