I'ts not 3 times slower, my test form depends on db speed, which is changing
like mad :P
Regards,
Saša Stamenković
On Wed, Sep 30, 2009 at 3:58 PM, Саша Стаменковић wrote:
> It failed because I'm adding elements like $this->addElement($brand); and
> name is not provided, this way, you take name
It failed because I'm adding elements like $this->addElement($brand); and
name is not provided, this way, you take name from element:
public function addElement($element, $name = null, $options = null) {
if (!is_array($options)) {
$options = array();
}
// A plu
Hi
Can you post your solution here ?
Cheers
holo
2009/9/30 Саша Стаменковић
> Made this method work, form is now 3 times slower :(
>
> Regards,
> Saša Stamenković
>
>
>
> On Wed, Sep 30, 2009 at 11:49 AM, Саша Стаменковић wrote:
>
>> Tried to add
>> public function addElement($element, $name =
Made this method work, form is now 3 times slower :(
Regards,
Saša Stamenković
On Wed, Sep 30, 2009 at 11:49 AM, Саша Стаменковић wrote:
> Tried to add
> public function addElement($element, $name = null, $options = null)
> {
> if (!is_array($options)) {
> $options = arr
Tried to add
public function addElement($element, $name = null, $options = null)
{
if (!is_array($options)) {
$options = array();
}
// A plugin loader is implicitly created if default decorators are
loaded
$options['disableLoadDefaultDecorators'] = t
Hi
Thank you all for the tips. I will try this in a few days.
Cheers
holo
2009/9/30 keith Pope
> You may want to look at this:
>
> http://ishouldbecoding.com/tag/zend-framework
>
> Theres a post about Zend_Form and the Pluginloader, it shows a way to
> reduce the amount of plugin loader instan
You may want to look at this:
http://ishouldbecoding.com/tag/zend-framework
Theres a post about Zend_Form and the Pluginloader, it shows a way to
reduce the amount of plugin loader instances.
2009/9/30 Саша Стаменковић :
> But he can cache rendered content, then time will be spent just on pullin
But he can cache rendered content, then time will be spent just on pulling
html from cache (shooting in the dark) ;)
I would try both and do some benchmarking - plz share the results.
Regards,
Saša Stamenković
On Wed, Sep 30, 2009 at 8:25 AM, Peter Warnock wrote:
> I would only cache if it's vi
I would only cache if it's visibly slow, or you're running out of memory. If
you're going to cache, cache the output since most of the overhead is used
in rendering. Keep in mind, you lose the ability to pre-populate the form.
- pw
On Mon, Sep 28, 2009 at 4:49 AM, holografix . wrote:
>
> Hi
>
>
Hi
I have several complex forms in the application and I would like to know if
there is any benefit in caching those forms.
If so, what would be the best way to go? Cache the classes or the output of
the forms?
Cheers
holo
10 matches
Mail list logo