由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
BuildingWeb版 - How PHP guys maintain the overall layout of a website
相关主题
PHP 的有关问题‘perl + sas - the backtick operator - use specific user
Java已经过时了吗?类似股票股价走势的动态显示图片是怎么做的?
想做网站,求建议(有包子酬谢)刚把ruby1.8.6升级成ruby1.9.1
请教Firefox里面如何确定屏幕宽度请教:如何上传ASP.NET 3.5 网站
can PHP do this??请问这个joomla extension的用途
PHP问题用RoR做了一个网站, 欢迎大家提意见
网上看到别人对PHP的几个框架的比较有没有现成的程序抄RSS建网站
我建立了一个blog系统,欢迎大家参观新手寻建议:
相关话题的讨论汇总
话题: php话题: website话题: layout话题: overall话题: maintain
进入BuildingWeb版参与讨论
1 (共1页)
q**1
发帖数: 193
1
In my current tool HTML::Mason, I need only a single file
(named autohandler under the component root, usually it's the
same as the Apache document root) to define the overall layout
of a website, all pages can inherit from this page and donot
need to add any extra things in their pages. And I can setup
a new look by using another new autohandler file under its current
directory. This forms a very nice inheritant chain, and
can be used to maintain server side code very conveniently.
In PHP, how
q**1
发帖数: 193
2
I guess there are some wrappers that can be used in PHP
while I still dont have enough time to read PHP books.
In Perl Template Toolkit, the WRAPPER block does
almost the same thing that Mason can. Developing web
with such OO-like patterns really makes the
coding lots of fun, especially when magic things
happen all the (time|ways), does't it..:-) hehe

【在 q**1 的大作中提到】
: In my current tool HTML::Mason, I need only a single file
: (named autohandler under the component root, usually it's the
: same as the Apache document root) to define the overall layout
: of a website, all pages can inherit from this page and donot
: need to add any extra things in their pages. And I can setup
: a new look by using another new autohandler file under its current
: directory. This forms a very nice inheritant chain, and
: can be used to maintain server side code very conveniently.
: In PHP, how

c***c
发帖数: 21374
3
php没什么好的framework
php不是ruby,自然也没ruby on rails
不过php社区也是有些framework的,但是仁者见仁了
比如cakephp symfony等
比较轻量级的的如codeigniter

【在 q**1 的大作中提到】
: In my current tool HTML::Mason, I need only a single file
: (named autohandler under the component root, usually it's the
: same as the Apache document root) to define the overall layout
: of a website, all pages can inherit from this page and donot
: need to add any extra things in their pages. And I can setup
: a new look by using another new autohandler file under its current
: directory. This forms a very nice inheritant chain, and
: can be used to maintain server side code very conveniently.
: In PHP, how

q**1
发帖数: 193
4
多谢。。感觉现在网页后台的工具选择越来越多也越来越完善了。。
Perl里面有个Template Toolkit的 modules bundle,映射了很多
关于GOF's"Design Pattern"的思维,让人觉得写网页越来越像
写软件了,呵呵(其实本来就差不多)

【在 c***c 的大作中提到】
: php没什么好的framework
: php不是ruby,自然也没ruby on rails
: 不过php社区也是有些framework的,但是仁者见仁了
: 比如cakephp symfony等
: 比较轻量级的的如codeigniter

c***c
发帖数: 21374
5
差别还是很大的
网页是表现层面的东西,主要应该是设计师,美工,和UI人的领域

【在 q**1 的大作中提到】
: 多谢。。感觉现在网页后台的工具选择越来越多也越来越完善了。。
: Perl里面有个Template Toolkit的 modules bundle,映射了很多
: 关于GOF's"Design Pattern"的思维,让人觉得写网页越来越像
: 写软件了,呵呵(其实本来就差不多)

q**1
发帖数: 193
6
yeah, I actually meant the overall design of a website.
the final presentation is just part of it.
If you have great databases and engine as backend, the
presentation is not necessarily to be the key of a
success website(google is the simplest sample).
my 2 cents..

【在 c***c 的大作中提到】
: 差别还是很大的
: 网页是表现层面的东西,主要应该是设计师,美工,和UI人的领域

H*********r
发帖数: 8
7
I am learning cakephp, which looks pretty decent to me. What do you guys
think of it?
q**1
发帖数: 193
8
没用过,不知道cakephp在增强code reusability方面做得怎么样
有什么比较独到的地方?:-)
我原来做的是在每个文件里面都用相同的include 命令来保持layout
的一致,感觉比较原始。Perl Mason里面有一套比较完整的inhertance
机制,所以施行和维护都比较简单。。。我相信PHP应该有更完善的
工具(主要是思路和方法)希望能听听你们的想法和建议。。//bow

【在 H*********r 的大作中提到】
: I am learning cakephp, which looks pretty decent to me. What do you guys
: think of it?

c***c
发帖数: 21374
9
cake的问题在于过于模仿ROR,问题是php不是Ruby,因此cake自然不可能是ROR一样的
东西。特别cake是兼容php4的,php4本来就不是一个OO的东西。如果cake完全针对php5
,会好很多。
我个人认为php不是做复杂应用的工具(这不代表php不能用在访问量很大的站点)。对
于业务逻辑复杂的应用,还是用其他的吧。
1 (共1页)
进入BuildingWeb版参与讨论
相关主题
新手寻建议:can PHP do this??
about a new board on RoRPHP问题
ROR 3 推荐哪个hoster?网上看到别人对PHP的几个框架的比较
现在做web application我建立了一个blog系统,欢迎大家参观
PHP 的有关问题‘perl + sas - the backtick operator - use specific user
Java已经过时了吗?类似股票股价走势的动态显示图片是怎么做的?
想做网站,求建议(有包子酬谢)刚把ruby1.8.6升级成ruby1.9.1
请教Firefox里面如何确定屏幕宽度请教:如何上传ASP.NET 3.5 网站
相关话题的讨论汇总
话题: php话题: website话题: layout话题: overall话题: maintain