[fw-general] Zend_Controller_Action_Helper_Url BUG or expected bahavior?

2008-11-18 Thread Vladas Diržys
Why Zend_Controller_Action_Helper_Url::simple() doesn't set the baseUrl? It's a bit confusing, because another method Zend_Controller_Action_Helper_Url::url() does setting the baseUrl. -- Pagarbiai, Vladas Diržys Tel.: +370 620 69020 www.dirzys.com

Re: [fw-general] Zend Framework 1.7 is now available!

2008-11-18 Thread Garri Santos
When will the PDF Programmer Reference Guide for 1.7 available for download? On Mon, Nov 17, 2008 at 10:38 PM, Wil Sinclair <[EMAIL PROTECTED]> wrote: > Zend Framework 1.7.0 is now available from the Zend Framework download > site: http://framework.zend.com/download/latest > > This release introd

Re: [fw-general] Question about zend pagination

2008-11-18 Thread vladimirn
Can anyone help on this please? :) -- View this message in context: http://www.nabble.com/Question-about-zend-pagination-tp20543032p20555822.html Sent from the Zend Framework mailing list archive at Nabble.com.

[fw-general] Zend_Form Decorator HTML table tr td

2008-11-18 Thread Pekka Järvinen
Hi, I'm trying to achieve this: default: labelfielderrors ul li if any else empty submit: field textarea: label errors ul li if any else emptyfield -- snip -- $default_element_decorator = array( 'ViewHelper', array( 'decorator' => array( 'td' => 'HtmlTag' ),

[fw-general] Zend_Dojo form fields within tooltips

2008-11-18 Thread stOOsh
Hello. I have some big form with 70 fields so decided to "hide" some, especially long multicheckboxes, within tooltips, like below: INTERNET MAGAZINE ... And now the problem: there is no clesClient in $_POST after submiting the form, no matter if some clesCli

Re: [fw-general] Zend_Log writing to Zend_Platform

2008-11-18 Thread Saiaman
Have you find the Zend Platform API or write this zend_writer ? Thank you Joshua Ross wrote: > > So I started a new job that uses Zend Platform pretty heavily and I am a > relative newb to it. My boss wants me to log to Zend Platform if > possible. It would be great if I could do that from

Re: [fw-general] Dijit Editor

2008-11-18 Thread gwellman
I'm having trouble getting this working as expected. Did the dojo view helper put all the javascript into the viewscript for you? or did you have to put in the javascript yourself? I'm currently using this: http://www.paste2.org/p/103439 It's generating the right html for the form but no javas

[fw-general] Zend_DOM and AJAX

2008-11-18 Thread edgelogix
Hi, I've just designed the UI for the application, here I got a question about the forms. I want to use AJAX and DOM, so what is the recommendations about that , how and what is the is most appropriate way to accomplish both of the things. I guess Zend_Dom and also kindly let me know is the Dojo r

Re: [fw-general] Dijit Editor

2008-11-18 Thread Matthew Lurz
Very quickly, sorry but I'm getting ready to head out for the morning, yes. That is, I did not have to create the JavaScript (though I did have to modify the Editor helper just slightly) nor did I need to require the dijit.Editor module. I would try removing the conditional to check whether isEna

Re: [fw-general] setting style class of an element in navigation

2008-11-18 Thread Daniel Latter
So it would be somthing like this: header.phtml: *headStyle()->captureStart() ?> navactive ?> { background-color:#fef; } headStyle()->captureEnd() ?>* Dashboard /admin/business/ Businesses Menu Item Two Menu Item Three

[fw-general] [Zend_Paginator] Bug when using complex Zend_Db_Select

2008-11-18 Thread Iulian M
I am creating a Zend_Db_Select statement for this SQL : SELECT table1.a AS a table1.b AS b COUNT(table2.a) -1 as c FROM table1 INNER JOIN table2 ON table1.a = table2.a HAVING c = 1 The select is tested and it worked as expected. The Zend_Db_Select will be used

[fw-general] Problems with running controller unit tests - one of two tests fail although they execute very same code

2008-11-18 Thread jme
Hi. I have the following code in one of my unit tests for testing controller functionality: bootstrap = array($this, 'appBootstrap'); parent::setUp(); $this->loginUser(); } public function appBootstrap() { $co

Re: [fw-general] Zend_DOM and AJAX

2008-11-18 Thread Matthew Weier O'Phinney
-- edgelogix <[EMAIL PROTECTED]> wrote (on Tuesday, 18 November 2008, 05:45 AM -0800): > I've just designed the UI for the application, here I got a question about > the forms. I want to use AJAX and DOM, so what is the recommendations about > that , how and what is the is most appropriate way to a

Re: [fw-general] Dijit Editor

2008-11-18 Thread gwellman
Thanks Matthew. Would be really useful to have a look at your code. Did you have a problem with the Zend_Dojo generated javascript displaying? Dojo produces this: http://www.paste2.org/p/103522 Looking at your javascript, it produces code specific to the editor which mine didn't. Matthew Lu

Re: [fw-general] Question about zend pagination

2008-11-18 Thread Daniel Tangermann
I would love to, but you have to be a little more specific what is not working? Do you get an expected result without $paginator? Dou you see the expected amount of results on page 1? How does your link look like for the next page? The more information you provide, the better one can help you

Re: [fw-general] Zend_Form and html array syntax. is this possible?

2008-11-18 Thread water
thanks, subforms seem to be way to go. Re the valid php variable names, I was thinking of extending Zend_Form to work around this specifically removing the preg_replace on line 823 and wrinting a processor for looking for the first array form as an integer and thus know that it is an update (if

RE: [fw-general] Zend Framework 1.7 is now available!

2008-11-18 Thread Wil Sinclair
Should be sometime later this week. We’re looking in to another option that would preserve the link in the PDF doc. I’ll announce it’s availability here and on fw-announce. ,Wil From: Garri Santos [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2008 12:24 AM To: fw-general@lists.ze

Re: [fw-general] Question about zend pagination

2008-11-18 Thread vladimirn
Thank you Daniel, This is my view script: paginator)): ?> paginator as $banner): ?> " On the page i am getting expected amount of results. Then in my controller: $db = Zend_Registry::get ( 'db' ); $select = $db->select () ->

Re: [fw-general] [Zend_Paginator] Bug when using complex Zend_Db_Select

2008-11-18 Thread Matthew Ratzloff
The easiest way to solve this is to pass in your own Zend_Db_Select COUNT query to Zend_Paginator_Adapter_DbSelect::setRowCount(). http://framework.zend.com/svn/framework/standard/trunk/library/Zend/Paginator/Adapter/DbSelect.php Hope that helps, -Matt On Tue, Nov 18, 2008 at 7:32 AM, Iulian M <

Re: [fw-general] Question about zend pagination

2008-11-18 Thread Matthew Ratzloff
Do you define a "page" parameter in your route? -Matt On Tue, Nov 18, 2008 at 10:14 AM, vladimirn <[EMAIL PROTECTED]> wrote: > > Thank you Daniel, > This is my view script: > paginator)): ?> > > paginator as $banner): ?> > > " $banner['bannerurl'] > ? "> > > > > > > On the page i am getting

Re: [fw-general] Question about zend pagination

2008-11-18 Thread Daniel Tangermann
In your link to the next or whatever resultpage site: Are you sure that param page is there? Try something like Zend_Debug::dump($this->_request->getParams()) You should see page = something In my paginator template I link to /baseUrl/module/controller/page/2 /baseUrl/module/controller/2 woul

Re: [fw-general] [Zend_Paginator] Bug when using complex Zend_Db_Select

2008-11-18 Thread Iulian M
Thank you for your answer. I will consider the situation in which i will pass the calculated rowCount. Iulian Matthew Ratzloff wrote: > > The easiest way to solve this is to pass in your own Zend_Db_Select COUNT > query to Zend_Paginator_Adapter_DbSelect::setRowCount(). > http://framework

Re: [fw-general] [Zend_Paginator] Bug when using complex Zend_Db_Select

2008-11-18 Thread Matthew Ratzloff
I just want to be clear that setRowCount() accepts either an integer or Zend_Db_Select object for the TOTAL row count. -Matt On Tue, Nov 18, 2008 at 12:06 PM, Iulian M <[EMAIL PROTECTED]> wrote: > > > > Thank you for your answer. > > I will consider the situation in which i will pass the calculat

Re: [fw-general] Question about zend pagination

2008-11-18 Thread vladimirn
I have this in my route: $route = new Zend_Controller_Router_Route( 'display/:pid/:wid/:type', array( 'controller' => 'banners', 'action' => 'display' ) ); $router->addRoute('display', $route); Matthew Ratzloff wrote: > > Do you define a "page" parameter in your

Re: [fw-general] Question about zend pagination

2008-11-18 Thread Matthew Ratzloff
>From the documentation: The following is an example route you might use in an INI configuration file: routes.example.route = articles/:articleName/:page routes.example.defaults.controller = articles routes.example.defaults.action = view routes.example.defaults.page = 1 routes.example.reqs.article

[fw-general] Seeking input on naming convention

2008-11-18 Thread Alex Howansky
Let's say that I'm developing some extensions to ZF and I'm adopting the documented coding standards. I'll use a namespace of NS, so my classes will all be named NS_*. I'll be creating a class that implements an existing and well-defined specification. Let's say I name this class ABC_Spec. Th

Re: [fw-general] setting style class of an element in navigation

2008-11-18 Thread Ace Paul
Thank you very much for the reply Dan. For some reason using that method I am unable to get the style to print to the browser. I have used a quick fix like this, but if possible would like to do it the way that you have said, so that I am doing everything the correct Zend way. This is what I have

Re: [fw-general] Seeking input on naming convention

2008-11-18 Thread Alex Howansky
Let's say I name this class ABC_Spec. Whoops, typo -- meant to say NS_Spec. -- Alex Howansky Director of IT Birdview Technologies smime.p7s Description: S/MIME Cryptographic Signature

Re: [fw-general] setting style class of an element in navigation

2008-11-18 Thread Daniel Latter
Hi, sorry i forgot to mention you need the following statement in you main template file, the one which you output doctypes etc, put this in index.phtml: headStyle() ?> 2008/11/18 Ace Paul <[EMAIL PROTECTED]> > > Thank you very much for the reply Dan. For some reason using that method I > am > u

Re: [fw-general] setting style class of an element in navigation

2008-11-18 Thread Daniel Latter
(I orginally sent this from an incorrect email so appologies if you get it twice.) Hi, sorry i forgot to mention you need the following statement in you main template file, the one which you output doctypes etc, put this in index.phtml: headStyle() ?> 2008/11/18 Ace Paul <[EMAIL PROTECTED]> > >

Re: [fw-general] Seeking input on naming convention

2008-11-18 Thread Matthew Weier O'Phinney
-- Alex Howansky <[EMAIL PROTECTED]> wrote (on Tuesday, 18 November 2008, 06:06 PM -0500): > > Let's say that I'm developing some extensions to ZF and I'm adopting the > documented coding standards. I'll use a namespace of NS, so my classes > will all be named NS_*. I'll be creating a class tha

Re: [fw-general] setting style class of an element in navigation

2008-11-18 Thread Matthew Lurz
If I understand you correctly, here's how I've handled this: http://www.paste2.org/p/103819 You can see that the view helper looks at the controller to determine which item should be active. I'm using a YAML config file to store the menu definition along with some additional meta data but if cou

Re: [fw-general] [Zend_Paginator] Bug when using complex Zend_Db_Select

2008-11-18 Thread Iulian M
Yes, but it should be noted that it will not accept ANY Zend_Db_Select object. The object passed to the setRowCount() must contain the ROW_COUNT_COLUMN = 'zend_paginator_row_count', or else it will throw an exception. In my opinion count function, that actually performs the count operation, sho

Re: [fw-general] Zend Framework 1.7 is now available!

2008-11-18 Thread mikaelkael
Hi, I proposed on my site CHM and PDF versions of the documentation: http://www.mikaelkael.fr/zf-chm-pdf They are available in English, French, German and only in CHM for Japanese. CHM has syntax highlighting. PDF doesn't have table of contents. Mickael. Wil Sinclair a écrit : Should be som