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 #869

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I entered a previous issue that I was having that I still cannot resolve and it 
looks like someone else was having the same issue.  Do I need to register the 
plugin up to the Table level?  Why is it still not seeing the table?

Thank you.  

Reported by honman...@gmail.com, May 24, 2012
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.
Comment 1 by project member ivomonte...@gmail.com, May 26, 2012
Hi,

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

IM

Comment 2 by project member ivomonte...@gmail.com, May 26, 2012
(No comment was entered for this change.)
Status: Done
Comment 3 by honman...@gmail.com, May 26, 2012
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/ 

Comment 4 by david.cy...@gmail.com, Jun 19, 2012
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 issue reported on code.google.com by honman...@gmail.com on 17 Jul 2012 at 10:45

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi, 
if u installed zfdatagrid in /library/Zend

try to move 1 level up /library/Zend/Bvb (dir) To /library/Bvb

Original comment by gabriele...@gmail.com on 3 Sep 2012 at 12:22

GoogleCodeExporter commented 9 years ago

Original comment by ivomonte...@gmail.com on 11 Jan 2013 at 11:51