madcorp / zfdatagrid

Automatically exported from code.google.com/p/zfdatagrid
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Plugin by name 'Table' was not found in the registry #864

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Placed Bvb in my Zend library from ZFDatagrid 0.8 - Lib Only.zip
2. Added the following to my bootstrap
        $autoloader = Zend_Loader_Autoloader::getInstance();
        $autoloader->registerNamespace('Bvb_');

3. Added the following code in my controller
        $actions = array(
            array('action'=>'do', 'what'=>'view', 'caption'=>'View', 'class'=>'{view}'),
            array('action'=>'do', 'what'=>'edit', 'caption'=>'Edit', 'class'=>'{edit} fixedClass'),
            array('action'=>'do', 'what'=>'delete', 'caption'=>'Delete', 'class'=>'{delete}')                       
        );

        $grid = Bvb_Grid::factory('Table');
        $grid->setSource(new Bvb_Grid_Source_Array($actions));
    $this->view->grid = $grid; 

What is the expected output? What do you see instead?
Instead of seeing the data grid I get the following error:
Message: Plugin by name 'Table' was not found in the registry; used paths: 
Bvb_Grid_Deploy_: Bvb/Grid/Deploy/

Please insert the appropriate values;
                    Zend Framework version: 0.8
ZFDatgrid Version (Bvb_Grid::getVersion()):
                          Operating system: linux
                               PHP Version: 5.3
               Database Server and version: used an array
Source Adatapter:

Please provide any additional information below.

Original issue reported on code.google.com by honman...@gmail.com on 25 May 2012 at 12:03

GoogleCodeExporter commented 9 years ago
Hi,

Try change
$grid = Bvb_Grid::factory('Table');
to
$grid = Bvb_Grid::factory('Bvb_Grid_Deploy_Table');

IM

Original comment by ivomonte...@gmail.com on 26 May 2012 at 6:33

GoogleCodeExporter commented 9 years ago

Original comment by ivomonte...@gmail.com on 26 May 2012 at 8:54

GoogleCodeExporter commented 9 years ago
Thank you ...it removed the error but when I added the deploy() so that it will 
display on the page the error came back again.  My code in the controller looks 
like this:

        $actions = array(
            array('action'=>'do', 'what'=>'view', 'caption'=>'View', 'class'=>'{view}'),
            array('action'=>'do', 'what'=>'edit', 'caption'=>'Edit', 'class'=>'{edit} fixedClass'),
            array('action'=>'do', 'what'=>'delete', 'caption'=>'Delete', 'class'=>'{delete}')                       
        );

        $grid = Bvb_Grid::factory('Bvb_Grid_Deploy_Table');
        $grid->setSource(new Bvb_Grid_Source_Array($actions));
    $this->view->grid = $grid->deploy();   

The result is still this:
Exception information:

Message: Plugin by name 'Table' was not found in the registry; used paths: 
Bvb_Grid_Template_: Bvb/Grid/Template/ 

Original comment by honman...@gmail.com on 26 May 2012 at 10:05

GoogleCodeExporter commented 9 years ago
I've got the same problem and i don't understand what to do 
i don't see where the problem is fixed :

change 
$grid = Bvb_Grid::factory('Table');
to
$grid = Bvb_Grid::factory('Bvb_Grid_Deploy_Table');

and the error  message is 
Plugin by name 'Table' was not found in the registry; used paths: 
Bvb_Grid_Template_: Bvb/Grid/Template/

Original comment by david.cy...@gmail.com on 19 Jun 2012 at 11:33