[fw-general] Zend Bootstrapping

2009-07-29 Thread Matthias W.
Hi, I replaced my old bootstrap.php and Initializer.php by the new Bootstrap.php (class extends Zend_Application_Bootstrap_Bootstrap). In my Initializer I had the functions routeStartup and routeShutdown where I called some functions. In my new implementation I created a controller plugin

Re: [fw-general] Zend Bootstrapping

2009-07-29 Thread Ben Scholzen 'DASPRiD'
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Is this possible? No, use a controller plugin for that. ... : ___ _ ___ ___ ___ _ ___: : | \ /_\ / __| _ \ _ (_) \ : : | |) / _ \\__ \ _/ / | |) | : : |___/_/:\_\___/_| |_|_\_|___/ :

Re: [fw-general] Zend Bootstrapping

2009-07-29 Thread Matthias W.
This is what I'm doing till now. How can I disable bootstrapping the view, to initialize it in the plugin? Till Now the Botstrap class initializes the view and I'm overwriting it in my Plugin... DASPRiD wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Is this possible? No, use a

[fw-general] [fw-mvc] - Where to put common DB calls

2009-07-29 Thread Vibhor Singh
Hi, Can someone plz tell me whether there is any provision in ZF where I can put my common DB related functionalities, something like how action helpers is to controllers? All suggestions are welcome. Thanks, Vibhor

[fw-general] Re: [fw-mvc] - Where to put common DB calls

2009-07-29 Thread Abraham Block
I would suggest either to use a DAO pattern to encapsulate all your database calls in a well known area, or to read in your queries from some kind of configuration file (a named query) approach. This will help from having SQL queries spread like an infestation of ants. Is there anything specific

Re: [fw-general] Planet Zend Framework

2009-07-29 Thread Matthew Weier O'Phinney
-- Tom Graham tom.gra...@jadu.co.uk wrote (on Tuesday, 28 July 2009, 09:19 PM +0100): I noticed Zend have registered various planet domain names for Zend Framework. Domain name: PLANETZF.COM Registrant: Zend Technologies Ltd 12 Abba Hillel St. Ramat-Gan, Israel 52506 Does anyone from

[fw-general] Re: [fw-mvc] - Where to put common DB calls

2009-07-29 Thread Ralph Schindler
Typically, DB related calls are a subset of the responsibilities of your model since the domain model is typically closely related to your data model. If you have some domain specific queries that you need to run, it might make sense to make a model specifically for them, and pass the object

Re: [fw-general] Planet Zend Framework

2009-07-29 Thread Alister Bulman
On Wed, Jul 29, 2009 at 2:36 PM, Matthew Weier O'Phinneymatt...@zend.com wrote: -- Tom Graham tom.gra...@jadu.co.uk wrote (on Tuesday, 28 July 2009, 09:19 PM +0100): I noticed Zend have registered various planet domain names for Zend Framework. This has been an interesting chicken and the

[fw-general] encoding Zend_form UTF-8 to ISO...

2009-07-29 Thread Juan Pablo Marroni
Hi, I have a question, How indicate to Zend_form the encoding? I want to use encoding ISO because my app is in this charset, but the Zend_form is utf-8 currently Greetings and thanks I have this code: Controller: $form = new Zend_Form(); $form-setName()

Re: [fw-general] encoding Zend_form UTF-8 to ISO...

2009-07-29 Thread Hector Virgen
Zend_Form uses the view from the action controller's view renderer by default. Forgot to send to list :) -- If you're using the new Zend_Application, you can add this line to your application.ini: resources.view.encoding = ISO-8859-1 Or, you can manually set the view early in your application:

[fw-general] Warning raised in Zend_Acl::removeRoleAll()

2009-07-29 Thread Andrew Ballard
Using version 1.8.4 of the framework, I am getting a PHP warning on a login page I wrote. It is only a warning, so it could be suppressed, and it happens prior to a redirect so the user never sees an error message in any event, but I would like to eliminate the warning rather than ignore it:

[fw-general] Zend Form - Remove class=required or class=optional from label tag

2009-07-29 Thread holografix .
Hi When defining form elements as required or not, the output is something like this: label for=header class=requiredHeader/label label for=header class=optionalHeader/label Is it possible to remove the required or optional and set them with another values ? Cheers holo

[fw-general] Zend_Form with elements having array names

2009-07-29 Thread Mike Wright
Hi all, I'm up against something that has me stumped (not too hard to do ;) In html it is possible to name form elements with array names. For example, if I wanted a collection of an arbitrary number of elements such as favorite colors I could create elements like: input

Re: [fw-general] Multiple containers in navigation application resource

2009-07-29 Thread tobiaaaas
I would also like to know this. Is it possible? admirau wrote: Is there a possibility to have multiple menus constructed via application.ini? Now I do: resources.view[] = resources.navigation.pages.indexFoo.label = Foo resources.navigation.pages.indexFoo.controller = index

Re: [fw-general] Zend_Form with elements having array names

2009-07-29 Thread Hector Virgen
Do you need multiple text inputs that post as an array? You could create a multiText form element that extends Zend_Form_Element_Multi. Take a look at Zend_Form_Element_MultiRadio to see how it works. Yesterday I had to create a series of checkboxes that were built to look like a navigation tree

Re: [fw-general] Multiple containers in navigation application resource

2009-07-29 Thread admirau
tobis wrote: I would also like to know this. Is it possible You may have one navigation in app.ini, and render only part when needed, using something like this: $myMenuContainer = $nav-getOneByLabel('myLabel'); $this-navigation()-menu()-renderMenu($myMenuContainer); (*not tested)

[fw-general] Zend_Service_Ebay is ready for review

2009-07-29 Thread Renan de Lima
Hi, I and Bosco are working on Zend_Service_Ebay proposal this is ready for your review please visit http://framework.zend.com/wiki/pages/viewpage.action?pageId=13107308 enjoy!! thanks, -- Renan de Lima Barbosa gtalk/msn: renandel...@gmail.com skype: renandelima +55 61 8166-7755

[fw-general] getting to the bootstrap instance

2009-07-29 Thread B. Kamer
Hi, I am unsure if and how I can get an instance to a registered resource, if the context is not within an action controller. Inside an controller you can do something like : $bootstrap = $this-getInvokeArg('bootstrap'); if ($bootstrap $bootstrap-hasResource('log')) $this-logger =

Re: [fw-general] getting to the bootstrap instance

2009-07-29 Thread Hector Virgen
I believe the front controller has a reference to the bootstrap in its params: $bootstrap = Zend_Controller_Front::getInstance()-getParam('bootstrap'); -- Hector On Wed, Jul 29, 2009 at 1:28 PM, B. Kamer p...@bushbaby.nl wrote: Hi, I am unsure if and how I can get an instance to a

Re: [fw-general] getting to the bootstrap instance

2009-07-29 Thread B. Kamer
Yes, you are correct, this works... thank you! On 29 jul 2009, at 22:32, Hector Virgen wrote: I believe the front controller has a reference to the bootstrap in its params: $bootstrap = Zend_Controller_Front::getInstance()- getParam('bootstrap');

[fw-general] Dead link in ZF wiki in Suversion Standards

2009-07-29 Thread Thomas D.
Hi, in http://framework.zend.com/wiki/display/ZFDEV/Subversion+Standards there is a link to http://sandbox.zend.com/download/ which seems to be down (in the Anonymous Checkout paragraph). -- Regards, Thomas

Re: [fw-general] Alphabetic paginator?

2009-07-29 Thread SzRudi
Hi, I needed a solution for a drop down alphanumeric paginator for names with select options like: Abigail - Caleb Eliza - Gavin Isabella - Matthew My quick solution is probably very far from the best solution, but here it is: (thanks for any comments, improvements or anything :) ) $select =

Re: [fw-general] Seperate action to proccess a form

2009-07-29 Thread aSecondWill
Hi, Thanks Ralph. Much appreciated. I ended up string the form in the registry, which seemed to work pretty well. Thanks again, Will Ralph Schindler-2 wrote: _forward will return back to the Action Controller, but will actually create a new instance of the action controller to utilize.

Re: [fw-general] confusion between resource plugins and resources in docs

2009-07-29 Thread ronnystalker
Thanks for the speedy reply Matthew. I have submitted the issue tracker ticket: See: http://framework.zend.com/issues/browse/ZF-7416 - (P.S The level of dedication you have put into this project is inspiring). - Matthew Weier O'Phinney-3 wrote: -- ronnystalker