[fw-general] Dojox.grid.DataGrid Fonts/Style changing

2009-08-21 Thread Naimesh.Trivedi (Gmail)
Hello ! I am new to Dojo. I have used dojox.grid.DataGrid and dojox.data.QueryReadStore. My grid is showing characters in very small size like 8px size. 1) Can anybody help me, how to override and specify, font-family, font-size etc. attribute for header and rows in dojox.grid. Datagrid. Followi

[fw-general] Re: [fw-mvc] [fw-general] call a custom action helper in a model file

2009-08-21 Thread Ronald Villar David
Hi there, Without knowing what your custom helper actually does, I guess you could take this in a couple of directions: - You could refactor it so that the functionality in the Custom Helper Class is in the Model, If you have controller specific logic, then perhaps you can create another

Re: [fw-general] Inserting a text string or paragraph into Zend_Form

2009-08-21 Thread Eugene Morgan
The quick way is to use the Description decorator as follows ... $textElement = new Zend_Form_Element('someElement'); $textElement->setDescription('TEXT'); If you are wanting something more complex you could define your own decorator. On Thu, Aug 20, 2009 at 11:49 AM, Enkhbilguun Erdenetsogt wrot

Re: [fw-general] Zend_View_Helper Supply constants to a view helper

2009-08-21 Thread J DeBord
On Fri, Aug 21, 2009 at 8:01 PM, Matthew Weier O'Phinney wrote: > -- J DeBord wrote > (on Friday, 21 August 2009, 06:44 PM +0200): > > What is the preferred approach to supply constant values to a View > Helper? > > > > If a view helper requires configuration constants. For example, a google > ap

Re: [fw-general] Zend_View_Helper Supply constants to a view helper

2009-08-21 Thread Matthew Weier O'Phinney
-- J DeBord wrote (on Friday, 21 August 2009, 06:44 PM +0200): > What is the preferred approach to supply constant values to a View Helper? > > If a view helper requires configuration constants. For example, a google api > key or amazon web services access keys, is it best to: > > A) Make the de

[fw-general] writeClose(false) in routeStartup() : unexpected behaviour

2009-08-21 Thread debussy007
Hi, When calling Zend_Session::writeClose(false) in a routeStartup() function, it seems that it is ignored and all the following writeClose calls will be ignored. I have done some tests with writeClose(false) method : request A) session <- 1 (put value 1 into some session variable) writeClose(f

Re: [fw-general] Zend_View_Helper Supply constants to a view helper

2009-08-21 Thread Hector Virgen
I like the idea of placing the values in a config, but I don't like the idea of the view helper reading from the config. It may be better for the view helper to be injected with value early on, like perhaps in a bootstrap resource (which works naturally with configs). // in Bootstrap.php (untested)

[fw-general] Zend_View_Helper Supply constants to a view helper

2009-08-21 Thread J DeBord
What is the preferred approach to supply constant values to a View Helper? If a view helper requires configuration constants. For example, a google api key or amazon web services access keys, is it best to: A) Make the developer put these values in a Zend_Config object and then access the config

Re: [fw-general] Question regarding models

2009-08-21 Thread Pádraic Brady
Hi Koen, Marry the query to a domain model method (i.e. add it to the Data Mapper), and filter it into domain objects before returning the collection. You'll need a Collection class, just like Zend_Db_*'s rowset classes for the root of the aggregate (User) but it needn't be more than a general

[fw-general] Saving a object with a many-to-many relationship

2009-08-21 Thread Diego Potapczuk
Hi, I want to know if Zend_DB_Table support saving a object with a many-to-many relationship automatically, like something like this: blog_post -> blog_post_tag -> tag (A post can have many tags and a tag can have many posts) Where i save a blog post with some tags in it ::: Diego Potapczuk

Re: [fw-general] Simultaneous asynchronous ajax requests and Zend_Session

2009-08-21 Thread debussy007
I've come across this article which answer to my question: http://ch2.php.net/manual/en/ref.session.php#64525 I'll use the idea to call Zend_Session's writeClose($readonly = true) method as soon as I finish writing into session, but now I wonder how I can re-open for writing later in the code in

[fw-general] Re: [fw-mvc] [fw-general] call a custom action helper in a model file

2009-08-21 Thread Carlo Costantini
Vibhor you are missing Jeroen's point. Calling action helpers inside models would be a poor design decision. The model should not need anything that isn't supplied to it by the code calling it. Having an action helper which provides a large amount of functionality would be putting too much

Re: [fw-general] Question regarding models

2009-08-21 Thread Jurian Sluiman
Op Friday 21 August 2009 16:01:42 schreef mbneto: > Koen, > > When you have to use join it is recommend to use an ORM such as doctrine > that can handle this in a more complex way. > > Matthew has posted something about it in > http://www.slideshare.net/weierophinney/playdoh-modelling-your-objects-

Re: [fw-general] Access Response object from plugin

2009-08-21 Thread Matthew Weier O'Phinney
-- guillermo pages wrote (on Friday, 21 August 2009, 03:55 PM +0200): > Hi, > > I would like to access the Zend_Controller_Response_Object_Http() from a > plugin > that is called in Route Shutdown. > > When i create the plugin, i get the the request object from the parameter : > public functio

[fw-general] Simultaneous asynchronous ajax requests and Zend_Session

2009-08-21 Thread debussy007
Hi, For each request I open a session to store the last action that has been accessed and other stuff. In one of my pages I want to call simultneously different asynchronous ajax calls, but those will act as synchronous because in PHP, the sessions are locked (and as mentionned before, for each

Re: [fw-general] Question regarding models

2009-08-21 Thread mbneto
Koen, When you have to use join it is recommend to use an ORM such as doctrine that can handle this in a more complex way. Matthew has posted something about it in http://www.slideshare.net/weierophinney/playdoh-modelling-your-objects-1766001 On Fri, Aug 21, 2009 at 6:36 AM, Koen wrote: > I'v

[fw-general] Access Response object from plugin

2009-08-21 Thread guillermo pages
Hi, I would like to access the Zend_Controller_Response_Object_Http() from a plugin that is called in Route Shutdown. When i create the plugin, i get the the request object from the parameter : public function routeShutdown(Zend_Controller_Request_Abstract $request); but how can i acces

Re: [fw-general] Question regarding models

2009-08-21 Thread Koen
Hi Pádraic, Thanks for mentioning the URL, it's very interesting! Still I have some questions left. As an example lets say I want to list 50 users. Every user has several linked fields in another table, like department, company, etc. If doing this the aggregated way, you will end up having it lea

Re: [fw-general] Question regarding models

2009-08-21 Thread Diego Potapczuk
Hi Pádraic Brady, Thansk for improving the documentation about how to proper implement an abstraction layer between Data Acess and the Application, i myself was looking like crazy for something like this, because im starting to develop an application and was designing its architecture, normally in

[fw-general] RE: [fw-mvc] [fw-general] call a custom action helper in a model file

2009-08-21 Thread Vibhor Singh
Hello Jorean, Thanks for your reply. Let me explain you my case. Hope it helps. I have made a custom Helper file that is used by many controller files in a modular ZF application. So I have placed it in a folder at the root level, so that it can be accessed wherever necessary. There i

[fw-general] Re: [fw-mvc] [fw-general] call a custom action helper in a model file

2009-08-21 Thread Jeroen Keppens
Hi Vibhor, I don't think it's good MVC to call action helpers (part of the controller) directly from your model. I would write the functionality (can you explain a bit what you want to do), in separate classes in your library and wrap the action helper around it for use in the controller.

Re: [fw-general] Question regarding models

2009-08-21 Thread Pádraic Brady
Hi Koen, I just published a chapter on implementing the Model you may want to look into to see how it fits. The book is free to read ;). http://www.survivethedeepend.com/zendframeworkbook/en/1.0/implementing.the.domain.model.entries.and.authors I think the main point I think is that you are thin

[fw-general] Question regarding models

2009-08-21 Thread Koen
I've been looking at the new Quick Start in the ZF manual, particularly the model part. For a new project I'm trying to create my models in the same way (including a data mapper, etc). Unfortunately I don't know how to handle the relationships. When requesting data from your model you often want t

Re: [fw-general] zend_form_file decorator how to question

2009-08-21 Thread Thomas Weidner
The exception text declares the problem. "No file decorator found... unable to render file element " This problem is not unique to the File element. You will also have problems when you do the same with Captcha or Image. When you say "don't use it" but the element needs at last this single dec

[fw-general]

2009-08-21 Thread Vibhor Singh
Hi all, Is there any way to call a custom action helper in a model file? Can anyone suggest a different approach? Any help would be greatly appreciated. Thanks, Vibhor