English 中文(简体)
每一页都需要有一片 st子的欧洲复兴开发银行: 我的框架是否良好?
原标题:Every pages needs a HEAD with lots of stuff: Is my framework design good?

我来到这里,我认识到,我需要明智地解决这一问题。

在我的框架内:

  • Views (actually just HTML files with little PHP to output data)
  • View Controllers (create views, do some logic)

https://stackoverflow.com/questions/ask” 例如,我有一个框架所要求的观点主计长。 产生排位观点的根基意见。 布局观点具体指明了标题和脚步,以及网站的主要结构。 例如,它有内容意见持有人。

设计 我只一次具体说明了欧洲环保局,因此DOCTYPE、TITLE和所有其他障碍都与这种排他性观点模板一致。

装着“根基”字库的每个观点主计长可以确定标题,附上列入科学、技术和科学部或列入“Javascript”的内容(这是欧洲科学、技术和科学发展局的这些原始关系之一),就像在“根基”上采用一些方法。

迄今为止,这实际上非常灵活,因为如果你不具体说明任何情况,你就会遇到有益的违约情况,并有一个合理的“欧洲复兴开发银行”。

但我看到这些问题:

  • 我能否使框架的使用更加简单? 布局模板必须包含造成生产力丧失的所有“垃圾”。 为什么一个框架用户甚至必须考虑建立一个正确的欧洲复兴开发银行? 这个问题总是一样的,需要完全相同的辛迪加,需要完全相同的中央支助事务和框架的 Java印等。 ......是谁。

  • 它必须包含相应的固定持有人变量,以便与根基电算器的方法相匹配。

为了解决这一问题,我认为我可以提供一种可观的变量,可以插入到输出欧洲开发协会集团的任何观点模板中。

我只想看到你对这一点的看法,如果我的解决办法是公正的,或者如果我不想在这里造成大的设计错误的话。 如果是的话,什么是替代办法?

最佳回答

您的“用户”只能具体说明身体模板,自动输出你的头部、“用户”机构以及你的脚本。 然后,模板设计师不得不记住,必须包含一些任意的变数,如果你决定改变你的头脑/脚步,你就不得不更新每个单一模板。

你还可以让模板设计者通过要求某种功能而超越这一行为。

这可能是理想的:90%的时间,你的框架将做正确的事,不作任何发展的努力。 只有在用户想要做其他事情的10%情况下,他们才能摆脱通过职能电话实现的目标。

问题回答

暂无回答




相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签