小编igg*_*ion的帖子

jquery ui datepicker字体大小很大

我试图将一个日期选择器添加到我的symfony应用程序,我得到它的工作,但日期选择器的大小约为正常情况下的3倍(在演示页面上).我没有编辑任何CSS,我只是使用默认的ui轻盈主题没有修改.

有没有人知道为什么尺寸这么大?

CSS:

http://paste2.org/p/835414

我很怀疑这将是非常有用的.

jquery jquery-ui datepicker jquery-ui-datepicker

13
推荐指数
1
解决办法
7225
查看次数

使用clear时无法解释的空白:两者兼而有之

我正在建立一个Joomla 1.7网站,我正在使用一个图库插件.除了一个问题,这真的很好.在gallery插件中,您可以插入显示在所有图像之上的描述,但每当我使用它时,我会获得大量的空白.

http://imgur.com/FGrGi在此输入图像描述

HTML:

<div id="phocagallery" class="pg-category-view" style="width:800px;margin: auto;">
   <div class="pg-category-view-desc">Pictures of the Roskilde Family</div>
   <div id="pg-icons"></div>
   <div style="clear:both"></div>
   <div class="phocagallery-box-file" style="height:158px; width:120px;">
   <div class="phocagallery-box-file" style="height:158px; width:120px;">
   <div class="phocagallery-box-file" style="height:158px; width:120px;">
   <div class="phocagallery-box-file" style="height:158px; width:120px;">
   <div class="phocagallery-box-file" style="height:158px; width:120px;">
Run Code Online (Sandbox Code Playgroud)

如果我删除白色空间消失.我用萤火虫看着我的css,但我不能为我的生活弄清楚为什么它给了我这个白色空间.我使用了Yahoo css-reset.

编辑:CSS

div id ="phocagallery"class ="pg-category-view":

body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, button, textarea, blockquote, th, td, p 
{
    margin: 0;
    padding: 0;
}
    body { …
Run Code Online (Sandbox Code Playgroud)

html css

10
推荐指数
1
解决办法
8582
查看次数

DQL查询失败

我在MySQL DB中有2个表,即使用doctrine 1.2和symfony 1.4.4

Installedbase和Spare

Installedbase:
ib_id
app_id
location
Run Code Online (Sandbox Code Playgroud)

Spare:
spare_id
app_id
amount
Run Code Online (Sandbox Code Playgroud)

现在我想加入表格,以显示有多少应用程序在备用.

例如

$q = self::createQuery("l")
->select('i.*, s.*')
->from('InstalledBase i, Spare s')
->execute();

return $q;
Run Code Online (Sandbox Code Playgroud)

Doctrine知道app_id字段上的表之间存在关系,但我得到了错误

500 | Internal Server Error | Doctrine_Hydrator_Exception 
"Spare" with an alias of "s" in your query does not reference the parent component it is related to.
Run Code Online (Sandbox Code Playgroud)

yaml:http: //pastey.net/137237 我想不出这个,有人知道什么是教条抱怨吗?

mysql doctrine symfony1 join dql

7
推荐指数
1
解决办法
3554
查看次数

学说发现关系

我在使用学说选择数据子集时遇到了麻烦.

我有3张桌子

位置联系Contact_location

联系人和位置表包含名称和id,另一个表只包含ID.例如:

Location
 loc_id: 1
 name: detroit
Contact
 contact_id: 1
 name: Mike
Contact_location
 loc_id: 1
 contact_id: 1
Run Code Online (Sandbox Code Playgroud)

在学说中,位置和联系表之间存在多对多关系,其中contact_location为ref_class.

我想要做的是在我的位置页面上我想找到所有联系人,例如loc_id = 1.

我试过了:

 $this->installedbases = Doctrine::getTable('contact')->findByloc_id(1);
Run Code Online (Sandbox Code Playgroud)

希望学说会看到这种关系并得到它,但事实并非如此.

如何在相关的相关表格中进行学说搜索?我读过它可以使用Findby完成,但我发现文档不清楚.

orm doctrine symfony1 foreign-key-relationship

1
推荐指数
1
解决办法
2352
查看次数

无法在php语句中找出运算符

我需要编辑一个函数,但我无法弄清楚是什么?和返回声明中的:false mean.我认为:是OR还是?我不知道.

public function hasPermission($name) { return $this->getVjGuardADUser() ? $this->getVjGuardADUser()->hasPermission($name) : false; }

有谁能为我解决这个问题?

php operators

1
推荐指数
2
解决办法
102
查看次数