zfdatagrid / grid

A DataGrid library for Zend Framework
BSD 3-Clause "New" or "Revised" License
10 stars 16 forks source link

Bvb not usable standalone #862

Closed imonteiro closed 11 years ago

imonteiro commented 11 years ago

Original author: m.ha...@gmail.com (October 10, 2008 19:44:21)

What steps will reproduce the problem?

  1. I copied the Bvb directory to the library directory in my current application. After setting up some variables in the bootstrap and defining a simple standard grid, I get a lot of errors on rendering.

1) Warning: Zend_Loader::include_once(Bvb.php) [function.Zend-Loader-include-once]: failed to open stream: No such file or directory in C:\Documents and Settings\mhaket\My Documents\workspace\cm\library\Zend\Loader.php on line 83

Warning: Zend_Loader::include_once() [function.include]: Failed opening 'Bvb.php' for inclusion (include_path='C:\Documents and Settings\mhaket\My Documents\workspace\cm/application;C:\Documents and Settings\mhaket\My Documents\workspace\cm/library;C:\Documents and Settings\mhaket\My Documents\workspace\cm/application/models;.;C:\localdata\xampplite\php\pear\') in C:\Documents and Settings\mhaket\My Documents\workspace\cm\library\Zend\Loader.php on line 83

Fatal error: Class 'Bvb' not found in C:\Documents and Settings\mhaket\My Documents\workspace\cm\library\Bvb\Grid\Deploy\Table.php on line 127

Problem is caused by the fact that Bvb-class is not defined as Bvb_Bvb class. This means it only works if you extend your include path to include /library/bvb which I think is not what you want.

After fixing this I get a grid but with many notices like: "Notice: Undefined index: ajax in C:\Documents and Settings\mhaket\My Documents\workspace\cm\library\Bvb\Grid\DataGrid.php on line 1099"

What is the expected output? What do you see instead? I expect no (or few) notices

What version of the product are you using? On what operating system? Pre-beta lampp

Please provide any additional information below.

Original issue: http://code.google.com/p/zfdatagrid/issues/detail?id=3

imonteiro commented 11 years ago

From pao.fre...@gmail.com on October 11, 2008 04:20:13 The Bvb class was being used inly to take profit of the grid function. I've deleted the file and now the grid function is at application/SiteController.php as a grid function (take a look to see how the new grids are)

imonteiro commented 11 years ago

From m.ha...@gmail.com on October 11, 2008 12:20:55 Perfect. No errors/notices.