Re: [fw-general] How do you put Zend_Log into bootstrap correctly? - 2

2009-09-30 Thread W Itch
Thanks Peter you solved it! I have full control over the syslog now. :-) *Bootstrap* http://pastebin.com/f788c3a29 *Edit view page* http://pastebin.com/f5f45c31f On Wed, Sep 30, 2009 at 8:05 AM, Peter Warnock wrote: > In your example, the logger follows the return, which will never execute

Re: [fw-general] Duplicate id attributes for dd's and dt's - Zend_Form

2009-09-30 Thread Fred Jiles
Sorry I thought you were trying to change the id on the form element. I should have read closer. You can do this with form decorators. You should be able to add a decorator to the elements that changes the id attribute I think. Decorators are kind of tricky. Fred On Wed, Sep 30, 2009 at 2:51 P

Re: [fw-general] Duplicate id attributes for dd's and dt's - Zend_Form

2009-09-30 Thread Hector Virgen
This seems like a bug. I would think that setElementBelongsTo() would affect all generated IDs. -- Hector On Wed, Sep 30, 2009 at 11:51 AM, Eugene Morgan < eugenemorganrea...@gmail.com> wrote: > Thanks for the tip, but it doesn't quite do what I'm looking for ... > it looks like the id attribut

[fw-general] Autoloading Doctrine models/base models

2009-09-30 Thread Dodger
I need something like: File NameClass PrefixBase Prefix Model Name -- Post.php Blog_Model_ Post (Blog_Model_Post) BasePost.php Blog_Model_

Re: [fw-general] Duplicate id attributes for dd's and dt's - Zend_Form

2009-09-30 Thread Eugene Morgan
Thanks for the tip, but it doesn't quite do what I'm looking for ... it looks like the id attributes of the and tags are generated based on the element's name rather than its id. So when I manually change the element's id the and id's are not affected. On Wed, Sep 30, 2009 at 11:28 AM, Fred Ji

Re: [fw-general] Duplicate id attributes for dd's and dt's - Zend_Form

2009-09-30 Thread Fred Jiles
Can you possible use the setAttribute method to set the id manually? $element->setAttrib('id', 'instance1_text') Just append the id with something. Fred On Wed, Sep 30, 2009 at 12:01 PM, Jonathan Maron wrote: > Hello Eugene and others > > I have a similar issue when I place multiple navigatio

Re: [fw-general] Duplicate id attributes for dd's and dt's - Zend_Form

2009-09-30 Thread Jonathan Maron
Hello Eugene and others I have a similar issue when I place multiple navigation elements (Zend_Navigation) on to one page. Also in this case, I get multiple id attributes that are identical, which lead to invalid XHTML 1.0 Strict. Up to now, I have not found a good solution to this issue. Howeve

[fw-general] Duplicate id attributes for dd's and dt's - Zend_Form

2009-09-30 Thread Eugene Morgan
I have a page that can potentially have multiple instances of the same form. I know I can use setElementsBelongTo() to prevent having more than one form element with the same name. But is there any similar way to prevent the dt and dd tags from getting assigned the same id attributes over and over

Re: [fw-general] Caching complex forms

2009-09-30 Thread Саша Стаменковић
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

Re: [fw-general] Caching complex forms

2009-09-30 Thread Саша Стаменковић
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

Re: [fw-general] Zend form performances

2009-09-30 Thread Саша Стаменковић
Thanks for the response Matt. My profiler says that lot of time is spent on fetching data and executing setMultiOptions on select elements. I guess caching can help. Only I'm thinking about caching strategy... Will get back after optimization... Regards, Saša Stamenković On Wed, Sep 30, 2009 a

Re: [fw-general] Caching complex forms

2009-09-30 Thread holografix .
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 =

[fw-general] Zend_Navigation and XML file

2009-09-30 Thread Mike974
Hi everyone, I used Zend_Navigation to display a menu with several items, and for each item the corresponding submenu. I used an XML file to manage the menu/submenu structure. The problem is when I have a link inside a page which links to a controller and an action, i have to declare it into

Re: [fw-general] Zend form performances

2009-09-30 Thread Matthew Weier O'Phinney
-- umpirsky wrote (on Wednesday, 30 September 2009, 12:43 AM -0700): > I have this form: > During the form initialiation, I'm performing 2 queries to get options for > selects: > 0.00131SELECT `brand`.* FROM `brand` ORDER BY `title` ASC > 0.00082 SELECT `location`.* FROM `locatio

[fw-general] Re: ZF 1.9.3 and phpunit 3.4.0 zf_tool problem

2009-09-30 Thread Ladislav Prskavec
Ladislav Prskavec wrote: If run zf tool: >zf version Fatal error: Cannot redeclare class phpunit_framework_testsuite_dataprovider in /usr/local/zend/share/pear/PEAR/PHPUnit/Framework/TestSuite/DataProvider.php on line 64 Using Ubuntu 9.04 with Zend Server CE 4.0.5 (php 5.2.10, tested zf 1

Re: [fw-general] Caching complex forms

2009-09-30 Thread Саша Стаменковић
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

Re: [fw-general] Caching complex forms

2009-09-30 Thread Саша Стаменковић
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

Re: [fw-general] Caching complex forms

2009-09-30 Thread holografix .
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

[fw-general] Zend_AMF: Multiple typed objects not being passed correctly to functions

2009-09-30 Thread Richard Chiswell
Hello, I'm currently having problems with the Zend Framework Zend_AMF module- basically we were using Zend Framework 1.8.0 (and we've managed to upgrade to 1.8.3 without problems), but once we upgrade to 1.8.4 or above then Zend_AMF stops working the way it used to when multiple objects are u

[fw-general] Error with running Zend stuido viedo example!

2009-09-30 Thread Antonio08
Hi, After creating the project and inserting the code from the video example "simple zend and dojo application" i keep getting the following error: PHP Notice: Undefined index: in C:\Zend\ZendServer\share\ZendFramework\library\Zend\Form.php on line 1025 PHP Fatal error: Call to a member function

Re: [fw-general] Decorators again

2009-09-30 Thread Саша Стаменковић
One more question. This decorators I use for rendering $decorators = array( 'Label', 'ViewHelper', array('HtmlTag', array('tag' => 'div', 'class' => 'slider'/*, 'placement' => 'prepend'*/)), ); rendered: xxx: 0 I want this: xxx: 0 How can I hammer it out? Regards, Saš

[fw-general] Zend form performances

2009-09-30 Thread umpirsky
Hi. I have this form: class Automobili_Form_Search extends Zend_Form { /** * Constructor. * * @param mixed $options */ public function __construct($options = null) { parent::__construct($options); // Add brand

[fw-general] URL view helper does not support array params when using Zend_Controller_Router_Route

2009-09-30 Thread asgeo1
I am creating a URL like so: $this->view->url(array('sort' => array('param1','param2')); Notice the array of params for 'sort'. This works fine when I am using the standard router. If I use my own router, I always get an error: $router->addRoute('controlleralias', new Zend_Controller

Re: [fw-general] Caching complex forms

2009-09-30 Thread 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 instances. 2009/9/30 Саша Стаменковић : > But he can cache rendered content, then time will be spent just on pullin