我想我的div风格滚动条的风格类似于iPhone或新的发现者osx Lion.它必须与所有浏览器兼容.可能吗?
在Zend框架中处理favicon.ico的最佳方法是什么?我见过需要修改phtml文件的替代方法,例如:
$this->headLink()->headLink(array('rel' => 'favicon',
'href' => '/img/favicon.ico'),
'PREPEND')
Run Code Online (Sandbox Code Playgroud)
或.htaccess文件的修改.
谢谢,
谁帮我为Zend Framework创建了一个自定义验证器,它可以检查日期是否在一个范围内?
例:
dateGT = 2011-09-05
dateLT = 2011-07-05
Run Code Online (Sandbox Code Playgroud)
如果表单字段设置为:dateFieldForm = 2011-08-15我希望验证器返回true!
如果表单字段设置为:dateFieldForm = 2011-10-15我希望验证器返回false!
我有一个css文件,我想自动创建文件的几个颜色变化,使用GIMP中的"着色"之类的东西来移动模板的色调.
我找到了一些特别适合我想要的东西:http://adityabhandari.com/wp-content/uploads/2011/01/ColorChanger.html
但它不支持rgba()我经常使用的符号.
我是linux用户所以也许一些棘手的shell脚本与正则表达式会做,问题是我真的很吮吸正则表达式.
如果您发布php/python/awk解决方案,我就足够聪明地使用它.
我有一个tomcat服务器,我希望安装Jenkins和Sonar.我正在进行debian distibution,因此我通过apt-get获得了tomcat6和Jenkins.当我将jenkins.war复制到我的tomcat6/webapps目录时,一切运行正常.然而,当我将sonar.war复制到tomcat6/webapps时,声纳工作正常,但jenkins引发错误500:
javax.servlet.ServletException: org.apache.commons.jelly.JellyTagException: jar:file:/var/lib/tomcat6/webapps/jenkins/WEB-INF/lib/jenkins-core-1.435.jar!/hudson/model/View/index.jelly:39:43: <st:include> PermGen space
org.kohsuke.stapler.jelly.JellyClassTearOff.serveIndexJelly(JellyClassTearOff.java:112)
org.kohsuke.stapler.jelly.JellyFacet.handleIndexRequest(JellyFacet.java:124)
org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:550)
org.kohsuke.stapler.Stapler.invoke(Stapler.java:646)
org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:612)
org.kohsuke.stapler.Stapler.invoke(Stapler.java:646)
org.kohsuke.stapler.Stapler.invoke(Stapler.java:477)
org.kohsuke.stapler.Stapler.service(Stapler.java:159)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95)
hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87)
hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
Run Code Online (Sandbox Code Playgroud)
我还安装了管理器(tomcat6-admin),当我添加sonar.war时,管理器也失败了.
我已经通过从codehaus下载声明,设置数据库配置和构建战争来安装声纳.
有谁知道为什么会这样,可能有解决方案?
I have a problem using my url view helper. I have defined custom routes like so:
; Index
routes.domain.type = 'Zend_Controller_Router_Route_Static'
routes.domain.route = '/'
routes.domain.defaults.controller = index
routes.domain.defaults.action = index
Run Code Online (Sandbox Code Playgroud)
使用自定义网址时,一切正常,但我无法正常组合.我尝试使用视图中的以下代码添加链接:
$this->url(array('controller' => 'search', 'action' => 'index');
Run Code Online (Sandbox Code Playgroud)
问题是,当我在索引控制器的索引页面中使用此代码时,返回的url是当前控制器/操作的url,而不是我需要的url.
我在mysql中有一个查询zend framwork有没有其他的写这个方法
$select = $this->select ()
->where ( "phone = '" . $post ['phone'] . "'")
->where(!( "member_id != '" .$post['member_id'] . "'"));
Run Code Online (Sandbox Code Playgroud)
我想要做的是更新手机号码成员,看看数据库中是否已存在手机任何其他方式这样做可以有人回答
您好我正在使用Zend_currency
class Currency extends Zend_View_Helper_Abstract
{
public function currency($number, $locale = 'it_IT') {
$currency = new Zend_Currency($locale);
$number = $number + 0.00;//convert to float
return $currency->toCurrency((float) $number);
}
}
Run Code Online (Sandbox Code Playgroud)
在一些视图.phtml文件中
echo $this->currency($gimme_my_money);
Run Code Online (Sandbox Code Playgroud)
这就是我得到的
€ 19.373,25
-€ 116,07
Run Code Online (Sandbox Code Playgroud)
我怎样才能打印负数
€ -116,07
Run Code Online (Sandbox Code Playgroud) 有两件事:
我有一个带iframe的网页.
我想在iframe的左下方放置一个图标.所以我认为我可以用jquery-ui的位置做到这一点.
这是我的尝试不起作用:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>test positionLogo</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/redmond/jquery-ui.css"
type="text/css" media="screen"/>
<style type="text/css">
div.positionLogo {
width: 64px;
height: 64px;
position: absolute;
display: block;
text-align: center;
background: #FFFFFF url(http://qooxdoo.org/_media/stackoverflow.png) no-repeat center;
}
</style>
</head>
<body>
<h2>Header</h2>
<iframe id="idIframe" name="idIframe" scrolling="no" height="1600px" width="100%" src="http://www.google.it"
frameborder="0"></iframe>
<div class="positionLogo"></div>
<script type="text/javascript">
$(document).ready(function () {
$(".positionLogo").position({
of:$("#idIframe"),
my:"left bottom",
at:"left bottom"
});
});
</script>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
好的是,如果你将 …
我有一个mysql查询
mysql_query("SELECT name,symbol FROM scode WHERE change='$change'
AND product='$product' AND series='$typeo'
AND (name LIKE '%$check%' OR symbol LIKE '%$check%') LIMIT 5");
Run Code Online (Sandbox Code Playgroud)
它完美地工作但是如果我尝试使用mysql字符串使用相同的查询,则查询不返回任何结果.我试过这样的
$query= sprintf("SELECT name,symbol FROM `scode` WHERE change='%s'
AND product='%s' AND series='%s' AND (name LIKE '%s' OR symbol LIKE '%s')
LIMIT 5",
mysql_real_escape_string($change),
mysql_real_escape_string($product),
mysql_real_escape_string($typeo),
mysql_real_escape_string($check),
mysql_real_escape_string($check));
$fetch= mysql_query($query);
Run Code Online (Sandbox Code Playgroud)
如何进行有效的查询?有人可以帮帮我吗?谢谢.