[fw-general] Re: Stuck in loop with Zend_Controller_Action::_forward() and Zend_Controller_Plugin_Abstract::preDispatch()

2007-03-29 Thread Simon Mundy
What happens if you add:- $this-add(new Zend_Acl_Resource('default')); $this-allow(null, 'login'); Hey, no worries. I'm here and I'm finding any excuse to get distracted at the moment :) I had read your code too quickly - yes indeed, you're using a plugin. It looks to me that you're

[fw-general] Re: Stuck in loop with Zend_Controller_Action::_forward() and Zend_Controller_Plugin_Abstract::preDispatch()

2007-03-29 Thread Nick Lo
What happens if you add:- $this-add(new Zend_Acl_Resource('default')); $this-allow(null, 'login'); Well the default resource is already there so just adding the latter bit results in: Fatal error: Uncaught exception 'Zend_Acl_Exception' with message 'Resource 'login' not found' in...

Re: [fw-general] Zend Controller: get controller instance from within a plugin

2007-03-29 Thread Ivan Shumkov
gMail-27 wrote: Can I get an action controller instance from within a controller plugin (class MyPlugin extends Zend_Controller_Plugin_Abstract). You may use response object: class MyController ... { protected $_layout = 'default'; ... function getLayout() { return

[fw-general] Re: Stuck in loop with Zend_Controller_Action::_forward() and Zend_Controller_Plugin_Abstract::preDispatch()

2007-03-29 Thread Nick Lo
Forgot to finish that by asking if you are able to get _forward() doing its stuff succesfully, presuming of course, a similar Controller plugin, Auth, Acl, etc setup as you originally specified (and I pinched)? If not then I'll know it's not just me. Thanks, Nick What happens if you

Re: [fw-general] No error output on page with ZF 0.9.1, just blank page

2007-03-29 Thread Jeunejean Pierre
Thank you so much Philippe $controller-throwExceptions(true) did resolve the problem. So basically, when $controller-throwExceptions() is not set to true, only parse errors are showned, but all throwned exceptions are not displayed on page or logged, but trapped in a Response object, as

Re: [fw-general] Zend_view or Smarty?

2007-03-29 Thread frederic wolf
Shekar C Reddy a écrit : For the most performance, the one with the least overhead. Although Smarty offers several features and does a nice caching, the overhead of its huge libraries cannot simply be overlooked. Try Template lite, it offers almost the same features and does a nice caching

[fw-general] Zend Framework is licensed ???

2007-03-29 Thread Nahalingam N. Kanakavel
Hi, Please any one help me to understand one thing very clearly, I am trying to adopt with this zend framework for my PHP development. so I just want to know whether it was licensed and if yes, what license it is. Thanks in advance. -- with regds, Nahalingam N. Kanakavel.

Re: [fw-general] Zend Framework is licensed ???

2007-03-29 Thread Andries Seutens
Nahalingam N. Kanakavel schreef: Hi, Please any one help me to understand one thing very clearly, I am trying to adopt with this zend framework for my PHP development. so I just want to know whether it was licensed and if yes, what license it is. Thanks in advance. -- with regds,

[fw-general] Conventional Modular Layout and application wide view scripts

2007-03-29 Thread Martin Carpentier
Hi everyone, I'm currently in the process of upgrading our application to ZF 0.9.1 from 0.8 . So far it's going smoothly and I took the oportunity to convert to a Conventional Modular for convenience and because since the application is an intranet, it will eventually includes a lot of different

Re: [fw-general] Zend_Service_RememberTheMilk

2007-03-29 Thread Pádraic Brady
From what I understand the review process is temporarily in a holding pattern until the release of 1.0. I would guess a full review will take at least until then, and likely some weeks after. Admittedly I'm a little impatient about such delays too, but I guess you have to live with it and let

Re: [fw-general] Zend_Acl, lazy loading, addParentRole

2007-03-29 Thread Darby Felton
Hi Phillipe, I think this is a good feature request. Would you please create a JIRA issue for this? Thank you! Best regards, Darby Philippe Le Van wrote: Hi, I'm using Zend_Acl for a community site. I would like to use a lazy loading for access right because number of acl is too big. acl

Re: [fw-general] No error output on page with ZF 0.9.1, just blank page

2007-03-29 Thread Matthew Weier O'Phinney
-- Jeunejean Pierre [EMAIL PROTECTED] wrote (on Thursday, 29 March 2007, 10:24 AM +0200): Thank you so much Philippe $controller-throwExceptions(true) did resolve the problem. So basically, when $controller-throwExceptions() is not set to true, only parse errors are showned, but all

[fw-general] camelCaps in Zend_Db_Table_Row

2007-03-29 Thread Andrew Yager
Hi, I'm a bit slower than the rest of you. I'm doing my ZF0.8/0.9 upgrade tonight. The current version of the documentation seems to suggest that the auto camelCapsing of table field names in Zend_Db_Table_Row should still work (I take it that you now must explicitly specify the table

[fw-general] Zend_Config question

2007-03-29 Thread Chris Hartjes
I was wondering if it is possible with Zend_Config to do Apache-style loading of configuration files. By this, I mean is it possible to have a directive in a Zend_Config_Ini file that says load any .ini files that are in directory X, much like how you can ask Apache2 to load any configuration

Re: [fw-general] Conventional Modular Layout and application wide view scripts

2007-03-29 Thread Martin Carpentier
Mathew, That's exactly the kind of elegant solution I was looking for. Thanks for your fast reply. I still have a little problem though. Unless I misundersood something, when I put // rendering /application/default/views/scripts/_menu.phtml $this-render('_menu', null, true); in

[fw-general] Uncaught exception 'Zend_Db_Adapter_Exception' with message 'SQLSTATE[HY000]: General error: 26 file is encrypted or is not a database'

2007-03-29 Thread Jeunejean Pierre
Hi everyone, I try to connect to an SQLite 2 DB with Zend_Db, without success, same error with the 2 following syntaxes (the first precise 'sqlite2' as dsnprefix value). Connecting to the same DB with Propel 2 does not cause any problem. Someone would be kind to help me on this ?

RE: [fw-general] Uncaught exception 'Zend_Db_Adapter_Exception' with message 'SQLSTATE[HY000]: General error: 26 file is encrypted or is not a database'

2007-03-29 Thread Bill Karwin
SQLite databases created with SQLite version 2 cannot be used with SQLite 3, and vice versa. The file formats between these two versions are incompatible. Zend_Db uses the PDO_SQLITE extension. This supports the SQLite 3 format, and cannot open a SQLite 2 database. Does this help? Regards,

[fw-general] Re: Zend_Config question

2007-03-29 Thread Chris Hartjes
Well, the two cases are different. This proposal talks about merging two config files together where you already know the names of the configuration files. I'm looking for the ability to load a number of smaller configuration files without having to actually worry what they are actually called.

Re: [fw-general] Re: Zend_Config question

2007-03-29 Thread Rob Allen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris Hartjes wrote: Well, the two cases are different. This proposal talks about merging two config files together where you already know the names of the configuration files. Yes. I agree. I'm looking for the ability to load a number of

Re: [fw-general] Re: Zend_Config question

2007-03-29 Thread Matthew Ratzloff
On Thu, March 29, 2007 11:57 am, Rob Allen wrote: My initial instinct that this would add too much complexity to and exceed the responsibily of Zend_Config_Ini which has a one-to-one relationship with an ini file. The obvious solutions are to use some userland code to load each one

Re: [fw-general] camelCaps in Zend_Db_Table_Row

2007-03-29 Thread Matt Schmidt
Will there be any further disregard for backwards compatibility? If so, when can I expect the API to stabilize? On 3/29/07, Bill Karwin [EMAIL PROTECTED] wrote: Hi Andrew, I havn't updated the Row and Rowset documentation pages yet (I do intend to). The camelCaps treatment of column names

RE: [fw-general] camelCaps in Zend_Db_Table_Row

2007-03-29 Thread Bill Karwin
Hi Matt, I believe interface changes in Zend_Db have finished. I have no further enhancements planned at this time that will result in changing existing interfaces. There are some more enhancements planned, but they should not alter existing usage of the interface. The only possible exception

[fw-general] Re: Stuck in loop with Zend_Controller_Action::_forward() and Zend_Controller_Plugin_Abstract::preDispatch()

2007-03-29 Thread Nick Lo
A further follow up: The secret recipe seems to be to use dispatchLoopStartup() rather than preDispatch as in: class Menu_Controller_Plugin_Auth extends Zend_Controller_Plugin_Abstract { private $_auth; private $_acl; private $_noauth = array('module' = 'default',

[fw-general] Re: Stuck in loop with Zend_Controller_Action::_forward() and Zend_Controller_Plugin_Abstract::preDispatch()

2007-03-29 Thread Simon Mundy
Hi Nick So you're saying that if you set the request's action via setActionName(), it will trigger another forward? Even if it's the same value as it was before the plugin performed its check? Must have been one of those subtle changes from 0.7 - 0.9 that I missed. Thanks for spotting