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 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 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 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 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 的大作中提到】![](/moin_static193/solenoid/img/up.png) : php没什么好的framework : php不是ruby,自然也没ruby on rails : 不过php社区也是有些framework的,但是仁者见仁了 : 比如cakephp symfony等 : 比较轻量级的的如codeigniter
|
c***c 发帖数: 21374 | 5 差别还是很大的
网页是表现层面的东西,主要应该是设计师,美工,和UI人的领域
【在 q**1 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 多谢。。感觉现在网页后台的工具选择越来越多也越来越完善了。。 : 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 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 差别还是很大的 : 网页是表现层面的东西,主要应该是设计师,美工,和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 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 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不能用在访问量很大的站点)。对
于业务逻辑复杂的应用,还是用其他的吧。 |