系统:
Linux web 2.6.27.21-0.1-pae #1 SMP 2009-03-31 14:50:44 +0200 i686 i686 i386 GNU/Linux
PHP Version 5.3.8
Apache Version Apache/2.2.21 (Linux/SUSE)
OCI8 Support enabled
Version 1.4.7
Revision $Revision: 321634 $
Active Persistent Connections 0
Active Connections 0
Oracle Run-time Client Library Version 11.2.0.3.0
Oracle Instant Client Version 11.2
Run Code Online (Sandbox Code Playgroud)
在打电话时oci_connect- 接收
ORA-24408:无法生成唯一的服务器组名称
我不明白这是什么样的错误以及如何解决它.
属性width是像素宽度.
{
xtype: 'grid',
store: store,
selModel: Ext.create('Ext.selection.CheckboxModel', {
mode: 'SINGLE'
}),
layout: 'fit',
columns: [
{
text: "pum",
dataIndex: 'SRD_NAME_FL',
width: 400
}
],
columnLines: true
}
Run Code Online (Sandbox Code Playgroud)
如果我只有一列我如何使列宽= 100%或如果我有几列 - 如何使最后一列拉伸到网格结束?
我有在窗体上显示字段的问题
var test = Ext.create('Ext.form.Panel', {
renderTo: 'test',
title: '1. zzzz',
width: 800,
bodyPadding: 5,
defaults: {
anchor: '100%'
},
items: [
{
xtype: 'fieldset',
defaults: {
anchor: '100%'
},
layout: 'column',
items: [
{
xtype: 'panel',
fieldDefaults: {
msgTarget: 'side',
labelWidth: 75
},
columnWidth: .5,
flex: 1,
defaultType: 'textfield',
defaults: {
anchor: '100%',
flex: 1
},
items: [
{
xtype: 'numberfield',
hideTrigger: true,
fieldLabel: 'zzzz',
//anchor: '100%',
//anchor: '-5',
name: 'SRD_NUMBER'
},
{
fieldLabel: 'zzzz',
//anchor: '-5',
name: 'SRD_NAME_BR' …Run Code Online (Sandbox Code Playgroud) 我有一个如下结构:
/application
.....
--/modules
----/structure
------/controllers
--------/indexController.php
------/forms
--------/Department.php //here class Structure_Form_Department extends Zend_Form
Run Code Online (Sandbox Code Playgroud)
在indexController.php中
...
public function saveAction()
{
$request = $this->getRequest();
$form = new Structure_Form_Department();//<-- error
....
}
Run Code Online (Sandbox Code Playgroud)
我得到错误
致命错误:未找到类"Structure_Form_Department"
当尝试zf enable form module- 接收:
An Error Has Occurred
This project already has forms enabled.
Run Code Online (Sandbox Code Playgroud)
我认为这是一个配置问题...但不明白我需要做什么...
编辑1
在这里找到了很好的解
但是从某种程度上说,zend开始重复执行_init...默认bootstrap.php中的函数....
我想做这样的事情:
if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE'])) {
header('HTTP/1.1 304 Not Modified');
exit;
}
...... other code .....
Run Code Online (Sandbox Code Playgroud)
打字这样做:
public function imageAction()
{
$request = $this->getRequest();
$response = $this->getResponse();
if ($request->getHeader('IF_MODIFIED_SINCE')) {
$response->setHttpResponseCode(304);
return;
}
var_dump($request->getHeaders());
$response->setHeader('Last-Modified', gmdate('D, d M Y H:i:s', time()).' GMT');
var_dump($response->getHeaders());
echo '11111';
exit;
Run Code Online (Sandbox Code Playgroud)
希望结果读者必须如此
> this: Date: Thu, 07 Jul 2011 09:28:08
> GMT Server: Apache/2.2.15 (Linux/SUSE)
> X-Powered-By: PHP/5.3.7RC2-dev
> Last-Modified: Thu, 07 Jul 2011
> 09:27:48 GMT Content-Length: 7101
> Content-Type: text/html
>
> 200 OK
Run Code Online (Sandbox Code Playgroud)
但总是: …