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
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...
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
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
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
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
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.
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,
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
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
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
-- 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
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
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
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
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 ?
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,
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.
-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
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
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
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
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',
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
24 matches
Mail list logo