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
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
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
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
-- 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
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
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)
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
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
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
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
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
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-
-- 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
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
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
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
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
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
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
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.
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
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
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
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
25 matches
Mail list logo