![]() |
|
|
|||||||
| embarcadero.public.delphiphp.vclforphp.components.using This group is for all discussion about the use of VCL for PHP components. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I have a page with a ZAcl, Combobox and a DBRepeator components. I added an OnChange function to the Combobox component but when I run it and change the selected item of the combobox I have this error: *Application raised an exception class Zend_Acl_Exception with message 'Resource 'ComboBox::ComboBox1' not found'
Click for detailed information* The code of the page is below. Is there something I am missing? Thanks -- Erol <?php require_once("vcl/vcl.inc.php"); //Includes require_once("dmAuth.php"); use_unit("dbctrls.inc.php"); use_unit("Zend/zacl.inc.php"); use_unit("Zend/zauth.inc.php"); use_unit("forms.inc.php"); use_unit("extctrls.inc.php"); use_unit("stdctrls.inc.php"); global $dmAuth; $dmAuth->ZAuth->Execute(); $aclmanager->Role=$dmAuth->ZAuth->UserRealm; //Class definition class ZAuthSample extends Page { public $ComboBox1 = null; public $DBRepeater1 = null; public $logout = null; public $ZACL1 = null; function ComboBox1Change($sender, $params) { // } } global $application; global $ZAuthSample; //Creates the form $ZAuthSample = new ZAuthSample($application); //Read from resource file $ZAuthSample->loadResource(__FILE__); //Shows the form $ZAuthSample->show(); ?> Edited by: Erol YILDIZ on Oct 7, 2008 2:33 AM |
| Sponsored Links |
|
|
|
|||
|
I found out that this problem happens if the page is submitted by any component and if you only use 'Custom:*:*' rule in the ZAcl rules. Combobox onChange submits the page too so I get this error. If you individualy add components to the ZAcl rules it doesn't give this error. For example when I add Control:ComboBox:ComboBox1:Show:Allow it doesn't give any error. So I guess 'Custom:*:*' rule have a problem.
-- Erol > {quote:title=Erol YILDIZ wrote:}{quote} > I have a page with a ZAcl, Combobox and a DBRepeator components. I added an OnChange function to the Combobox component but when I run it and change the selected item of the combobox I have this error: *Application raised an exception class Zend_Acl_Exception with message 'Resource 'ComboBox::ComboBox1' not found' > Click for detailed information* > > The code of the page is below. Is there something I am missing? > > Thanks > -- > Erol > > <?php > require_once("vcl/vcl.inc.php"); > //Includes > require_once("dmAuth.php"); > use_unit("dbctrls.inc.php"); > use_unit("Zend/zacl.inc.php"); > use_unit("Zend/zauth.inc.php"); > use_unit("forms.inc.php"); > use_unit("extctrls.inc.php"); > use_unit("stdctrls.inc.php"); > > global $dmAuth; > $dmAuth->ZAuth->Execute(); > > $aclmanager->Role=$dmAuth->ZAuth->UserRealm; > > //Class definition > class ZAuthSample extends Page > { > public $ComboBox1 = null; > public $DBRepeater1 = null; > public $logout = null; > public $ZACL1 = null; > function ComboBox1Change($sender, $params) > { > // > > } > > > } > > global $application; > > global $ZAuthSample; > > //Creates the form > $ZAuthSample = new ZAuthSample($application); > > //Read from resource file > $ZAuthSample->loadResource(__FILE__); > > //Shows the form > $ZAuthSample->show(); > > ?> > > Edited by: Erol YILDIZ on Oct 7, 2008 2:33 AM Edited by: Erol YILDIZ on Oct 12, 2008 3:08 AM Edited by: Erol YILDIZ on Oct 12, 2008 3:09 AM |