最佳实践 - 不变页面布局 [英] Best Practice - Constant Page Layouts

查看:63
本文介绍了最佳实践 - 不变页面布局的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Everyone:


我正在寻找一种更简单的方法来开发页面。我最新的

网站, www.Base2WebDesign.com ,完整相同的布局

整个网站。现在我使用一个名为page_top()的函数。和

page_bottom()"当被叫时,显示

页面的顶部和底部。我只需要在实际的index.php页面上调用那两个

函数,然后在该页面上写下主要内容。这似乎是傻瓜,但它似乎有效。我想使用模板,但是我不知道他们对我们有多了解,而且我还没有发现任何只是为了简单易用而且易于使用的b
。如果有人能指出我在

中直接开发具有一致布局的页面

,并且在主要部分上有动态内容。的页面,我将永远感激
。再一次,我想使用模板,因为从我看到它们看起来就像我需要的那样。任何人都可以指导我,并且非常简单,直接,易于使用

模板系统(如果这是我确实需要的那样)可以加速

上传页面而不是在每个页面上点击服务器

加载相同的页面布局?此外,我目前建立

页面的方式可能是错误的,但可能有一个解决方案页面

" blinking"第一个

时间从一个页面切换到下一个页面时。当您返回到同一页面时,没有闪烁。谢谢

这么多人可以解决我上面列出的任何问题!

Hello Everyone:

I am in search of an easier way to develop pages. My most current
website, www.Base2WebDesign.com, has the exact same layout throughout
the entire site. Right now I use a function called "page_top()" and
page_bottom()" that , when called, display the tops and bottoms of
pages. All I have to do on the actual index.php page is call those two
functions and then write the main content on that page. This seems
stupid but it seems to work. I would like to use templates but I
don''t know much about them and I have yet to find anything that just
screams simplicity to me and ease of use. If anyone could point me in
the right direct for developing pages that have a consistent layout
with dynamic content on the "main section" of the page, I would be
forever grateful. Again, I would like to use templates because from
what I have seen they look like they are what I need. Can anyone
direct me toward and very simple, straight-forward, easy-to-use
template system (if this is what I indeed would need) that could speed
up the rendering of the pages without hitting the server on each page
load for the same page layout? Also, my current way of building the
page may be to fault but might there be a solution to the pages
"blinking" when you switch from one pages to the next for the first
time. When you return to that same page there is no blink. Thank you
so much to anyone and everyone that can solve any of the problems I
have listed above!

推荐答案

在文章< 11 ********************** @ l77g2000hsb.googlegroups .com> ;,
ju************@gmail.com 说.. 。
In article <11**********************@l77g2000hsb.googlegroups .com>,
ju************@gmail.com says...

大家好:


我正在寻找一种更简单的方法来开发页面。我最新的

网站, www.Base2WebDesign.com ,完整相同的布局

整个网站。现在我使用一个名为page_top()的函数。和

page_bottom()"当被叫时,显示

页面的顶部和底部。我只需要在实际的index.php页面上调用那两个

函数,然后在该页面上写下主要内容。这似乎是傻瓜,但它似乎有效。我想使用模板,但是我不知道他们对我们有多了解,而且我还没有发现任何只是为了简单易用而且易于使用的b
。如果有人能指出我在

中直接开发具有一致布局的页面

,并且在主要部分上有动态内容。的页面,我将永远感激
。再一次,我想使用模板,因为从我看到它们看起来就像我需要的那样。任何人都可以指导我,并且非常简单,直接,易于使用

模板系统(如果这是我确实需要的那样)可以加速

上传页面而不是在每个页面上点击服务器

加载相同的页面布局?此外,我目前建立

页面的方式可能是错误的,但可能有一个解决方案页面

" blinking"第一个

时间从一个页面切换到下一个页面时。当您返回到同一页面时,没有闪烁。谢谢

这么多可以解决我上面列出的任何问题的人和每个人!

Hello Everyone:

I am in search of an easier way to develop pages. My most current
website, www.Base2WebDesign.com, has the exact same layout throughout
the entire site. Right now I use a function called "page_top()" and
page_bottom()" that , when called, display the tops and bottoms of
pages. All I have to do on the actual index.php page is call those two
functions and then write the main content on that page. This seems
stupid but it seems to work. I would like to use templates but I
don''t know much about them and I have yet to find anything that just
screams simplicity to me and ease of use. If anyone could point me in
the right direct for developing pages that have a consistent layout
with dynamic content on the "main section" of the page, I would be
forever grateful. Again, I would like to use templates because from
what I have seen they look like they are what I need. Can anyone
direct me toward and very simple, straight-forward, easy-to-use
template system (if this is what I indeed would need) that could speed
up the rendering of the pages without hitting the server on each page
load for the same page layout? Also, my current way of building the
page may be to fault but might there be a solution to the pages
"blinking" when you switch from one pages to the next for the first
time. When you return to that same page there is no blink. Thank you
so much to anyone and everyone that can solve any of the problems I
have listed above!



我认为你可能已经这样说了。

曾经有一个框架的概念。这会解决你的

重新加载眨眼问题 - 但它们似乎已经过时了 -


我不知道为什么 - 也许有人可以开导我(我们)为什么只是为了好奇心?$ / b

Andy

I think its probably fair to say you are already doing it.
There was also once a concept of "frames" which would address your
reloading blink question - but they seem to have gone out of fashion -

I don''t know why - perhaps someone could enlighten me (us) on why just
for curiosity?

Andy


Justin.Voelker写道:
Justin.Voelker wrote:

大家好:


我正在寻找一种更简单的方法来开发页面。我最新的

网站, www.Base2WebDesign.com ,完整相同的布局

整个网站。现在我使用一个名为page_top()的函数。和

page_bottom()"当被叫时,显示

页面的顶部和底部。我只需要在实际的index.php页面上调用那两个

函数,然后在该页面上写下主要内容。这似乎是傻瓜,但它似乎有效。我想使用模板,但是我不知道他们对我们有多了解,而且我还没有发现任何只是为了简单易用而且易于使用的b
。如果有人能指出我在

中直接开发具有一致布局的页面

,并且在主要部分上有动态内容。的页面,我将永远感激
。再一次,我想使用模板,因为从我看到它们看起来就像我需要的那样。任何人都可以指导我,并且非常简单,直接,易于使用

模板系统(如果这是我确实需要的那样)可以加速

上传页面而不是在每个页面上点击服务器

加载相同的页面布局?此外,我目前建立

页面的方式可能是错误的,但可能有一个解决方案页面

" blinking"第一个

时间从一个页面切换到下一个页面时。当您返回到同一页面时,没有闪烁。谢谢

对于任何能够解决上面列出的任何问题的人都非常感谢!
Hello Everyone:

I am in search of an easier way to develop pages. My most current
website, www.Base2WebDesign.com, has the exact same layout throughout
the entire site. Right now I use a function called "page_top()" and
page_bottom()" that , when called, display the tops and bottoms of
pages. All I have to do on the actual index.php page is call those two
functions and then write the main content on that page. This seems
stupid but it seems to work. I would like to use templates but I
don''t know much about them and I have yet to find anything that just
screams simplicity to me and ease of use. If anyone could point me in
the right direct for developing pages that have a consistent layout
with dynamic content on the "main section" of the page, I would be
forever grateful. Again, I would like to use templates because from
what I have seen they look like they are what I need. Can anyone
direct me toward and very simple, straight-forward, easy-to-use
template system (if this is what I indeed would need) that could speed
up the rendering of the pages without hitting the server on each page
load for the same page layout? Also, my current way of building the
page may be to fault but might there be a solution to the pages
"blinking" when you switch from one pages to the next for the first
time. When you return to that same page there is no blink. Thank you
so much to anyone and everyone that can solve any of the problems I
have listed above!



即使模板必须在每次加载页面时都要点击服务器,即使

它是相同的布局。你可以阻止的唯一方法是将

页面输出保存为html文件并加载静态页面。


-

==================

删除x来自我的电子邮件地址

Jerry Stuckle

JDS计算机培训公司
js ******* @ attglobal.net

==================

Even a template will have to hit the server for every page load, even if
it is the same layout. The only way you could stop that is to save the
page outputs as html files and just load the static pages.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================


4月2日,下午12:13,和... @ blueyonder.com写道:
On Apr 2, 12:13 pm, and...@blueyonder.com wrote:

文章< 1175529378.263026。 220 ... @ l77g2000hsb.googlegroups .com>,

justin.voel ... @ gmail.com说...
In article <1175529378.263026.220...@l77g2000hsb.googlegroups .com>,
justin.voel...@gmail.com says...

大家好:
Hello Everyone:


我正在寻找一种更简单的方法来开发页面。我最新的

网站, www.Base2WebDesign.com ,完整相同的布局

整个网站。现在我使用一个名为page_top()的函数。和

page_bottom()"当被叫时,显示

页面的顶部和底部。我只需要在实际的index.php页面上调用那两个

函数,然后在该页面上写下主要内容。这似乎是傻瓜,但它似乎有效。我想使用模板,但是我不知道他们对我们有多了解,而且我还没有发现任何只是为了简单易用而且易于使用的b
。如果有人能指出我在

中直接开发具有一致布局的页面

,并且在主要部分上有动态内容。的页面,我将永远感激
。再一次,我想使用模板,因为从我看到它们看起来就像我需要的那样。任何人都可以指导我,并且非常简单,直接,易于使用

模板系统(如果这是我确实需要的那样)可以加速

上传页面而不是在每个页面上点击服务器

加载相同的页面布局?此外,我目前建立

页面的方式可能是错误的,但可能有一个解决方案页面

" blinking"第一个

时间从一个页面切换到下一个页面时。当您返回到同一页面时,没有闪烁。谢谢

这么多可以解决我上面列出的任何问题的人和所有人!
I am in search of an easier way to develop pages. My most current
website,www.Base2WebDesign.com, has the exact same layout throughout
the entire site. Right now I use a function called "page_top()" and
page_bottom()" that , when called, display the tops and bottoms of
pages. All I have to do on the actual index.php page is call those two
functions and then write the main content on that page. This seems
stupid but it seems to work. I would like to use templates but I
don''t know much about them and I have yet to find anything that just
screams simplicity to me and ease of use. If anyone could point me in
the right direct for developing pages that have a consistent layout
with dynamic content on the "main section" of the page, I would be
forever grateful. Again, I would like to use templates because from
what I have seen they look like they are what I need. Can anyone
direct me toward and very simple, straight-forward, easy-to-use
template system (if this is what I indeed would need) that could speed
up the rendering of the pages without hitting the server on each page
load for the same page layout? Also, my current way of building the
page may be to fault but might there be a solution to the pages
"blinking" when you switch from one pages to the next for the first
time. When you return to that same page there is no blink. Thank you
so much to anyone and everyone that can solve any of the problems I
have listed above!



我认为你可能已经这样说了。

曾经有一个框架的概念。这会解决你的

重新加载眨眼问题 - 但它们似乎已经过时了 -


我不知道为什么 - 也许有人可以开导我(我们)为什么只是

好​​奇心?


Andy


I think its probably fair to say you are already doing it.
There was also once a concept of "frames" which would address your
reloading blink question - but they seem to have gone out of fashion -

I don''t know why - perhaps someone could enlighten me (us) on why just
for curiosity?

Andy



安迪:


我曾经使用过框架而且你是对的,他们似乎被杀了

off。我只是不知道模板系统是否会实现相同的结果,而不是如此严格地编码,因为它们是正确的

现在。感谢您的回复!

Andy:

I once used frames and you are right, they seem to have been killed
off. I just didn''t know if a template system would achieve the same
sort of results without being so terribly coded as they are right
now. Thanks for the response though!


这篇关于最佳实践 - 不变页面布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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