Re: [fw-general] Adding Zend_Application_Module_Bootstrap file causes application to fail

2009-05-09 Thread Chris Martin
I am running into this as well (rev 15472). When using multiple controller directories and Zend_Application_Module_Bootstrap bootstraps it recurses through... {main}( ) ../index.php:0 Zend_Application_Bootstrap_BootstrapAbstract-bootstrap( ) ../index.php:49

[fw-general] Re: Re[fw-general] stricting display of links to non-authorized pages in view scripts- how to?

2008-10-31 Thread Chris Martin
You could make a view helper. Here's mine, you'd need to adjust to taste: class My_View_Helper_IsAllowed extends Zend_View_Helper_Abstract { public function isAllowed($resource = null, $privilege = null) { $front = Zend_Controller_Front::getInstance(); if

[fw-general] Re: Re[fw-general] stricting display of links to non-authorized pages in view scripts- how to?

2008-10-31 Thread Chris Martin
what I did so far, but I'm not happy with all those 'if/else' clauses in my view script. I was hoping for a better way. Chris Martin wrote: You could make a view helper. -- View this message in context: http://www.nabble.com/Restricting-display-of-links-to-non-authorized-pages

Re: [fw-general] Zend_Form: single error message for logins

2008-10-30 Thread Chris Martin
Steven Szymczak wrote: I have a login form with just two fields for username and password. There are length and regex validators attached to both, but what I would like to do is return a single generic login failed message if any of the validators fail. How might I go about

Re: [fw-general] Outputting an image

2008-10-24 Thread Chris Martin
The following self-contained example works fine for me in my environment. Try it on yours, it may help to narrow the problem down further: public function imgtestAction() { $this-_helper-layout-disableLayout(); $logo =

Re: Re: [fw-general] Framework setup for local dev. and shared hosting.

2008-10-23 Thread Chris Martin
Rob Allen-3 wrote: Out of interest, do you have a .htaccess file in your project root folder to redirect all traffic to the ./public? My index.php/.htaccess setup is modified a bit... I have an .htaccess file in my project root folder that rewrites all requests to a index.php which

Re: Re: [fw-general] Framework setup for local dev. and shared hosting.

2008-10-23 Thread Chris Martin
^public/.*$ - [NC,L] RewriteRule ^.*$ index.php [NC,L] Chris Martin wrote: My index.php/.htaccess setup is modified a bit... I have an .htaccess file in my project root folder that rewrites all requests to a index.php which is also in my project root folder. For any images/css/js/etc. that I

Re: [fw-general] Zend_Form Decoration

2008-10-22 Thread Chris Martin
nwhiting wrote: Hello, I am using the Zend_Form and am Having quite a few problems with the decoration. What I am trying to achieve is get the form to render with the following html output of something like this div class=something div class=something label/label

Re: [fw-general] How do I factor out tasks common to every action controller?

2008-10-15 Thread Chris Martin
Steven Szymczak wrote: Every one of my action controllers has an init() function that pulls a config object from the registry and uses it to set some paths used throughout the site (e.g.): public function init() { $view_cfg = Zend_Registry::get('SITE_CFG');

Re: [fw-general] Zend_Form File element toggle between image

2008-10-04 Thread Chris Martin
Edward Haber wrote: 3) Is there a problem with the current version of the Zend_Form_Element_File? The element doesn't appear to print with the row decorator. I am also seeing this problem in the release-1.6 branch (rev 11673)... I've created an issue report:

Re: [fw-general] XML-RPC Server and defining return types within an array of struct

2007-10-10 Thread Chris Martin
Nick Lo-2 wrote: On the issue note I was also wondering whether the issue I pointed out with the Word characters could be seen as a Zend_XmlRpc_Server issue or merely a note about filtering out the data properly. Either way it would be less of an issue if it was possible to define

Re: [fw-general] XML-RPC Server and defining return types within an array of struct

2007-10-09 Thread Chris Martin
Nik, Sorry for the plagiarism, your wording was perfect. I just wanted to add some additional details to the question, as it pertained to my tests. Hopefully someone has some pointers. :) It may end up that an issue needs to be submitted to the Zend Tracker. Nick Lo-2 wrote: Hi Chris,

[fw-general] XML-RPC Server and defining return types within an array of struct

2007-10-08 Thread Chris Martin
My XML-RPC Server method returns an array of structs, such as: struct[] { int $id, string $name, dateTime.iso8601 $created_dt } /** * GetNames * * @return array */ function GetNames() { $ret = array( array('id'=1, 'name'='Jack', 'created_dt'=1191877812),