[fw-general] Zend_Form_Element_Radio + ViewHelper problem

2008-02-29 Thread Malfojan
Default decorator for Zend_Form_Element_Radio element is Zend_Form_Decorator_ViewHelper. Unfortunately, in it's render() method the constructor of the ViewHelper is called only with 4 parameters (line 113), while constructor of Zend_View_Helper_FormRadio has 5 parameters. The last one is called '

Re: [fw-general] Zend_Form - additional info and tags between form's elements

2008-02-29 Thread Malfojan
Thank you all, problem solved! -- View this message in context: http://www.nabble.com/Zend_Form---additional-info-and-tags-between-form%27s-elements-tp15740909s16154p15769035.html Sent from the Zend Framework mailing list archive at Nabble.com.

[fw-general] Zend_Form bug with fieldset tag

2008-02-29 Thread gammamatrix
I have not finished debugging this issue... I saw no issues in JIRA... Below is my generated form. As you can see, the fieldset is incorrect. there should not be an action or a method parameter. In the bottom of this post is an INI file. If the last three lines are commented out as: ;form.decor

Re: [fw-general] ZF 1.5PR comments

2008-02-29 Thread dhastings
Teemu Valimaki wrote: > > 2. Zend_Form creates labels with stripped output. It would be really good > to > have option to turn off stripping per element. I'd want to have a label, > that > has a link in it. > A work around for this problem is to pull out the view object for the element, chan

Re: [fw-general] Zend_Form and element names

2008-02-29 Thread Matthew Weier O'Phinney
-- gammamatrix <[EMAIL PROTECTED]> wrote (on Friday, 29 February 2008, 11:32 AM -0800): > > Does anyone know the status of using names with arrays? Yes. It works, and is automated when using sub forms. For more information, read the documentation (currently only in svn): http://framework.ze

Re: [fw-general] Zend_Form and element names

2008-02-29 Thread gammamatrix
Does anyone know the status of using names with arrays? >From the code: /** * Set element name * * @param string $name * @return Zend_Form_Element */ public function setName($name) { $name = $this->filtername($name); if (('0' !== $name

Re: [fw-general] Make Default Router get 1 param from /some/list/1

2008-02-29 Thread Nicolae Namolovan
This was exactly the answer I was looking for %) Because I already read and reread the docs so there was not much sense to point me there again. Maybe you should make the docs clearer.. Firstly, for me it wasn't obvious what first parameter from addRoute it's just a name ;o) And "default" is also

Re: [fw-general] Make Default Router get 1 param from /some/list/1

2008-02-29 Thread Eric Coleman
On Feb 29, 2008, at 1:33 PM, Nicolae Namolovan wrote: :controller/:action/:id do not support /key/value/ syntax. I need support for /key/value/ param, and for some controller actions /JUSTONEVALUE/, with one default rewrite rule. This actually what mine patch is doing. yeah so add the ab

Re: [fw-general] Make Default Router get 1 param from /some/list/1

2008-02-29 Thread Nicolae Namolovan
In fact class Zend_Controller_Router_Route_Module implements Zend_Controller_Router_Route_Interface, so this was took as an example of implementation and slightly modified under a new name not in the zend map, I don't think this is a problem. Even if I would extend class Zend_Controller_Router_Rou

Re: [fw-general] Make Default Router get 1 param from /some/list/1

2008-02-29 Thread Nicolae Namolovan
:controller/:action/:id do not support /key/value/ syntax. I need support for /key/value/ param, and for some controller actions /JUSTONEVALUE/, with one default rewrite rule. This actually what mine patch is doing. On Fri, Feb 29, 2008 at 7:20 PM, Eric Coleman <[EMAIL PROTECTED]> wrote: > You do

Re: [fw-general] Make Default Router get 1 param from /some/list/1

2008-02-29 Thread Eric Coleman
You don't even need a regex route really... You could define a route as: :controller/:action/:id and getParam('id') => 1 in your example. Regards, Eric On Feb 29, 2008, at 1:14 PM, Nicolae Namolovan wrote: Thanks guys, but I think there is no way to change Zend_Controller_Router_Route_Module

Re: [fw-general] Make Default Router get 1 param from /some/list/1

2008-02-29 Thread Tobias Gies
you should not edit the Zend Framework files. Rather extend them to create your own implementations. On Fri, Feb 29, 2008 at 7:14 PM, Nicolae Namolovan <[EMAIL PROTECTED]> wrote: > Thanks guys, but I think there is no way to change > Zend_Controller_Router_Route_Module behavior (what by default i

Re: [fw-general] Make Default Router get 1 param from /some/list/1

2008-02-29 Thread Nicolae Namolovan
Thanks guys, but I think there is no way to change Zend_Controller_Router_Route_Module behavior (what by default is the default router) without patching it. What I've done, just copy/paste it (Zend\Controller\Router\Route\Module.php) in mine library directory, and then added after this "

Re: [fw-general] Timing a PHP execution on a ZF -> MVC -> Layout page

2008-02-29 Thread Matthew Ratzloff
On Fri, February 29, 2008 6:53 am, apaella wrote: > > Hi all, I want to put in the bottom of my layout.phtml page the time by > the > scriptstart from the end. > > I know that precise and accurate time is "impossible" (we can't put HTML > code after the code sent), but I would know the "very last m

[fw-general] Moved: Versioning. was. License Compatibility

2008-02-29 Thread Kevin McArthur
Hi Andi et al, So what versions are currently 'latest' versions that are not EOL. 1.0.X and 1.5? In the long-run this will likely work, but in the short term, I'm not confident that I could take a 1.0.0 app and upgrade it to 1.0.4 without _any_ code changes (eg in an end-user environment). T

RE: [fw-general] License Compatibility

2008-02-29 Thread Andi Gutmans
Btw, as was mentioned you are allowed to change ZF it's just that it's not recommended for supportability reasons. Andi > -Original Message- > From: Nico Edtinger [mailto:[EMAIL PROTECTED] > Sent: Friday, February 29, 2008 4:12 AM > To: Jordan Moore > Cc: Michael B Allen; Kevin McArthur;

Re: [fw-general] Make Default Router get 1 param from /some/list/1

2008-02-29 Thread Vincent
You might be interested in http://framework.zend.com/manual/en/zend.controller.router.html#zend.controller.router.routes.regex On 29/02/2008, Nicolae Namolovan <[EMAIL PROTECTED]> wrote: > > Yes, but I want to do one rewrite route for all actions.. I mean > change the default router. > For exampl

Re: [fw-general] Make Default Router get 1 param from /some/list/1

2008-02-29 Thread Nicolae Namolovan
Yes, but I want to do one rewrite route for all actions.. I mean change the default router. For example, very often I need just one paramater, so it doesn't make too much sense to pass param name too.. I'd like to get one_param from /controller/action/one_param.. Any way to do that with getParam()

RE: [fw-general] Timing a PHP execution on a ZF -> MVC -> Layout page

2008-02-29 Thread apaella
Keith Pope-3 wrote: > > > I would suggest using xdebug + cacheGrind instead... > > Won't works. I've to show this _into_ the browser for each request. Also firebug is not good. Thanks -- View this message in context: http://www.nabble.com/Timing-a-PHP-execution-on-a-ZF--%3E-MVC--%3E-Lay

RE: [fw-general] Timing a PHP execution on a ZF -> MVC -> Layout page

2008-02-29 Thread Keith Pope
I would suggest using xdebug + cacheGrind instead... Keith Pope Web Developer -Original Message- From: apaella [mailto:[EMAIL PROTECTED] Sent: 29 February 2008 14:53 To: fw-general@lists.zend.com Subject: [fw-general] Timing a PHP execution on a ZF -> MVC -> Layout page Hi all, I wan

[fw-general] Timing a PHP execution on a ZF -> MVC -> Layout page

2008-02-29 Thread apaella
Hi all, I want to put in the bottom of my layout.phtml page the time by the scriptstart from the end. I know that precise and accurate time is "impossible" (we can't put HTML code after the code sent), but I would know the "very last moment" when I can put code into the HTML. any suggestions? --

Re: [fw-general] redirect from a viewhelper

2008-02-29 Thread Matthew Weier O'Phinney
-- pat <[EMAIL PROTECTED]> wrote (on Thursday, 28 February 2008, 07:42 PM -0600): > I've run into a problem. I am moving much of my action controller logic > into viewhelpers and I > have come across a fragment that no longer seems to work after the > transplant. > >$this->_redirector

Re: [fw-general] Zend_Form: Cascading effect in Zend_Form

2008-02-29 Thread Matthew Weier O'Phinney
-- Nick Lo <[EMAIL PROTECTED]> wrote (on Friday, 29 February 2008, 10:39 AM +1100): > Bit of a shocker of a subject line but I'm a bit busy to think of a better > one right now! The "cascading" is with reference to the way CSS works > really . > > What I'm after is just some confirmation that the

Re: [fw-general] Zend_Form: Cascading effect in Zend_Form

2008-02-29 Thread Amr Mostafa
That would be a good improvement. I always felt that way as well, but could never put it down to clear description as you did :) On Fri, Feb 29, 2008 at 1:39 AM, Nick Lo <[EMAIL PROTECTED]> wrote: > Bit of a shocker of a subject line but I'm a bit busy to think of a > better one right now! The "c

[fw-general] Checkbox View Helper (svn version)

2008-02-29 Thread Laurent Melmoux
Hi All, I found a little issue with the formCheckbox view helper. If the value of the element is set to NULL $attribs['checked'] is not unset on line 63 because isset($attribs['checked']) is evaluated to false. So we have checked="" in the xhtml element which is rendered as checked in firefo

Re: [fw-general] License Compatibility

2008-02-29 Thread Nico Edtinger
Jordan Moore wrote: Shipping with a snapshot of the ZF was my plan. Also, I'm not going to be modifying ZF. It's just going to be used by the application. In this case license compatibility doesn't really matter. ZF stays under its license and your code is CC licensed. It's quite similar to

RE: AW: [fw-general] Zend_Search_Lucene - Pagination

2008-02-29 Thread Keith Pope
Cool, that looks nice :) From looking around, Lucene has to return all matching records to do the scoring anyway, and it only retrieves the full doc when you query it. Simon's mention of memory reminded me to check my script usage, which came up with some interesting results. My index contain

[fw-general] redirect from a viewhelper

2008-02-29 Thread pat
Hi All, I've run into a problem. I am moving much of my action controller logic into viewhelpers and I have come across a fragment that no longer seems to work after the transplant. $this->_redirector = $this->_helper->getHelper('Redirector'); $this->_redirector->gotoUrl(

Re: AW: [fw-general] Zend_Search_Lucene - Pagination

2008-02-29 Thread Jurriƫn Stutterheim
A way to paginate the results from within ZSL itself would be great. The way simon described is pretty much how I paginate my search results. To make pagination a bit easier, I wrote Zym_Paginate (http://www.zym-project.com/download ) It's a pagination component that can paginate normal arrays,

Re: AW: [fw-general] Zend_Search_Lucene - Pagination

2008-02-29 Thread Simon Mundy
Yeah, but that's nothing to do with using the ArrayIterator or not - at least using it is a cleaner way of accessing the data! I don't know how easy it would be to implement a paging component within Zend_Search itself... perhaps Alex would be the best person to comment on that. Afaik usi

AW: [fw-general] Zend_Search_Lucene - Pagination

2008-02-29 Thread Stefan Oestreicher
Afaik using an iterator won't get you anything. You can just as well use array_slice to extract the relevant hits. Memory consumption won't be affected since the find method returns the whole result array (using lots of memory) no matter what you do with it afterwards. Please correct me if I'm wro

RE: [fw-general] Zend_Search_Lucene - Pagination

2008-02-29 Thread Keith Pope
Thx Simon thats great, I didnt know about the LimitIterator :) Keith Pope Web Developer -Original Message- From: Simon Mundy [mailto:[EMAIL PROTECTED] Sent: 29 February 2008 10:07 To: Keith Pope Cc: fw-general Subject: Re: [fw-general] Zend_Search_Lucene - Pagination Hi Keith - here'

Re: [fw-general] Zend_Search_Lucene - Pagination

2008-02-29 Thread Simon Mundy
Hi Keith - here's my solution. Works OK so far... $pg = current page (1 -> ...) $pp = per page (defaults to 10) $index = Zend_Search_Lucene::open($this->_index); $query = Zend_Search_Lucene_Search_QueryParser::parse($query); $hits = new ArrayObject($index-

[fw-general] Zend_Search_Lucene - Pagination

2008-02-29 Thread Keith Pope
Hi, I am prototyping a site search using Zend_Search, and was wondering if anyone had a good way of paginating the results? Keith Pope Web Developer -Original Message- From: Andi Gutmans [mailto:[EMAIL PROTECTED] Sent: 29 February 2008 05:55 To: Jordan Moore; Kevin McArthur Cc: Mich