Re: [fw-general] Zend_Form Display Group Error Messages and Layout

2008-05-30 Thread Jerry McG

As anyone implemented "Birth Date" as a display group? Please let me know how
you are handling your errors for a group of elements.

Thanks!



Jerry McG wrote:
> 
> Hi All,
> 
> I am using Zend_Form to implement "Birth Date" on a form. The "Birth Date"
> will be a display group where in "Month," "Day," and "Year" are the select
> elements in the group. All the elements of the display group are displayed
> within a single div, adjacent to one another (similar to Facebook's
> registration form). Only the "Month" element will have a label called
> "Birth Date." Everything works fine except for the fact that validator
> errors screw up the layout of the form. The validator errors for
> individual elements are displayed right after each select element. I would
> like my errors to appear after the display groups div. Can anyone help me
> with this?
> 
> My display group code looks like this:
> 
> // 
> +---+
> //  | Create display group for BIRTH DATE 
> |
> // 
> +---+
> $this->addDisplayGroup(array('month', 'day', 'year'), 'dobgroup');
> 
> $dob_group = $this->getDisplayGroup('dobgroup');
> 
> $dob_group->setDecorators(array(  
>   array('FormElements'),  
>   array('HtmlTag', array('tag' => 'div',  
>   'class' => 'ele_hold')),
> ));
> 
> Thanks!
> 
> Jerry
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Zend_Form-Display-Group-Error-Messages-and-Layout-tp17475548p17572221.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] ZF-3285 Status

2008-05-30 Thread Matthew Weier O'Phinney
-- manningc <[EMAIL PROTECTED]> wrote
(on Friday, 30 May 2008, 11:45 AM -0700):
> 
> I have heard that submitted bugs get responded to/categorized within a couple
> of days.
> 
> This bug was created about two weeks ago with no response. I do not know if
> it got lost in the shuffle or it has just not been addressed.

There were about two weeks when we were not getting email notifications
for new or updated bugs; please be patient as we work through the
backlog.

-- 
Matthew Weier O'Phinney
Software Architect   | [EMAIL PROTECTED]
Zend Framework   | http://framework.zend.com/


RE: [fw-general] TypePad AntiSpam

2008-05-30 Thread Eric Marden
There is also Mollom, http://mollom.com/ - if we are looking to support
multiple Anti-Spam web services.


 
--
Eric Marden
Sr. PHP Developer
407.571.4861
 

Bonnier Corporation
460 N. Orlando Avenue, Suite 200
Winter Park, Florida 32789
www.bonniercorp.com


-Original Message-
From: Jordan Moore [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 29, 2008 7:50 PM
To: fw-general
Subject: [fw-general] TypePad AntiSpam

TypePad just released a beta version of AntiSpam
(http://antispam.typepad.com/), which is basically a clone of Akismet.
AntiSpam's API is identical to Akismet's, but has much looser usage
terms than Akismet's. Would anyone besides myself find it useful to have
a ZF component for AntiSpam? If so, I'd be happy to get the proposal
process started. It really should only involve modifying
Zend_Service_Akismet to be more extensible and creating a new sub class
for AntiSpam, but those kind of details should follow later...

--
Jordan Ryan Moore


[fw-general] Vacation auto-responders and you

2008-05-30 Thread Matthew Ratzloff
Hi everyone,
As we in the northern hemisphere enter into the summer and being to take
vacations, please be courteous to your fellow mailing list members and
remember to exclude all Zend Framework mailing lists from your
vacation auto-responder, or temporarily unsubscribe.  It's very annoying to
receive multiple vacation auto-responses in response to every message sent.

Thanks,

-Matt


[fw-general] ZF-3285 Status

2008-05-30 Thread manningc

I have heard that submitted bugs get responded to/categorized within a couple
of days.

This bug was created about two weeks ago with no response. I do not know if
it got lost in the shuffle or it has just not been addressed.

Thank you.
-- 
View this message in context: 
http://www.nabble.com/ZF-3285-Status-tp17565715p17565715.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] TypePad AntiSpam

2008-05-30 Thread Jordan Moore
Probably one of the lamest proposals is now ready for review:

http://framework.zend.com/wiki/display/ZFPROP/Zend_Service_TypePad_AntiSpam+-+Jordan+Ryan+Moore

On Fri, May 30, 2008 at 4:34 AM, Vincent <[EMAIL PROTECTED]> wrote:
>
>
> On 5/30/08, Jordan Moore <[EMAIL PROTECTED]> wrote:
>>
>> TypePad just released a beta version of AntiSpam
>> (http://antispam.typepad.com/), which is basically a clone of Akismet.
>> AntiSpam's API is identical to Akismet's, but has much looser usage
>> terms than Akismet's. Would anyone besides myself find it useful to
>> have a ZF component for AntiSpam? If so, I'd be happy to get the
>> proposal process started. It really should only involve modifying
>> Zend_Service_Akismet to be more extensible and creating a new sub
>> class for AntiSpam, but those kind of details should follow later...
>>
>>
>> --
>> Jordan Ryan Moore
>
> Sounds very useful to me.
>
> --
> Vincent



-- 
Jordan Ryan Moore


[fw-general] Zend DT Table Join

2008-05-30 Thread Ian Warner
I have the following:

it keeps erroring saying: SQLSTATE[42S22]: Column not found: 1054 Unknown
column 'round_number' in 'where clause'

So how do I tell the where clause the correct table

$table = new sites_models_Scores();

$select = $table->select()->setIntegrityCheck(false);
$select->where('round_number >= ?',
$this->_getParam('startRound'))
   ->where('round_number <= ?',
$this->_getParam('endRound'))
   ->joinLeft('users', 'scores.user_id = users.user_id',
'screen_name');

$rowSet = $table->fetchAll($select);
$result = $rowSet->toArray();


the example in the docs has - i dont really see the difference.

$table = new Bugs();


$select = $table->select()->setIntegrityCheck(false);

$select->where('bug_status = ?', 'NEW')

   ->join('accounts', 'accounts.account_name = bugs.reported_by',
'account_name')

   ->where('accounts.account_name = ?', 'Bob');


$rows = $table->fetchAll($select);


[fw-general] Re: Zend DT Table Join

2008-05-30 Thread Ian Warner
>
> I have the following:
>
> it keeps erroring saying: SQLSTATE[42S22]: Column not found: 1054 Unknown
> column 'round_number' in 'where clause'
>
> So how do I tell the where clause the correct table
>
> $table = new sites_models_Scores();
>
> $select = $table->select()->setIntegrityCheck(false);
> $select->where('round_number >= ?',
> $this->_getParam('startRound'))
>->where('round_number <= ?',
> $this->_getParam('endRound'))
>->joinLeft('users', 'scores.user_id = users.user_id',
> 'screen_name');
>
> $rowSet = $table->fetchAll($select);
> $result = $rowSet->toArray();
>
>
> the example in the docs has - i dont really see the difference.
>
> $table = new Bugs();
>
> $select = $table->select()->setIntegrityCheck(false);
> $select->where('bug_status = ?', 'NEW')
>
>->join('accounts', 'accounts.account_name = bugs.reported_by', 
> 'account_name')
>
>->where('accounts.account_name = ?', 'Bob');
>
> $rows = $table->fetchAll($select);
>
>


Re: [fw-general] Gdata and Analytics

2008-05-30 Thread Łukasz Wojciechowski
2008/5/30 Jake McGraw <[EMAIL PROTECTED]>:
> Analytics currently doesn't provide an API:
>
> http://www.google.com/support/analytics/bin/answer.py?hl=en&answer=55561
>
> - jake

So I just want to login. Nothing more. The login api is different for
analytics? Or it's blocked?

-- 
Łukasz Wojciechowski


Re: [fw-general] Gdata and Analytics

2008-05-30 Thread Jake McGraw
Analytics currently doesn't provide an API:

http://www.google.com/support/analytics/bin/answer.py?hl=en&answer=55561

- jake

On Fri, May 30, 2008 at 10:18 AM, Łukasz Wojciechowski
<[EMAIL PROTECTED]> wrote:
> Hey,
>
> is it possible to login to analytics with Gdata? I was trying with
>
> $client = Zend_Gdata_ClientLogin::getHttpClient($email, $passwd, 'analytics');
>
> but then you can't fetch anything from analytics because you're not logged in.
>
> Any ideas?
>
> --
> Łukasz Wojciechowski
> http://nostrzak.blogspot.com
>


[fw-general] Gdata and Analytics

2008-05-30 Thread Łukasz Wojciechowski
Hey,

is it possible to login to analytics with Gdata? I was trying with

$client = Zend_Gdata_ClientLogin::getHttpClient($email, $passwd, 'analytics');

but then you can't fetch anything from analytics because you're not logged in.

Any ideas?

-- 
Łukasz Wojciechowski
http://nostrzak.blogspot.com


Re: [fw-general] Zend_Form ajax update

2008-05-30 Thread etopian

Yes I do. And I use Prototype to make the Ajax calls.



Bart McLeod wrote:
> 
> do you know how to do ajax calls, do you have a favoriate ajax-capable 
> library?
> Bart
> 
> etopian schreef:
>> Hi,
>>
>> I'm currently building a view that lists records from a database. In that
>> list I have a checkbox which will show the state of the record
>> (active/inactive). I've created the checkbox in it's own form using
>> Zend_form. 
>>
>> What I would like to do, is allow users to change the state of the record
>> using an Ajax update. But I have not got a clue on how to get this done. 
>>
>> Can anyone tell me how to approach this?
>>
>>
>>
>>   
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Zend_Form-ajax-update-tp17558955p17559721.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Zend_Form ajax update

2008-05-30 Thread Bart McLeod
do you know how to do ajax calls, do you have a favoriate ajax-capable 
library?

Bart

etopian schreef:

Hi,

I'm currently building a view that lists records from a database. In that
list I have a checkbox which will show the state of the record
(active/inactive). I've created the checkbox in it's own form using
Zend_form. 


What I would like to do, is allow users to change the state of the record
using an Ajax update. But I have not got a clue on how to get this done. 


Can anyone tell me how to approach this?



  


[fw-general] Zend_Form ajax update

2008-05-30 Thread etopian

Hi,

I'm currently building a view that lists records from a database. In that
list I have a checkbox which will show the state of the record
(active/inactive). I've created the checkbox in it's own form using
Zend_form. 

What I would like to do, is allow users to change the state of the record
using an Ajax update. But I have not got a clue on how to get this done. 

Can anyone tell me how to approach this?



-- 
View this message in context: 
http://www.nabble.com/Zend_Form-ajax-update-tp17558955p17558955.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] valid html issue

2008-05-30 Thread reto
Hi everyone,

I just tried the solution for setting the Doctype in the Bootstrap and
then printing it in View-scripts as stated in changeset 9531:
 http://framework.zend.com/code/changelog/Zend_Framework?cs=9531

On line 58 it says how to print the doctype in your layout-script:
 doctype()->getDoctype() ?>

I think this should rather read:
 doctype() ?>
So that it outputs the whole " wrote:
> This was covered a day or two ago:
> http://framework.zend.com/issues/browse/ZF-3323


Re: [fw-general] Establishing naming conventions for Zend Framework 2.0

2008-05-30 Thread Julien Pauli
+1, I accepts those exposed ideas :

- Why migrate from 1.x branch when it works ? Just keep 2.x branch for new
projects
- Even on big (tested ?:-) ) apps, such a suggested refactoring (Zend
classes, some {not so much} methods) won't be that hard and long (if wanted)
- 2.0 seems to be the good point for a change in API
- After some time passes, the 1.x branch will get forgotten anyway
- if one of the ZF points is to be 'simple' , well that would be welcome
(frequent doc looks are nothing else that waste of time, think about PHP...)
- Sooner it comes, better it is : ZF is growing days after days, such a
change, if accepted, must be taken the soonest.

Julien.P

2008/5/20 Eric Marden <[EMAIL PROTECTED]>:

>  I think having a phase of things being depreciated is the best approach
> to minimize conflicts and the need to rewrite code just to upgrade the core.
> I've seen other projects take this approach and over time nobody is using
> the old style, and has fully adopted the new approach. Anything jarring,
> even under the guise of a 'major point release' is not good practice in my
> honest opinion, and is kind of a turn off.
>
>
> --
> Eric Marden
>
>
>  --
> *From:* Bradley Holt [mailto:[EMAIL PROTECTED]
> *Sent:* Tuesday, May 20, 2008 12:26 PM
> *To:* Matthew Ratzloff
> *Cc:* fw-general@lists.zend.com
> *Subject:* Re: [fw-general] Establishing naming conventions for Zend
> Framework 2.0
>
> +1 As others have said, and I agree, it's OK to break backwards
> compatibility in a major version release (with one caveat that I'll outline
> below). Refactoring my web applications to use the new class names shouldn't
> be that difficult.
>
> Someone suggested a "compatibility layer" that is marked as "deprecated." I
> think this is a good idea but should be should either be done in a 1.x
> release (still maintains BC but informs developers stuff will be changing in
> the next major release) or it should be done in the 2.0 release with plans
> of deleting the deprecated "compatibility layer" in 3.0. Either way, I think
> the warning that something is deprecated should be made in a major version
> *before* the deprecated code is removed (if at all possible).
>
> On Tue, May 20, 2008 at 12:00 AM, Matthew Ratzloff <
> [EMAIL PROTECTED]> wrote:
>
>> This seems like a perennial issue for me, but I'm bringing it up again
>> because I think it's worthwhile.
>>
>> Since the beginning of this project, there hasn't really been much in the
>> way of direction given on naming standards for classes in Zend Framework.
>> This lack of consistency is what has yielded two nomenclatures for CLI
>> components ("Zend_Console" vs. "Zend_Controller_Response_Cli"), differing
>> terms for similar concepts ("Zend_Json_Decoder" vs. "Zend_Mime_Decode"),
>> both nouns and verbs in equal measure ("Zend_Loader" but not
>> "Zend_Translator"; alternately, "Zend_Translate" but not "Zend_Load"), and
>> so on.
>>
>> I first brought this issue up in February 2007 and concluded, "Consistency
>> means predictability, which means being able to recall names without having
>> to check the manual every time. It's why most people can't use PHP's date or
>> string functions without looking at the documentation, for example."
>> There was a lot of agreement from the community (and a couple Zenders) but
>> no movement because the framework was preparing for 1.0.  At the time I was
>> told, "There is life after 0.9.0," and so as we prepare for 2.0, I think
>> it's the perfect time to revisit this.
>>
>> -Matt
>>
>
>
>
> --
> Bradley Holt
> [EMAIL PROTECTED]
>
>


Re: [fw-general] TypePad AntiSpam

2008-05-30 Thread Vincent
On 5/30/08, Jordan Moore <[EMAIL PROTECTED]> wrote:
>
> TypePad just released a beta version of AntiSpam
> (http://antispam.typepad.com/), which is basically a clone of Akismet.
> AntiSpam's API is identical to Akismet's, but has much looser usage
> terms than Akismet's. Would anyone besides myself find it useful to
> have a ZF component for AntiSpam? If so, I'd be happy to get the
> proposal process started. It really should only involve modifying
> Zend_Service_Akismet to be more extensible and creating a new sub
> class for AntiSpam, but those kind of details should follow later...
>
>
> --
> Jordan Ryan Moore
>

Sounds very useful to me.

-- 
Vincent


Re: [fw-general] TypePad AntiSpam

2008-05-30 Thread Pádraic Brady

If the API is that similar, will it only require a stub subclass for
namespacing? That pretty in your face on Akismet ;).



Simone Carletti wrote:
> 
> It sounds a really nice idea.
> I'm reading the Six Apart documentation right now at
> http://antispam.typepad.com/info/developers.html :
> 
> *TypePad AntiSpam is 100% compatible with the Akismet API. This means that
> if you've already developed a plugin for Akismet, your plugin will be
> compatible with TypePad AntiSpam. And if you're looking to develop a new
> plugin, if you develop to the Akismet API your plugin will work with both
> Akismet and TypePad AntiSpam.
> *
> It seems the new proposal will be quite easy to be implemented. :)
> 
> Simone
> 
> 
> On Fri, May 30, 2008 at 1:49 AM, Jordan Moore <[EMAIL PROTECTED]>
> wrote:
> 
>> TypePad just released a beta version of AntiSpam
>> (http://antispam.typepad.com/), which is basically a clone of Akismet.
>> AntiSpam's API is identical to Akismet's, but has much looser usage
>> terms than Akismet's. Would anyone besides myself find it useful to
>> have a ZF component for AntiSpam? If so, I'd be happy to get the
>> proposal process started. It really should only involve modifying
>> Zend_Service_Akismet to be more extensible and creating a new sub
>> class for AntiSpam, but those kind of details should follow later...
>>
>> --
>> Jordan Ryan Moore
>>
> 
> 


-
Pádraic Brady

http://blog.astrumfutura.com
http://www.patternsforphp.com
OpenID Europe Foundation - Irish Representative
-- 
View this message in context: 
http://www.nabble.com/TypePad-AntiSpam-tp17548591p17556593.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Include Path Order

2008-05-30 Thread Jack Sleight

Hi,
I just found a good way to speed up the loading/response time of my 
application, that I've not seen mentioned here before, so thought I'd 
share it for anyone who (like me) didn't realise this would make such a 
difference.


If you have multiple include paths (ie. ZF, and perhaps a couple of 
custom libraries), you should ensure that the paths are in order of how 
many classes you intend to include (most first).


I know, it's blindingly obvious, but I'd just never given it much 
thought before.


I went from:
'.';CUSTOM1;CUSTOM2;ZF

To:
ZF;CUSTOM1;CUSTOM2;'.'

And saw the average response time drop from around 350ms to 250ms.
--
Jack


Re: [fw-general] Is this possible: Zend_SubForm with user added records?

2008-05-30 Thread Bart McLeod

Hi Jamie,

I think you are asking several questions simultaneously.
1. I don't know about nested subforms, but it seems you do, are these in 
a legacy application or in ZF?
2. Do 'add' and 'submit' need to perform different actions? I managed to 
use subforms (0-N) to add records. Every time a new record is added by 
pressing 'save' or [Enter], a new empty subform is added to allow for 
the addition of a new record.
3. I populate the subforms by calling $subform->populate($record). The 
$record is what you get from your database, or other data storage. These 
are the records that are already entered by the user. I use a 
DataAccessGatewayObject (DAGO) to predefine the query used to retrieve 
the already entered records. This way, you keep the SQL in the model and 
out of your form display routines.


Regards,
Bart McLeod

Jamie Royer schreef:

Is it possible to use Zend_Form_SubForm with dynamic content added by
the user?

I'm trying to create a sub-form that can contain 0-N records (input
fields plus a delete button).  When the user presses the "add" button a
new record gets added to the sub-form.  When the user presses the
"submit" button, I want the form to be validated allowing for 0-N
records.

I already have nice looking forms built up from nested sub-forms so I
was hoping not to have to throw that all away.  The server generated
forms work great.

I'll need to figure out how to use "populate()" to pre-fill the
sub-form.

Am I approaching this the wrong way?

I like the idea of using Zend_Form but is there a better way?

Thanks,
Jamie Royer


  


Re: [fw-general] Does headScript() Work Correctly?

2008-05-30 Thread bfoust

Thank you for all the suggestions.

In my quest to find an automated solution for headXXX() helpers to insert
their content transparently, I arrived at the post-gen filter method first
mentioned by Mike. Hopefully, a completely automated solution will arise,
but for now, it requires only this one method call be added to the top of
your layout:

$this->addFilter('HeadHelperOutput');

(and that the layout contain head and body tags)

And to place this file named 'HeadHelperOutput' in the views/filters/ dir:
(note: there may be a way to change the default prefix 'Zend_View_Filter' to
just 'Filter', in which case both the file and class could be renamed.)

 section
 * where it belongs).
 * 
 * @author bfoust
 * @version 1
 */

/**
 * Place the headXXX() helper output in the head section of the output.
 * (Actually, just replaces the {HEAD_HELPER_CONTENT} tag, wherever that is
in the file.
 * 
 * Usage:
 * 
 */
class Zend_View_Filter_HeadHelperOutput implements Zend_Filter_Interface
{
protected $_view;

public function setView ($view) // called by Zend_View before 
the filter
is called.
{
$this->_view = $view;
}

/**
 * Replace {HEAD_HELPER_CONTENT} in the given text with the content of 
the
headXXX() view helpers.
 *
 * @param string $pageOutput
 * @return string html markup with "{HEAD_HELPER_CONTENT}" replaced
 */
public function filter ($pageOutput)
{
$injectMarkup = join("\n", array(
$this->_view->headTitle()
,   $this->_view->headMeta()
,   $this->_view->headLink()
,   $this->_view->headStyle()
,   ""
));
$pageOutput = preg_replace("||i", $injectMarkup, 
$pageOutput);

//
// Place the script at the end (styles, however, need to be 
seen before 
// page can be displayed, anyway, so leave those in the head 
section)
//
$injectMarkup = join("\n", array(
$this->_view->headScript()
,   ""
));
$pageOutput = preg_replace("||i", $injectMarkup, 
$pageOutput);

return $pageOutput;
}

}
?>

-- 
View this message in context: 
http://www.nabble.com/Does-headScript%28%29-Work-Correctly--tp17546465p17553680.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] TypePad AntiSpam

2008-05-30 Thread Simone Carletti
It sounds a really nice idea.
I'm reading the Six Apart documentation right now at
http://antispam.typepad.com/info/developers.html :

*TypePad AntiSpam is 100% compatible with the Akismet API. This means that
if you've already developed a plugin for Akismet, your plugin will be
compatible with TypePad AntiSpam. And if you're looking to develop a new
plugin, if you develop to the Akismet API your plugin will work with both
Akismet and TypePad AntiSpam.
*
It seems the new proposal will be quite easy to be implemented. :)

Simone


On Fri, May 30, 2008 at 1:49 AM, Jordan Moore <[EMAIL PROTECTED]>
wrote:

> TypePad just released a beta version of AntiSpam
> (http://antispam.typepad.com/), which is basically a clone of Akismet.
> AntiSpam's API is identical to Akismet's, but has much looser usage
> terms than Akismet's. Would anyone besides myself find it useful to
> have a ZF component for AntiSpam? If so, I'd be happy to get the
> proposal process started. It really should only involve modifying
> Zend_Service_Akismet to be more extensible and creating a new sub
> class for AntiSpam, but those kind of details should follow later...
>
> --
> Jordan Ryan Moore
>