[fw-general] Sending JSON the best practice?

2008-08-26 Thread R!

Hi,
I'm using AJAX in my application and i want to send JSON object, with these
params
{
 'html': someHTMLcode
 'valid':true/false
}
The html code i'm rendering from view script.
here is my code.

$this-view-callResponseForm = $callResponseForm;
$this-render('result-form'); // render to response object
$this-getResponse()-setBody(

Zend_Json::encode(array('html'=$this-getResponse()-getBody(),'valid'=0))
);

I'm not sure that these the right way how to do it' have got some tips how
do it in better way?

Thanks
-- 
View this message in context: 
http://www.nabble.com/Sending-JSON-the-best-practice--tp19157013p19157013.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Sending JSON the best practice?

2008-08-26 Thread monk.e.boy



R! wrote:
 
 The html code i'm rendering from view script.
 here is my code.
 

I do this in the controller:

//
// turn off the view helpers
//
$this-_helper-layout-disableLayout();
$this-_helper-viewRenderer-setNoRender();
echo $json;

I don't bother with the view.

monk.e.boy
-- 
View this message in context: 
http://www.nabble.com/Sending-JSON-the-best-practice--tp19157013p19157707.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Sending JSON the best practice?

2008-08-26 Thread Kamil

monk.e.boy pisze:


R! wrote:
  

The html code i'm rendering from view script.
here is my code.




I do this in the controller:

//
// turn off the view helpers
//
$this-_helper-layout-disableLayout();
$this-_helper-viewRenderer-setNoRender();
echo $json;

I don't bother with the view.

monk.e.boy
  

Look at the action helper json
http://framework.zend.com/manual/en/zend.controller.actionhelpers.html#zend.controller.actionhelpers.json



Re: [fw-general] Sending JSON the best practice?

2008-08-26 Thread R!

Yes but  i wont as a par of my JSON object send HTML rendered from viewscript
so is there any posibili how render viewscript directly to string?
Or i must call these ?

$this-render('result-form'); // render to response object
$htmlPart=$this-getResponse()-getBody()

Thanks

-- 
View this message in context: 
http://www.nabble.com/Sending-JSON-the-best-practice--tp19157013p19158564.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Sending form on IIS

2008-08-26 Thread Nikolay Alexeev

IIS returns 405 error, if  send form with  method=POST and action without
filename.

Has anybody solve this problem? 



-- 
View this message in context: 
http://www.nabble.com/Sending-form-on-IIS-tp19158790p19158790.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Model testing

2008-08-26 Thread Giorgio Sironi
Hello everyone..
I have built some basic models for a module of my application, but I
am not sure on how to test them.
For example: I have a class Section whose instances can fetch some
Article from the database; so I cannot test Section in isolation
because I have to add and delete instances of Article. How can I break
this dependency? What interfaces should I produce?
Also it will be useful for Article to have a method getSection() that
returns the owning section by querying the database, but this will
make the dependency circular as both class knows each other...

-- 
Giorgio Sironi
Piccolo Principe  Ossigeno Scripter
http://www.sourceforge.net/projects/ossigeno


Re: [fw-general] Zend_Form Label with script

2008-08-26 Thread Matthew Weier O'Phinney
-- Bruno Friedmann [EMAIL PROTECTED] wrote
(on Tuesday, 26 August 2008, 09:50 AM +0200):
 Hi All, I have to ask for this because not found anything in archives nor 
 Google or Yahoo.
 
 I need to have a label ( for a select element in Zend_Form )
 this label must contain a link like this
 
 a href=# onclick=javascript: alert('thing');More/a
 
 
 $mylink = 'a href=# onclick=javascript: alert('thing');More/a';
   
 $element = new Zend_Form_Element_Select('partnerid');
 $element-addMultiOptions($this-partners_array)
 -setRequired(true)
 -setLabel( 'this is normal text' . $mylink )
 -setAttrib('size', 1)
 -setAttrib('maxlength', 1)
 -setAttrib('onclick', 'javascript: ShowPartnerDetails(); return 
 false;')
 -addFilter($filterTags)
 -addFilter($filterTrim)
 -addValidator($validatorNotEmpty, true)
 -addValidator($validatorNum, true)
 -setValue(1)
 ;
 $this-addElement($element);
 
 Of course like this it's render with htmlentities ( did I mention I hate it 
 :-)
 
 I couldn't be able to find how to make this or which method  options I've to 
 call.
 
 Has someone a way ?

After you've setup the element, grab the label decorator:

$decorator = $element-getDecorator('Label');

and then tell it not to escape:

$decorator-setOption('escape', false);

Alternately, you can do this at configuration time when setting up the
decorator -- add an additional 'escape' option to pass to it.

And that's all there is to it.

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


[fw-general] Speed and performance between ZF releases

2008-08-26 Thread Endijs Lisovskis

Hi!

I wanted to ask - are there any tests done to compare ZF releases to see
which ones are faster and uses less resources?

I'm asking this, because when there are discussions about frameworks -
almost everyone says that ZF is one of slowest frameworks out there (if
compared to Symfony, Cake etc.). It would be good to know if ZF is making
progress, or failing because of all new functions added to it.

Thanks!

Endijs Lisovskis
-- 
View this message in context: 
http://www.nabble.com/Speed-and-performance-between-ZF-releases-tp19164298p19164298.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] [OFF-TOPIC] Regarding job opportunity in Mountain View, CA.

2008-08-26 Thread anaxient

Hey guys,

   I dont know where to post the job opening for Zend Framework. Is this the
right Forum to post job opening ? I have a great opening in a great startup
at Mountain View, CA. Please feel free to send me an email at
[EMAIL PROTECTED] for more information.

Thanks,
Vishal.

-- 
View this message in context: 
http://www.nabble.com/-OFF-TOPIC--Regarding-job-opportunity-in-Mountain-View%2C-CA.-tp19164650p19164650.html
Sent from the Zend Framework mailing list archive at Nabble.com.



RE: [fw-general] Speed and performance between ZF releases

2008-08-26 Thread Wil Sinclair
Where have you heard that ZF is one of the slowest frameworks out there?
While I haven't heard many claims that ZF is the most performant- that
distinction is usually reserved for Code Igniter or one of the other
lightweight, performance-focused frameworks- I haven't heard any claims
that it is the least performant. The most transparent and sound
benchmarks that I've seen are available here:
http://www.avnetlabs.com/php/php-framework-comparison-benchmarks. That
puts ZF at roughly 50% of the throughput of Code Igniter. That may sound
like a lot at first, but as I mention in a comment there, baseline PHP
can handle *15 times* the load than Code Igniter and CakePHP falls far
short of both (at least in these particular tests). This article
demonstrates well that accurate performance characterizations among
different frameworks are *extremely* difficult to come up with in the
first place, and that any framework faces tradeoffs between performance
and functionality. In the end, I'm pretty comfortable with the
characterization that ZF is 'twice as slow' as a framework that has been
optimized from the get go for performance like Code Igniter. Those who
understand the tests at hand and have real performance requirements will
understand that this may easily be eclipsed by functionality
requirements for any given project.
That said, we are planning to focus all of the Zend team's contributions
for 1.7 around performance analysis and enhancements. We don't have a
test environment with which we can thoroughly benchmark all the
frameworks yet, but we will have one set up soon. Once we can start
getting good numbers, we will focus on the performance of the MVC
components, along with other components- like Zend_Search_Lucene- which
are very sensitive to algorithmic complexity and optimizations. We've
already profiled the framework with a simple application and identified
some optimizations. If you are interested in the performance of ZF, then
keep your eyes peeled for optimization commits in the next few weeks.

,Wil

 -Original Message-
 From: Endijs Lisovskis [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 26, 2008 8:30 AM
 To: fw-general@lists.zend.com
 Subject: [fw-general] Speed and performance between ZF releases
 
 
 Hi!
 
 I wanted to ask - are there any tests done to compare ZF releases to
 see
 which ones are faster and uses less resources?
 
 I'm asking this, because when there are discussions about frameworks -
 almost everyone says that ZF is one of slowest frameworks out there
(if
 compared to Symfony, Cake etc.). It would be good to know if ZF is
 making
 progress, or failing because of all new functions added to it.
 
 Thanks!
 
 Endijs Lisovskis
 --
 View this message in context: http://www.nabble.com/Speed-and-
 performance-between-ZF-releases-tp19164298p19164298.html
 Sent from the Zend Framework mailing list archive at Nabble.com.



RE: [fw-general] [OFF-TOPIC] Regarding job opportunity in Mountain View, CA.

2008-08-26 Thread Wil Sinclair
This is probably not the best forum for job postings, since many people
on the list will not be interested. I have an RSS feed set up on
SimplyHired that shows all ZF job postings from many sources. I see a
lot of Zend Framework posts on Dice, Craigslist, and Hot Jobs.
Zend already offers services such as developer support and training to
help improve and augment existing developers ZF expertise, and *very*
soon we will be a ZF certification that will help employers identify ZF
experts. You might want to keep an eye out for this announcement;
certified ZF engineers may be on the market in time to help you out with
this req. :)

,Wil

 -Original Message-
 From: anaxient [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 26, 2008 8:46 AM
 To: fw-general@lists.zend.com
 Subject: [fw-general] [OFF-TOPIC] Regarding job opportunity in
Mountain
 View, CA.
 
 
 Hey guys,
 
I dont know where to post the job opening for Zend Framework. Is
 this the
 right Forum to post job opening ? I have a great opening in a great
 startup
 at Mountain View, CA. Please feel free to send me an email at
 [EMAIL PROTECTED] for more information.
 
 Thanks,
 Vishal.
 
 --
 View this message in context: http://www.nabble.com/-OFF-TOPIC--
 Regarding-job-opportunity-in-Mountain-View%2C-CA.-
 tp19164650p19164650.html
 Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] NetVibes using ZF for server backend

2008-08-26 Thread Robert Castley
Hi All,
 
I didn't know this before so I thought I would share it, but the folks over
at netvibes.com are using ZF for the backend.  They have just released some
server side code on their OS site (netvibes.org).
 
I downloaded these and was pleasantly surprised to see it built upon ZF :-)
 
Cool eh?
 
- Robert



This email has been scanned for all known viruses by the MessageLabs Email 
Security Service and the Macro 4 plc internal virus protection system.


RE: [fw-general] NetVibes using ZF for server backend

2008-08-26 Thread Wil Sinclair
Nice! While we're at it, I just heard of 2 more projects based on ZF:

 

@mail 6.0 will be built on ZF: http://blog.atmail.com/?p=108

TweetRush:
http://www.techcrunch.com/2008/08/25/tweetrush-shows-twitter-usage-far-b
elow-what-we-expected/ and
http://aj.mc-kee.com/2008/08/25/tweetrushcom-is-live-thank-you-to/

 

BTW, we're *always* interested in hearing about projects built on ZF- no
matter how big or small. Knowing what people are doing with ZF gives us
a big data point in deciding how to best serve our users.

 

,Wil

 

From: Robert Castley [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 26, 2008 9:22 AM
To: fw-general@lists.zend.com
Subject: [fw-general] NetVibes using ZF for server backend

 

Hi All,

 

I didn't know this before so I thought I would share it, but the folks
over at netvibes.com are using ZF for the backend.  They have just
released some server side code on their OS site (netvibes.org).

 

I downloaded these and was pleasantly surprised to see it built upon ZF
:-)

 

Cool eh?

 

- Robert



This email has been scanned for all known viruses by the MessageLabs
Email Security Service and the Macro 4 plc internal virus protection
system.




RE: [fw-general] Speed and performance between ZF releases

2008-08-26 Thread Endijs Lisovskis

At first let me say THANKS for your reply! I was not expecting such a long
comment. I will definitely look at ZF 1.7 features and optimizations.

I can't give you any links to articles where someone is pointing out that ZF
is slow, except one you already gave. But each time when I talk about
frameworks and ZF in particular I receive negative reactions and all of
theme are because of doubts about ZF performance. Those comments I receive
in my blog where I talk about ZF and even maybe promote it and in local PHP
forum too. 
OK - those who comment cant provide exact numbers in which I could see
difference between ZF and other frameworks. But all they need to say - ZF is
complicated, big and with a lot of components etc. etc. And each version is
becoming bigger and bigger. I would like to argue, that growth in features
is not affecting speed - but I can't because there are no any tests out
there.
I hope you see the problem. In short They say it is slow, but there is no
way we can prove they are wrong. 

And sorry for my grammar and structure of sentences. English is not my
mothers tongue, so it is not very easy for me to write in correct English.


wllm wrote:
 
 Where have you heard that ZF is one of the slowest frameworks out there?
 While I haven't heard many claims that ZF is the most performant- that
 distinction is usually reserved for Code Igniter or one of the other
 lightweight, performance-focused frameworks- I haven't heard any claims
 that it is the least performant. The most transparent and sound
 benchmarks that I've seen are available here:
 http://www.avnetlabs.com/php/php-framework-comparison-benchmarks. That
 puts ZF at roughly 50% of the throughput of Code Igniter. That may sound
 like a lot at first, but as I mention in a comment there, baseline PHP
 can handle *15 times* the load than Code Igniter and CakePHP falls far
 short of both (at least in these particular tests). This article
 demonstrates well that accurate performance characterizations among
 different frameworks are *extremely* difficult to come up with in the
 first place, and that any framework faces tradeoffs between performance
 and functionality. In the end, I'm pretty comfortable with the
 characterization that ZF is 'twice as slow' as a framework that has been
 optimized from the get go for performance like Code Igniter. Those who
 understand the tests at hand and have real performance requirements will
 understand that this may easily be eclipsed by functionality
 requirements for any given project.
 That said, we are planning to focus all of the Zend team's contributions
 for 1.7 around performance analysis and enhancements. We don't have a
 test environment with which we can thoroughly benchmark all the
 frameworks yet, but we will have one set up soon. Once we can start
 getting good numbers, we will focus on the performance of the MVC
 components, along with other components- like Zend_Search_Lucene- which
 are very sensitive to algorithmic complexity and optimizations. We've
 already profiled the framework with a simple application and identified
 some optimizations. If you are interested in the performance of ZF, then
 keep your eyes peeled for optimization commits in the next few weeks.
 
 ,Wil
 
 -Original Message-
 From: Endijs Lisovskis [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 26, 2008 8:30 AM
 To: fw-general@lists.zend.com
 Subject: [fw-general] Speed and performance between ZF releases
 
 
 Hi!
 
 I wanted to ask - are there any tests done to compare ZF releases to
 see
 which ones are faster and uses less resources?
 
 I'm asking this, because when there are discussions about frameworks -
 almost everyone says that ZF is one of slowest frameworks out there
 (if
 compared to Symfony, Cake etc.). It would be good to know if ZF is
 making
 progress, or failing because of all new functions added to it.
 
 Thanks!
 
 Endijs Lisovskis
 --
 View this message in context: http://www.nabble.com/Speed-and-
 performance-between-ZF-releases-tp19164298p19164298.html
 Sent from the Zend Framework mailing list archive at Nabble.com.
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Speed-and-performance-between-ZF-releases-tp19164298p19166135.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] How to add select=selected in Zend_Form_Element_Multiselect

2008-08-26 Thread vladimirn

I was searching all over but failed to find a way to add selected=selected
into multiselect.
My code is like this:
[code]
$listOptions=(array(
'first'= 'first choice',
'second' = 'second choice',
'third' = 'third choice'
);

$lists = new Zend_Form_SubForm();
$lists-addElements(array(
new Zend_Form_Element_Multiselect('nameOfMultiselect',array(
'label' = 'Select all you can apply',
'required'  =true,
'filters'   =array('StringTrim'),
'multiOptions'  = $listOptions,

'validators'= array(
array('InArray', false, array(array_keys($listOptions)))
)
))
));
[/code]

I would like to have selected second choice when multiselect display.
How this can be done?
Thanks,
Vladimir
-- 
View this message in context: 
http://www.nabble.com/How-to-add-select%3Dselected-in-Zend_Form_Element_Multiselect-tp19166233p19166233.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Zend Dojo and Back button in browser

2008-08-26 Thread vladimirn

Hello all, i was wondering if any of you have some nice solution for this
problem.
After displaying data on the page(using zend dojo) when i click on browser
Back button, i would like to keep those data on my page but i am navigated
out of page and  my data are lost.
Dojo have some solution using # anchor and something like that, but i dont
like it ;)
Is there any way to keep data pulled by dojo script and without using iframe
and anchor in url?
-- 
View this message in context: 
http://www.nabble.com/Zend-Dojo-and-Back-button-in-browser-tp19166492p19166492.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Speed and performance between ZF releases

2008-08-26 Thread Matthew Weier O'Phinney
-- Endijs Lisovskis [EMAIL PROTECTED] wrote
(on Tuesday, 26 August 2008, 10:27 AM -0700):
 At first let me say THANKS for your reply! I was not expecting such a long
 comment. I will definitely look at ZF 1.7 features and optimizations.
 
 I can't give you any links to articles where someone is pointing out that ZF
 is slow, except one you already gave. But each time when I talk about
 frameworks and ZF in particular I receive negative reactions and all of
 theme are because of doubts about ZF performance. Those comments I receive
 in my blog where I talk about ZF and even maybe promote it and in local PHP
 forum too. 
 OK - those who comment cant provide exact numbers in which I could see
 difference between ZF and other frameworks. But all they need to say - ZF is
 complicated, big and with a lot of components etc. etc. And each version is
 becoming bigger and bigger. I would like to argue, that growth in features
 is not affecting speed 

But that's precisely true. Growth in breadth does not equal decrease in
performance. On a typical request, you're using a very small subset of
the available functionality -- and anything you're not using is _not_
loaded. The argument is basically a straw man.

 - but I can't because there are no any tests out
 there.
 I hope you see the problem. In short They say it is slow, but there is no
 way we can prove they are wrong. 

Another way to put is is, they say it is slow, but have no numbers to
back it up. Just depends what side of the argument you're on.

Our plan is to publish our methodology so others can reproduce our
results.

That said, we'll _always_ be slower than projects like CodeIgniter --
that project, in particular, is built with a very light footprint. The
downside is that you have less available at your disposal to speed up
development.

The primary trade-off with any framework is almost always developer time
over processor time.


 And sorry for my grammar and structure of sentences. English is not my
 mothers tongue, so it is not very easy for me to write in correct English.
 
 
 wllm wrote:
  
  Where have you heard that ZF is one of the slowest frameworks out there?
  While I haven't heard many claims that ZF is the most performant- that
  distinction is usually reserved for Code Igniter or one of the other
  lightweight, performance-focused frameworks- I haven't heard any claims
  that it is the least performant. The most transparent and sound
  benchmarks that I've seen are available here:
  http://www.avnetlabs.com/php/php-framework-comparison-benchmarks. That
  puts ZF at roughly 50% of the throughput of Code Igniter. That may sound
  like a lot at first, but as I mention in a comment there, baseline PHP
  can handle *15 times* the load than Code Igniter and CakePHP falls far
  short of both (at least in these particular tests). This article
  demonstrates well that accurate performance characterizations among
  different frameworks are *extremely* difficult to come up with in the
  first place, and that any framework faces tradeoffs between performance
  and functionality. In the end, I'm pretty comfortable with the
  characterization that ZF is 'twice as slow' as a framework that has been
  optimized from the get go for performance like Code Igniter. Those who
  understand the tests at hand and have real performance requirements will
  understand that this may easily be eclipsed by functionality
  requirements for any given project.
  That said, we are planning to focus all of the Zend team's contributions
  for 1.7 around performance analysis and enhancements. We don't have a
  test environment with which we can thoroughly benchmark all the
  frameworks yet, but we will have one set up soon. Once we can start
  getting good numbers, we will focus on the performance of the MVC
  components, along with other components- like Zend_Search_Lucene- which
  are very sensitive to algorithmic complexity and optimizations. We've
  already profiled the framework with a simple application and identified
  some optimizations. If you are interested in the performance of ZF, then
  keep your eyes peeled for optimization commits in the next few weeks.
  
  ,Wil
  
  -Original Message-
  From: Endijs Lisovskis [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, August 26, 2008 8:30 AM
  To: fw-general@lists.zend.com
  Subject: [fw-general] Speed and performance between ZF releases
  
  
  Hi!
  
  I wanted to ask - are there any tests done to compare ZF releases to
  see
  which ones are faster and uses less resources?
  
  I'm asking this, because when there are discussions about frameworks -
  almost everyone says that ZF is one of slowest frameworks out there
  (if
  compared to Symfony, Cake etc.). It would be good to know if ZF is
  making
  progress, or failing because of all new functions added to it.
  
  Thanks!
  
  Endijs Lisovskis
  --
  View this message in context: http://www.nabble.com/Speed-and-
  

Re: [fw-general] How to add select=selected in Zend_Form_Element_Multiselect

2008-08-26 Thread Matthew Weier O'Phinney
-- vladimirn [EMAIL PROTECTED] wrote
(on Tuesday, 26 August 2008, 10:29 AM -0700):
 I was searching all over but failed to find a way to add selected=selected
 into multiselect.
 My code is like this:
 [code]
 $listOptions=(array(
 'first'= 'first choice',
 'second' = 'second choice',
 'third' = 'third choice'
 );
 
 $lists = new Zend_Form_SubForm();
 $lists-addElements(array(
 new Zend_Form_Element_Multiselect('nameOfMultiselect',array(
 'label'   = 'Select all you can apply',

Add a value. Multiselect expects an array of keys that should be
selected:

  'value'   = array('second'),

 'required'=true,
 'filters' =array('StringTrim'),
 'multiOptions'= $listOptions,
 
 'validators'  = array(
 array('InArray', false, array(array_keys($listOptions)))
 )
 ))
 ));
 [/code]
 
 I would like to have selected second choice when multiselect display.
 How this can be done?


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


Re: [fw-general] Zend Dojo and Back button in browser

2008-08-26 Thread Matthew Weier O'Phinney
-- vladimirn [EMAIL PROTECTED] wrote
(on Tuesday, 26 August 2008, 10:35 AM -0700):
 Hello all, i was wondering if any of you have some nice solution for this
 problem.
 After displaying data on the page(using zend dojo) when i click on browser
 Back button, i would like to keep those data on my page but i am navigated
 out of page and  my data are lost.
 Dojo have some solution using # anchor and something like that, but i dont
 like it ;)

Well, I have to question not using technology just because you don't
like it. ;)

What don't you like about it? This is becoming a standard mechanism for
allowing for back button functionality -- gmail uses it, facebook uses
it... it basically leverages the browser's inherent functionality.

 Is there any way to keep data pulled by dojo script and without using iframe
 and anchor in url?

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


Re: [fw-general] Zend Dojo and Back button in browser

2008-08-26 Thread vladimirn



Matthew Weier O'Phinney-3 wrote:
 
 -- vladimirn [EMAIL PROTECTED] wrote
 (on Tuesday, 26 August 2008, 10:35 AM -0700):
 Hello all, i was wondering if any of you have some nice solution for this
 problem.
 After displaying data on the page(using zend dojo) when i click on
 browser
 Back button, i would like to keep those data on my page but i am
 navigated
 out of page and  my data are lost.
 Dojo have some solution using # anchor and something like that, but i
 dont
 like it ;)
 
 Well, I have to question not using technology just because you don't
 like it. ;)
 
 What don't you like about it? This is becoming a standard mechanism for
 allowing for back button functionality -- gmail uses it, facebook uses
 it... it basically leverages the browser's inherent functionality.
 
 Is there any way to keep data pulled by dojo script and without using
 iframe
 and anchor in url?
 
 -- 
 Matthew Weier O'Phinney
 Software Architect   | [EMAIL PROTECTED]
 Zend Framework   | http://framework.zend.com/
 
 

Hey Matthew :)
Thanks for swift replay :)
Well, you are absoultely in right about it, it is only my overall feeling
when looking in URL :) looks ugly to me lol
So thats why i asked if there some 'nicer' method to do this :)

-- 
View this message in context: 
http://www.nabble.com/Zend-Dojo-and-Back-button-in-browser-tp19166492p19167256.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Speed and performance between ZF releases

2008-08-26 Thread Endijs Lisovskis

I'm just wondering... all those new components that are added to ZF - are
they completely independent - or you need to alter some core components in
order for new ones to work? I suppose there are new components that require
core changes and ones that don't require. But maybe i'm wrong. I'm not ZF
developer - so I don't really  know how all this is built one core level.
Question is - if there are new components that require core changes - maybe
there is possibility that those changes affects speed even if new components
are not used. If core changes are never needed, then it's 100% clear, that
new features can't affect speed if they are not used.

I cant imagine how you will be able to provide methodology for different
framework tests, but if you will achieve this, then that would be amazing. 
I think that very important and interesting thing would be to see how each
components are becoming faster and for how much. I know - example is not
most accurate, but each jQuery release comes with not only new features
lists, but with tests results, which represents how much new jQuery is
faster than previous one. That would be great to see in ZF changelogs.

Best wishes,
Endijs Lisovskis


Matthew Weier O'Phinney-3 wrote:
 
 -- Endijs Lisovskis [EMAIL PROTECTED] wrote
 (on Tuesday, 26 August 2008, 10:27 AM -0700):
 At first let me say THANKS for your reply! I was not expecting such a
 long
 comment. I will definitely look at ZF 1.7 features and optimizations.
 
 I can't give you any links to articles where someone is pointing out that
 ZF
 is slow, except one you already gave. But each time when I talk about
 frameworks and ZF in particular I receive negative reactions and all of
 theme are because of doubts about ZF performance. Those comments I
 receive
 in my blog where I talk about ZF and even maybe promote it and in local
 PHP
 forum too. 
 OK - those who comment cant provide exact numbers in which I could see
 difference between ZF and other frameworks. But all they need to say - ZF
 is
 complicated, big and with a lot of components etc. etc. And each version
 is
 becoming bigger and bigger. I would like to argue, that growth in
 features
 is not affecting speed 
 
 But that's precisely true. Growth in breadth does not equal decrease in
 performance. On a typical request, you're using a very small subset of
 the available functionality -- and anything you're not using is _not_
 loaded. The argument is basically a straw man.
 
 - but I can't because there are no any tests out
 there.
 I hope you see the problem. In short They say it is slow, but there is
 no
 way we can prove they are wrong. 
 
 Another way to put is is, they say it is slow, but have no numbers to
 back it up. Just depends what side of the argument you're on.
 
 Our plan is to publish our methodology so others can reproduce our
 results.
 
 That said, we'll _always_ be slower than projects like CodeIgniter --
 that project, in particular, is built with a very light footprint. The
 downside is that you have less available at your disposal to speed up
 development.
 
 The primary trade-off with any framework is almost always developer time
 over processor time.
 
 
 And sorry for my grammar and structure of sentences. English is not my
 mothers tongue, so it is not very easy for me to write in correct
 English.
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Speed-and-performance-between-ZF-releases-tp19164298p19167401.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] How to add select=selected in Zend_Form_Element_Multiselect

2008-08-26 Thread vladimirn



Matthew Weier O'Phinney-3 wrote:
 
 -- vladimirn [EMAIL PROTECTED] wrote
 (on Tuesday, 26 August 2008, 10:29 AM -0700):
 I was searching all over but failed to find a way to add
 selected=selected
 into multiselect.
 My code is like this:
 [code]
 $listOptions=(array(
 'first'= 'first choice',
 'second' = 'second choice',
 'third' = 'third choice'
 );
 
 $lists = new Zend_Form_SubForm();
 $lists-addElements(array(
 new Zend_Form_Element_Multiselect('nameOfMultiselect',array(
 'label'  = 'Select all you can apply',
 
 Add a value. Multiselect expects an array of keys that should be
 selected:
 
   'value'   = array('second'),
 
 'required'   =true,
 'filters'=array('StringTrim'),
 'multiOptions'   = $listOptions,
 
 'validators' = array(
 array('InArray', false,
 array(array_keys($listOptions)))
 )
 ))
 ));
 [/code]
 
 I would like to have selected second choice when multiselect display.
 How this can be done?
 
 
 -- 
 Matthew Weier O'Phinney
 Software Architect   | [EMAIL PROTECTED]
 Zend Framework   | http://framework.zend.com/
 
 


Dang!
as simply as that :)
Thank you Matthew.

Well, is there a room to ask another question? or should i open a new topic?
I need to add hidden text area bellow multiselect, and if you select third
choice, this hidden box should appear visible.
How to set up something like this?
Thanks a lot,
Vladd

p.s. [off topic] about zend dojo webinar- can u post a link to my mail or
here pls?
-- 
View this message in context: 
http://www.nabble.com/How-to-add-select%3Dselected-in-Zend_Form_Element_Multiselect-tp19166233p19167409.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Hey, what happened to Zend_Http_Server?

2008-08-26 Thread Matthew Ratzloff
All good points.  Thanks for the responses, guys.
-Matt

On Mon, Aug 25, 2008 at 6:01 PM, Matthew Weier O'Phinney
[EMAIL PROTECTED]wrote:

 -- Matthew Ratzloff [EMAIL PROTECTED] wrote
 (on Monday, 25 August 2008, 03:54 PM -0700):
  It's still in incubator after a couple of years.  What happened?  No unit
  tests, it looks like.  This could be a useful tool for quickly getting
 set up
  for Zend Framework development--it'd be nice to see it finished.
 
  http://framework.zend.com/svn/framework/standard/incubator/tools/
  http_server/

 Several factors:

  * As Christoph noted, it relies on pcntl for much of its work. We're
trying hard to stay OS agnostic, and since pcntl does not work on
Windows, it makes it hard to justify supporting it.

  * Interest. Shahar did some initial work, but he has been too busy to
continue with it. Nobody else has stepped up to help with
development.

  * Scope. How much of the HTTP specification should it support? Should
it support SSL over HTTP? Should it implement HTTP Auth? Should it
allow returning binary files?

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



Re: [fw-general] Speed and performance between ZF releases

2008-08-26 Thread Matthew Weier O'Phinney
-- Endijs Lisovskis [EMAIL PROTECTED] wrote
(on Tuesday, 26 August 2008, 11:14 AM -0700):
 
 I'm just wondering... all those new components that are added to ZF - are
 they completely independent - or you need to alter some core components in
 order for new ones to work? I suppose there are new components that require
 core changes and ones that don't require. But maybe i'm wrong. I'm not ZF
 developer - so I don't really  know how all this is built one core level.
 Question is - if there are new components that require core changes - maybe
 there is possibility that those changes affects speed even if new components
 are not used. If core changes are never needed, then it's 100% clear, that
 new features can't affect speed if they are not used.

As a general rule, we don't allow new components that necessitate
changing existing components to depend on them, unless there's a _very_
good reason (for instance, if you need to add plugin capabilities, or
are refactoring an existing component to spin off functionality to a new
component).

We _did_ have a performance regression initially with 1.6.0RC1 due to
changes in the router to allow hostname-based routing. However, those
working on the component came up with a better solution for RC2 that not
only eliminated the problems, but also provided a path for speeding up
routing for later releases.

To this date, we haven't focussed much on performance, but primarily on
functionality. As the adage goes, premature optimization is the root of
all evil; it makes more sense to get a solid and tested code base
first, and then focus on optimizing later.

 I cant imagine how you will be able to provide methodology for different
 framework tests, but if you will achieve this, then that would be amazing. 
 I think that very important and interesting thing would be to see how each
 components are becoming faster and for how much. I know - example is not
 most accurate, but each jQuery release comes with not only new features
 lists, but with tests results, which represents how much new jQuery is
 faster than previous one. That would be great to see in ZF changelogs.

As mentioned previously, the focus for 1.7, internally, is performance.
After we get a reasonable benchmarking suite worked up, we can publish
this for others to use -- and can also start testing each ZF release to
see what improvements/detriments were made.


 Matthew Weier O'Phinney-3 wrote:
  
  -- Endijs Lisovskis [EMAIL PROTECTED] wrote
  (on Tuesday, 26 August 2008, 10:27 AM -0700):
  At first let me say THANKS for your reply! I was not expecting such a
  long
  comment. I will definitely look at ZF 1.7 features and optimizations.
  
  I can't give you any links to articles where someone is pointing out that
  ZF
  is slow, except one you already gave. But each time when I talk about
  frameworks and ZF in particular I receive negative reactions and all of
  theme are because of doubts about ZF performance. Those comments I
  receive
  in my blog where I talk about ZF and even maybe promote it and in local
  PHP
  forum too. 
  OK - those who comment cant provide exact numbers in which I could see
  difference between ZF and other frameworks. But all they need to say - ZF
  is
  complicated, big and with a lot of components etc. etc. And each version
  is
  becoming bigger and bigger. I would like to argue, that growth in
  features
  is not affecting speed 
  
  But that's precisely true. Growth in breadth does not equal decrease in
  performance. On a typical request, you're using a very small subset of
  the available functionality -- and anything you're not using is _not_
  loaded. The argument is basically a straw man.
  
  - but I can't because there are no any tests out
  there.
  I hope you see the problem. In short They say it is slow, but there is
  no
  way we can prove they are wrong. 
  
  Another way to put is is, they say it is slow, but have no numbers to
  back it up. Just depends what side of the argument you're on.
  
  Our plan is to publish our methodology so others can reproduce our
  results.
  
  That said, we'll _always_ be slower than projects like CodeIgniter --
  that project, in particular, is built with a very light footprint. The
  downside is that you have less available at your disposal to speed up
  development.
  
  The primary trade-off with any framework is almost always developer time
  over processor time.
  
  
  And sorry for my grammar and structure of sentences. English is not my
  mothers tongue, so it is not very easy for me to write in correct
  English.
  
  
  
 
 -- 
 View this message in context: 
 http://www.nabble.com/Speed-and-performance-between-ZF-releases-tp19164298p19167401.html
 Sent from the Zend Framework mailing list archive at Nabble.com.
 

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


Re: [fw-general] Hey, what happened to Zend_Http_Server?

2008-08-26 Thread Christoph Dorn

   * As Christoph noted, it relies on pcntl for much of its work. We're
 trying hard to stay OS agnostic, and since pcntl does not work on
 Windows, it makes it hard to justify supporting it.
   
But there is no reason why it could not be further developed in the
Extras library?

   * Interest. Shahar did some initial work, but he has been too busy to
 continue with it. Nobody else has stepped up to help with
 development.
   
I am interested. Maybe not right now, but in a few months I should have
more time.

   * Scope. How much of the HTTP specification should it support? Should
 it support SSL over HTTP? Should it implement HTTP Auth? Should it
 allow returning binary files?
   
I think that depends on the motivation for writing the server. My goal
would be to use it as a lightweight server to test all ZF components and
be able to run sample applications as well as a REST server. It can then
grow from there based on requested features.

Christoph






Re: [fw-general] How to add select=selected in Zend_Form_Element_Multiselect

2008-08-26 Thread Matthew Weier O'Phinney
-- vladimirn [EMAIL PROTECTED] wrote
(on Tuesday, 26 August 2008, 11:15 AM -0700):
 Well, is there a room to ask another question? or should i open a new topic?
 I need to add hidden text area bellow multiselect, and if you select third
 choice, this hidden box should appear visible.
 How to set up something like this?

Use javascript to do this. When the page renders, do two things:

  * hide the element (set the visibility attribute to 'collapse')
  
  * connect an event handler to the multiselect option that looks for
the number of selected options and re-displays the hidden element.

For techniques on this, visit your favorite JS toolkit mailing list or
IRC channel.

 p.s. [off topic] about zend dojo webinar- can u post a link to my mail or
 here pls?

Sure:


http://www.zend.com/en/company/news/event/webinar-zend-framework-and-dojo-integration

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


Re: [fw-general] How to add select=selected in Zend_Form_Element_Multiselect

2008-08-26 Thread vladimirn

Thanks for the link and for guide lines.
I thought that something like that should be solution, but i need to
rephrase my question-
how to add on click in my array? is there somethin like:
 new Zend_Form_Element_Multiselect('nameOfMultiselect',array(
'label' = 'Select all you can apply',
'required'  =true,
'filters'   =array('StringTrim'),
'multiOptions'  = $listOptions,
'value'   = array('eml'), 
'onClick'   = 'DoSomething'// ---

and more, how to add this on specific array key/value which i am building in 
$listOptions = array(
'first'='first choice',
'second' ='second choice',
'third' = 'third choice',
'clickOne' = 'I want this one to opena hidden text area :)'
);


:))


Matthew Weier O'Phinney-3 wrote:
 
 -- vladimirn [EMAIL PROTECTED] wrote
 (on Tuesday, 26 August 2008, 11:15 AM -0700):
 Well, is there a room to ask another question? or should i open a new
 topic?
 I need to add hidden text area bellow multiselect, and if you select
 third
 choice, this hidden box should appear visible.
 How to set up something like this?
 
 Use javascript to do this. When the page renders, do two things:
 
   * hide the element (set the visibility attribute to 'collapse')
   
   * connect an event handler to the multiselect option that looks for
 the number of selected options and re-displays the hidden element.
 
 For techniques on this, visit your favorite JS toolkit mailing list or
 IRC channel.
 
 p.s. [off topic] about zend dojo webinar- can u post a link to my mail or
 here pls?
 
 Sure:
 

 http://www.zend.com/en/company/news/event/webinar-zend-framework-and-dojo-integration
 
 -- 
 Matthew Weier O'Phinney
 Software Architect   | [EMAIL PROTECTED]
 Zend Framework   | http://framework.zend.com/
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-add-select%3Dselected-in-Zend_Form_Element_Multiselect-and-one-more-question-%3A%29-tp19166233p19168608.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Hey, what happened to Zend_Http_Server?

2008-08-26 Thread Matthew Weier O'Phinney
-- Christoph Dorn [EMAIL PROTECTED] wrote
(on Tuesday, 26 August 2008, 12:02 PM -0700):
 
* As Christoph noted, it relies on pcntl for much of its work. We're
  trying hard to stay OS agnostic, and since pcntl does not work on
  Windows, it makes it hard to justify supporting it.

 But there is no reason why it could not be further developed in the
 Extras library?

Nope, no reason whatsoever. If you decide you'd like to do so, though,
I'd like to see a solid proposal outlining the goals -- that will also
serve to set expectations for the component for those who decide to
start testing/using it.

* Interest. Shahar did some initial work, but he has been too busy to
  continue with it. Nobody else has stepped up to help with
  development.

 I am interested. Maybe not right now, but in a few months I should have
 more time.
 
* Scope. How much of the HTTP specification should it support? Should
  it support SSL over HTTP? Should it implement HTTP Auth? Should it
  allow returning binary files?

 I think that depends on the motivation for writing the server. My goal
 would be to use it as a lightweight server to test all ZF components and
 be able to run sample applications as well as a REST server. It can then
 grow from there based on requested features.

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


Re: [fw-general] How to add select=selected in Zend_Form_Element_Multiselect

2008-08-26 Thread Matthew Weier O'Phinney
-- vladimirn [EMAIL PROTECTED] wrote
(on Tuesday, 26 August 2008, 12:23 PM -0700):
 
 Thanks for the link and for guide lines.
 I thought that something like that should be solution, but i need to
 rephrase my question-
 how to add on click in my array? is there somethin like:
  new Zend_Form_Element_Multiselect('nameOfMultiselect',array(
 'label'   = 'Select all you can apply',
 'required'=true,
 'filters' =array('StringTrim'),
 'multiOptions'= $listOptions,
 'value'   = array('eml'), 
 'onClick'   = 'DoSomething'// ---

Yep -- any configuration key that does not correspond to an accessor is
then set as an object property, and passed as an attribute to the view
helper.

 and more, how to add this on specific array key/value which i am building in 
 $listOptions = array(
 'first'='first choice',
 'second' ='second choice',
 'third' = 'third choice',
 'clickOne' = 'I want this one to opena hidden text area :)'
 );

Again, go to your favorite JS toolkit mailing list or IRC channel. :)


 Matthew Weier O'Phinney-3 wrote:
  
  -- vladimirn [EMAIL PROTECTED] wrote
  (on Tuesday, 26 August 2008, 11:15 AM -0700):
  Well, is there a room to ask another question? or should i open a new
  topic?
  I need to add hidden text area bellow multiselect, and if you select
  third
  choice, this hidden box should appear visible.
  How to set up something like this?
  
  Use javascript to do this. When the page renders, do two things:
  
* hide the element (set the visibility attribute to 'collapse')

* connect an event handler to the multiselect option that looks for
  the number of selected options and re-displays the hidden element.
  
  For techniques on this, visit your favorite JS toolkit mailing list or
  IRC channel.
  
  p.s. [off topic] about zend dojo webinar- can u post a link to my mail or
  here pls?
  
  Sure:
  
 
  http://www.zend.com/en/company/news/event/webinar-zend-framework-and-dojo-integration
  
  -- 
  Matthew Weier O'Phinney
  Software Architect   | [EMAIL PROTECTED]
  Zend Framework   | http://framework.zend.com/
  
  
 
 -- 
 View this message in context: 
 http://www.nabble.com/How-to-add-select%3Dselected-in-Zend_Form_Element_Multiselect-and-one-more-question-%3A%29-tp19166233p19168608.html
 Sent from the Zend Framework mailing list archive at Nabble.com.
 

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


Re: [fw-general] Strict Standards: i dont understand this warning

2008-08-26 Thread R!

It means that your method setSubFormDecorators must have same parameters as
Zend_Form::setSubFormDecorators

vladimirn wrote:
 
 Strict Standards: Declaration of
 forms_Registration::setSubFormDecorators() should be compatible with that
 of Zend_Form::setSubFormDecorators() in
 C:\wamp\www\zend-fw\application\forms\registration.php on line 2
 /* registration.php */
 ?php
 class forms_Registration extends Zend_Form // this is line 2
 {
 public function init()
 {
 // Create user sub form: username and password
 $user = new Zend_Form_SubForm();
 
 What this warning actually means? And it is displayed on every page on my
 multi page registration form.
 Files i am using are registration.php and RegistrationController.php
 
 Thanks,
 Vladd
 

-- 
View this message in context: 
http://www.nabble.com/Strict-Standards%3A-i-dont-understand-this-warning-tp19167866p19169248.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Strict Standards: i dont understand this warning

2008-08-26 Thread vladimirn

Thank you for reply :)
I see.
But how to solve this?
i used a code from zend manual and this is a  part which i didnt touch (lol)
public function setSubFormDecorators(Zend_Form_SubForm $subForm)
{
$subForm-setDecorators(array(
'FormElements',
array('HtmlTag', array('tag' = 'dl', 'class' = 'zend_form')),
'Form',
));
return $this;
}
So i dont know what to do and how to make it compatible :)


R! wrote:
 
 It means that your method setSubFormDecorators must have same parameters
 as Zend_Form::setSubFormDecorators
 
 vladimirn wrote:
 
 Strict Standards: Declaration of
 forms_Registration::setSubFormDecorators() should be compatible with that
 of Zend_Form::setSubFormDecorators() in
 C:\wamp\www\zend-fw\application\forms\registration.php on line 2
 /* registration.php */
 ?php
 class forms_Registration extends Zend_Form // this is line 2
 {
 public function init()
 {
 // Create user sub form: username and password
 $user = new Zend_Form_SubForm();
 
 What this warning actually means? And it is displayed on every page on my
 multi page registration form.
 Files i am using are registration.php and RegistrationController.php
 
 Thanks,
 Vladd
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Strict-Standards%3A-i-dont-understand-this-warning-tp19167866p19169347.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] How to add select=selected in Zend_Form_Element_Multiselect

2008-08-26 Thread vladimirn

Huh, i think you dont understand me :)) 
I dont know how to put onClick event in select tag :) I know how to make
this without zend form, but cant figure it out how to put onClick in
$listOptions array:)
I will use CAPS just to point on some lines :) sorry about that :)
This array build my select tag if i understud well:
 
 $listOptions = array(
 'first'='first choice',
 'second' ='second choice',
 'third' = 'third choice'
)
and then i am building multiselect as:

$lists = new Zend_Form_SubForm();
$lists-addElements(array(
new Zend_Form_Element_Multiselect('nameOfMultiselect',array(
'label' = 'Select all you can apply',
'required'  =true,
'filters'   =array('StringTrim'),
'multiOptions'  = $listOptions,
'value'   = array('second'), // this one sometimes works and
sometimes not, i cant figure it out why
'onClick'   ='some javascrpt code here',// THIS IS APPLIED 
ON SELECT
TAG INSTEAD ON OPTION TAG :))
'validators'= array(
array('InArray', false, array(array_keys($listOptions)))
)
)),
And later this will be displayed as bellow

select name=lists[nameOfMultiselect][] id=lists-nameOfMultiselect
multiple=multiple onClick=some javascript code here// there is unwanted
onClick event lol, i want this onClick inside of option tag
option value=first label=first choicefirst choice/option
option value=second label=second choicesecond
choice/option//THIS ONE SHOULD BE SELECTED, RIGHT? But somehow it is not
:) Well, sometimes it is selected, but not this time :)
option value=third label=third choicethird choice/option// here
i need onClick event :)







Matthew Weier O'Phinney-3 wrote:
 
 -- vladimirn [EMAIL PROTECTED] wrote
 (on Tuesday, 26 August 2008, 12:23 PM -0700):
 
 Thanks for the link and for guide lines.
 I thought that something like that should be solution, but i need to
 rephrase my question-
 how to add on click in my array? is there somethin like:
  new Zend_Form_Element_Multiselect('nameOfMultiselect',array(
 'label'  = 'Select all you can apply',
 'required'   =true,
 'filters'=array('StringTrim'),
 'multiOptions'   = $listOptions,
 'value'   = array('eml'), 
 'onClick'   = 'DoSomething'// ---
 
 Yep -- any configuration key that does not correspond to an accessor is
 then set as an object property, and passed as an attribute to the view
 helper.
 
 and more, how to add this on specific array key/value which i am building
 in 
 $listOptions = array(
 'first'='first choice',
 'second' ='second choice',
 'third' = 'third choice',
 'clickOne' = 'I want this one to opena hidden text area :)'
 );
 
 Again, go to your favorite JS toolkit mailing list or IRC channel. :)
 
 
 Matthew Weier O'Phinney-3 wrote:
  
  -- vladimirn [EMAIL PROTECTED] wrote
  (on Tuesday, 26 August 2008, 11:15 AM -0700):
  Well, is there a room to ask another question? or should i open a new
  topic?
  I need to add hidden text area bellow multiselect, and if you select
  third
  choice, this hidden box should appear visible.
  How to set up something like this?
  
  Use javascript to do this. When the page renders, do two things:
  
* hide the element (set the visibility attribute to 'collapse')

* connect an event handler to the multiselect option that looks for
  the number of selected options and re-displays the hidden element.
  
  For techniques on this, visit your favorite JS toolkit mailing list or
  IRC channel.
  
  p.s. [off topic] about zend dojo webinar- can u post a link to my mail
 or
  here pls?
  
  Sure:
  
 
 
 http://www.zend.com/en/company/news/event/webinar-zend-framework-and-dojo-integration
  
  -- 
  Matthew Weier O'Phinney
  Software Architect   | [EMAIL PROTECTED]
  Zend Framework   | http://framework.zend.com/
  
  
 
 -- 
 View this message in context:
 http://www.nabble.com/How-to-add-select%3Dselected-in-Zend_Form_Element_Multiselect-and-one-more-question-%3A%29-tp19166233p19168608.html
 Sent from the Zend Framework mailing list archive at Nabble.com.
 
 
 -- 
 Matthew Weier O'Phinney
 Software Architect   | [EMAIL PROTECTED]
 Zend Framework   | http://framework.zend.com/
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-add-select%3Dselected-in-Zend_Form_Element_Multiselect-and-one-more-question-%3A%29-tp19166233p19169726.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Using ZF-1.6.0 with Dojo1.1.1 integration

2008-08-26 Thread Micah Gersten
How can we access the webinar?

Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com



Matthew Weier O'Phinney wrote:
 -- Kexiao Liao [EMAIL PROTECTED] wrote
 (on Monday, 25 August 2008, 12:44 PM -0700):
   
 Are there any good examples/demos to show us how to use Ajax functionalities
 with ZF1.6.0 RC2 with Dojo integration? Thanks for your help. Kevin
 

 There are some examples in the manual under the Zend_Dojo section.
 Additionally, I am doing a webinar next Wednesday that will showcase a
 variety of features -- and I'll be providing some example code that you
 can download and play with later.

   


Re: [fw-general] Using ZF-1.6.0 with Dojo1.1.1 integration

2008-08-26 Thread Matthew Weier O'Phinney
-- Micah Gersten [EMAIL PROTECTED] wrote
(on Tuesday, 26 August 2008, 05:17 PM -0500):
 How can we access the webinar?

Use this URL for more information and a link to register:


http://www.zend.com/en/company/news/event/webinar-zend-framework-and-dojo-integration

 Matthew Weier O'Phinney wrote:
  -- Kexiao Liao [EMAIL PROTECTED] wrote
  (on Monday, 25 August 2008, 12:44 PM -0700):

  Are there any good examples/demos to show us how to use Ajax 
  functionalities
  with ZF1.6.0 RC2 with Dojo integration? Thanks for your help. Kevin
  
 
  There are some examples in the manual under the Zend_Dojo section.
  Additionally, I am doing a webinar next Wednesday that will showcase a
  variety of features -- and I'll be providing some example code that you
  can download and play with later.

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


[fw-general] Zend_Dojo_Form_Element_Button and isChecked()

2008-08-26 Thread Matthew Lurz

I'm attempting to process a form conditionally based upon which button was
clicked. This is working using Zend_Form_Element_Button, but not the Dojo
variant. Calls to addElement look like this:

$this-addElement(
'Button',
'save',
array(
'label' = 'Save',
'order' = 100,
)
);

$this-addElement(
'Button',
'saveandexit',
array(
'label' = 'Save  Exit',
'order' = 101,
)
);

And the controller code..

if ($form-save-isChecked()) {
$params = array('id' = $post-id);
$this-redirector-gotoSimple('edit', 'post', 'dashboard', $params);
}

Am I missing something?
-- 
View this message in context: 
http://www.nabble.com/Zend_Dojo_Form_Element_Button-and-isChecked%28%29-tp19172737p19172737.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Zend_Form Label with script

2008-08-26 Thread Bruno Friedmann
Matthew Weier O'Phinney wrote:
 -- Bruno Friedmann [EMAIL PROTECTED] wrote
 (on Tuesday, 26 August 2008, 09:50 AM +0200):
 Hi All, I have to ask for this because not found anything in archives nor 
 Google or Yahoo.

 I need to have a label ( for a select element in Zend_Form )
 this label must contain a link like this

 a href=# onclick=javascript: alert('thing');More/a


 $mylink = 'a href=# onclick=javascript: alert('thing');More/a';
  
 $element = new Zend_Form_Element_Select('partnerid');
 $element-addMultiOptions($this-partners_array)
 -setRequired(true)
 -setLabel( 'this is normal text' . $mylink )
 -setAttrib('size', 1)
 -setAttrib('maxlength', 1)
 -setAttrib('onclick', 'javascript: ShowPartnerDetails(); return 
 false;')
 -addFilter($filterTags)
 -addFilter($filterTrim)
 -addValidator($validatorNotEmpty, true)
 -addValidator($validatorNum, true)
 -setValue(1)
 ;
 $this-addElement($element);

 Of course like this it's render with htmlentities ( did I mention I hate it 
 :-)

 I couldn't be able to find how to make this or which method  options I've 
 to call.

 Has someone a way ?
 
 After you've setup the element, grab the label decorator:
 
 $decorator = $element-getDecorator('Label');
 
 and then tell it not to escape:
 
 $decorator-setOption('escape', false);
 
 Alternately, you can do this at configuration time when setting up the
 decorator -- add an additional 'escape' option to pass to it.
 
 And that's all there is to it.
 

I knew that's the anwser would be simple ... :-)

Thanks, in one or two month with lot's forms builded I will understand all 
subtle details of Zend_Form

Many thanks for this ...


-- 

 Bruno Friedmann