ExampleSelect Wiki page commented on by richard.kellner
- Hello,
this is exactly what I have been missing in Zend Framework for a longer time. I was about to write my own library when I found this once. Is this project still underdevelopment? I mean if I submit some bugs are you going to fix them? I have decided to use it so if necessary I might do some development on library as well so if you give me any response about contributing to this project it would be nice.
Hello,
this is exactly what I have been missing in Zend Framework for a longer time. I was about to write my own library when I found this once. Is this project still underdevelopment? I mean if I submit some bugs are you going to fix them? I have decided to use it so if necessary I might do some development on library as well so if you give me any response about contributing to this project it would be nice.
Earlier this year
Nov 17, 2009
ExampleSelect Wiki page commented on by ambhcie
- try to write this in your index.php:
$loader->registerNamespace('Core_');
try to write this in your index.php:
$loader->registerNamespace('Core_');
Nov 09, 2009
ExampleSelect Wiki page commented on by ryan.morales14
- Is this still working?
cause it only generates this error: Fatal error: Class 'Core' not found in xxxxx
Is this still working?
cause it only generates this error: Fatal error: Class 'Core' not found in xxxxx
Oct 20, 2009
ExampleSelect Wiki page commented on by ambhcie
- just one question:
How can I add his datagrid to a form (Zend_Form or Zend_Dojo_Form)?
Thank you
just one question:
How can I add his datagrid to a form (Zend_Form or Zend_Dojo_Form)?
Thank you
Aug 20, 2009
issue 8
(Model file is missing from package.) reported by nicholas.noel.yap
- GridController.php (line 2) is
require 'cms/models/Project.php';
However, this file is not included.
Thanks :)
GridController.php (line 2) is
require 'cms/models/Project.php';
However, this file is not included.
Thanks :)
'Core_DataGrid_DataSource_DbSelect' method fetch incorrectly fetchs records
fix:
public function fetch($page = 0, $size = null, $toArray = false){
$count = is_null($size) ? $this->count() : $size;
$this->getSelect()->order($this->getSort())->limitPage($page, $count);
return $this->getSelect()->query()->fetchAll();
}
Feb 16, 2009
issue 6
(escapeOutput doesnt effect when using decorator) reported by TheRufinus
-
The Value of escapeOutput is not honored when decorators is used. (Version 0.2)
$grid->setDataFromArray($rows);
$grid->escapeOutput(false);
$grid->addColumn('name', array('Event Name')); // no htmlspecialchars()
$grid->addColumn('name',array(
'title'=>'Event Name',
'decorator'=>'<a href="/event/view/id/{{event_id}}">[{{event_id}}]
{{name}}</a>'
)); // htmlspecialchars() is called.
thanks for a great class.
Rufinus
The Value of escapeOutput is not honored when decorators is used. (Version 0.2)
$grid->setDataFromArray($rows);
$grid->escapeOutput(false);
$grid->addColumn('name', array('Event Name')); // no htmlspecialchars()
$grid->addColumn('name',array(
'title'=>'Event Name',
'decorator'=>'<a href="/event/view/id/{{event_id}}">[{{event_id}}]
{{name}}</a>'
)); // htmlspecialchars() is called.
thanks for a great class.
Rufinus
Jan 12, 2009
issue 4
(Core_DataGrid_DataSource_DbSelect::getColumns() dosent respe...) reported by kungla
- _getColumnsAlternative() works as expected
_getColumnsAlternative() works as expected
Older
Dec 26, 2008
issue 3
(Notice: Undefined index: email in /Core/DataGrid/DataSource/...) reported by pekka.jarvinen
- I'm using many DataGrids in one page. Notice gets created because not all
grids share same column names.
If index is not found DataGrid should use default column name from
->setDefaultSort() method.
I'm using many DataGrids in one page. Notice gets created because not all
grids share same column names.
If index is not found DataGrid should use default column name from
->setDefaultSort() method.
Dec 23, 2008
issue 2
(Row CSS) reported by pekka.jarvinen
- I'm creating ticket system and I would like to color rows by priority id or
priority name.
Existing even/odd classes should stay so that it only appends more classes
to row.
For example:
{{{
<tr class="rowOdd priority-high">
}}}
And in code it's something like:
{{{
$css = new Core_DataGrid_Column_Row_CSS('row-css');
$css->setCSS('$priority',
array(1=>'priority-high',2=>'priority-med',3=>'priority-low')
);
}}}
I'm creating ticket system and I would like to color rows by priority id or
priority name.
Existing even/odd classes should stay so that it only appends more classes
to row.
For example:
{{{
<tr class="rowOdd priority-high">
}}}
And in code it's something like:
{{{
$css = new Core_DataGrid_Column_Row_CSS('row-css');
$css->setCSS('$priority',
array(1=>'priority-high',2=>'priority-med',3=>'priority-low')
);
}}}
Dec 23, 2008
issue 1
(Add Core_DataGrid_Column type datetime) reported by pekka.jarvinen
- Reads SQL timestamp and unixtime. Parameters given as date() or strftime()
format. For example: "d.m.Y H:i:s".
Extra: Add age. Parameters = array('second', 'seconds', 'hour', 'hours', etc)
precision = 2 means two largest time units so instead of:
5 seconds, 7 hours, 2 days, 1 week
it returns
2 days, 1 week
So final output may be for example:
24.12.2007 (52 weeks ago)
Reads SQL timestamp and unixtime. Parameters given as date() or strftime()
format. For example: "d.m.Y H:i:s".
Extra: Add age. Parameters = array('second', 'seconds', 'hour', 'hours', etc)
precision = 2 means two largest time units so instead of:
5 seconds, 7 hours, 2 days, 1 week
it returns
2 days, 1 week
So final output may be for example:
24.12.2007 (52 weeks ago)