[fw-general] Zend_form Action Redirect

2008-09-17 Thread Rohit83

Hi All,
I have developed one form containing one text box and check box and submit
button
if i checked the check box and clicked on submit  i want to redirect it on
another action
and when the checkbox remains unchecked and by clicking on submit button the
value 
of text box should be accessed within isPost() of same action
How can i do that?
thanks in advance for your valuable answer
Regards 
Rohit
-- 
View this message in context: 
http://www.nabble.com/Zend_form-Action-Redirect-tp19529644p19529644.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Figlet Letter F

2008-09-17 Thread mothmenace

Hi,

Client complains about Figlet Letter F being unreadable. I edited it to:

 _#
|  ___||  #
| ||_ #
|  _||#
| ||  #
 `-`  #
  ##

The stalk is a little short looking, but much easier to read IMO than: 

  __  #
 /_// #
 ` `  #
 /___//   #
 `__ `#
 /_// #
 `-`  ##

Or was this F meant to look like the ZF logo ? ;-)
-- 
View this message in context: 
http://www.nabble.com/Figlet-Letter-F-tp19529662p19529662.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Lucene Utf8/Utf8_CaseInsensitive Question

2008-09-17 Thread th3hamm0r

Hi,

i've a little question concerning queries. There are two files, one for the
index creation and one for the search.
I used the Utf8_CaseInsensitive-Analyzer in both files and tried to search
something with the Query Parser and with the Query-API.
I think i've build the same query with both ways, but got different results:




// file1: create index:
setlocale(LC_ALL,'de_AT.UTF-8');
...
Zend_Search_Lucene_Analysis_Analyzer::setDefault(
new Zend_Search_Lucene_Analysis_Analyzer_Common_Utf8_CaseInsensitive());
...
$index = Zend_Search_Lucene::create('testindex/myindex');
...
// add doc
$doc = new Zend_Search_Lucene_Document();
...
$doc-addField(Zend_Search_Lucene_Field::Text('afield', 'test Vienna Wien
Βιέννη Беч Вена'));
...
$index-addDocument($doc);
...
$index-commit();


// file2: search
setlocale(LC_ALL,'de_AT.UTF-8');
...
Zend_Search_Lucene_Analysis_Analyzer::setDefault(
new Zend_Search_Lucene_Analysis_Analyzer_Common_Utf8_CaseInsensitive());
Zend_Search_Lucene_Search_QueryParser::setDefaultEncoding('utf-8');
...
$index = Zend_Search_Lucene::open('testindex/myindex');

// search with query parser:
$query1 = Zend_Search_Lucene_Search_QueryParser::parse('afield:Vie*'); //
 hit
$query1 = Zend_Search_Lucene_Search_QueryParser::parse('afield:vie*'); //
 hit
$query2 = Zend_Search_Lucene_Search_QueryParser::parse('afield:Tes*'); //
 hit

... $hits = $index-find($queryX); ...

// search with query-api:
$term  = new Zend_Search_Lucene_Index_Term('Vie*', 'afield'); //  no
hit
$query1 = new Zend_Search_Lucene_Search_Query_Wildcard($term);
$term  = new Zend_Search_Lucene_Index_Term('vie*', 'afield'); //  hit
$query1 = new Zend_Search_Lucene_Search_Query_Wildcard($term);
$term  = new Zend_Search_Lucene_Index_Term('Tes*', 'afield'); //  no
hit
$query1 = new Zend_Search_Lucene_Search_Query_Wildcard($term);

... $hits = $index-find($queryX); ...




I think that the QueryParser uses strtolower and the API not. Of course if i
use
$term  = new Zend_Search_Lucene_Index_Term(mb_strtolower('Vie*'),
'afield');
every query gets a hit.

For me it would be logical if i need not to use strtolower and it will be
done automatically (like with QueryParser),
so for example i could change the analyzer to case-sensitive and it wouldn't
make a difference.

And my last question:
Did i misunderstand something or did i use the Query-API wrong? ;)

thx
Stefan
-- 
View this message in context: 
http://www.nabble.com/Lucene-Utf8-Utf8_CaseInsensitive-Question-tp19532087p19532087.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Zend_Form generated checkbox field

2008-09-17 Thread fozzyuw



Matthew Weier O'Phinney-3 wrote:
 
 -- Aldemar Bernal [EMAIL PROTECTED] wrote
 (on Tuesday, 08 April 2008, 05:47 AM -0500):
 just curious, doesn't Zend_Form create a hidden element with value 0 for
 the
 checkbox field?
 
 No. The Checkbox element itself is smart enough to determine if the
 value was set, and will return either the checkedValue or
 uncheckedValue appropriately. 
 
 These values are 1 and 0 by default, respectively, and you can set them
 using the keys as specified above, or using their accessors
 (setCheckedValue() and setUncheckedValue()). If no value is provided
 for the checkbox, the value of the element will be the uncheckedValue;
 if the value is the same as the checkedValue, that will be used.
 

Ok, this post is a little old (from April) but I've got a question, what's
the whole point of this hidden element being added with a checkbox element? 
This is new to me all around and I was a little surprised and confused as to
why this is being added.

I'm just not sure why (INI config file):

project.form.drivers.elements.businessinnov.type = checkbox

produces (HTML):

input type=hidden name=drivers[businessinnov] value=0 /
input type=checkbox name=drivers[businessinnov]
id=drivers-businessinnov value=1 /

Thanks!
Fozzy
-- 
View this message in context: 
http://www.nabble.com/Zend_Form-generated-checkbox-field-tp16560973p19533820.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] zend dojo text area- how that work?

2008-09-17 Thread vladimirn

Thanks Themodem.
Does anyone knows if Zend FW team will make some solution for this? 


Themodem wrote:
 
 Howdy, it appears to be a bug with Firefox 3 and the dd tag
 
 
 http://dojotoolkit.org/forum/dijit-dijit-0-9/dijit-support/dijit-form-textarea-firefox3-enter-key-does-not-work
 http://dojotoolkit.org/forum/dijit-dijit-0-9/dijit-support/dijit-form-textarea-firefox3-enter-key-does-not-work
  
 
 
 vladimirn wrote:
 
 I need just a simple text area where you can type :
 First row in text area (i would like to press Enter here and to type in
 next row)
 Next row here[Enter]
 And so on..
 
 Well when i press Enter key within Zend Dojo textarea field, nothing
 happens, and you can type forever, no way to make a new row pressing
 Enter.. I cant find the way to have a simple textarea field.
 
 How to make this?
 
 Thanks,
 V
 
 
 

-- 
View this message in context: 
http://www.nabble.com/zend-dojo-text-area--how-that-work--tp19498776p19534258.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Checkbox and Dojo_foRM validation, please help if anyone know how

2008-09-17 Thread vladimirn

Anyone? :(


vladimirn wrote:
 
 Hello all,
 is anyone here able to help about form validation please?
 After pressing submit button expected behaviour is stopping form
 submission if checkbox is not checked.
 
 I have a bunch of stuffs in my form.
 So far, checkbox validation wont work. 
 $agreements-addElement ( 'CheckBox', 'ages', array ('required' = true,
 'label' = 'I\'m Over 18 years old') )
 
 Submit button:
 $footer-addElement ( 'SubmitButton', 'submit', array ('label' =
 'Submit!','style'='clear:both' ) );
 
 view script:
 ? $this-dojo()-javascriptCaptureStart() ?
 function validateForm() {
 var form = dijit.byId(signup);
 if (!form.validate()) {
 alert(Invalid form);
 return false;
 }
 return true;
 }
 ? $this-dojo()-javascriptCaptureEnd() ?
 ? $this-dojo()-onLoadCaptureStart() ?
 function () {
 dojo.connect(dijit.byId(signup), onSubmit, validateForm);
 }
 ? $this-dojo()-onLoadCaptureEnd() ?
 div class=signupForm
 
 ?= $this-form ?
 /div
 

-- 
View this message in context: 
http://www.nabble.com/Checkbox-and-Dojo_foRM-validation%2C-please-help-if-anyone-know-how-tp19512338p19534303.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] zend dojo text area- how that work?

2008-09-17 Thread Themodem

The would depend on the problem.

If its a ZF Problem then i would expect so.

Id its a Dojo problem then we will have to wait for the next release of ZF
and hope the updated dojo that is released with it will be fixed.

If its a problem with Firefox then we will have to wait for a firefox update


vladimirn wrote:
 
 Thanks Themodem.
 Does anyone knows if Zend FW team will make some solution for this? 
 
 
 Themodem wrote:
 
 Howdy, it appears to be a bug with Firefox 3 and the dd tag
 
 
 http://dojotoolkit.org/forum/dijit-dijit-0-9/dijit-support/dijit-form-textarea-firefox3-enter-key-does-not-work
 http://dojotoolkit.org/forum/dijit-dijit-0-9/dijit-support/dijit-form-textarea-firefox3-enter-key-does-not-work
  
 
 
 vladimirn wrote:
 
 I need just a simple text area where you can type :
 First row in text area (i would like to press Enter here and to type in
 next row)
 Next row here[Enter]
 And so on..
 
 Well when i press Enter key within Zend Dojo textarea field, nothing
 happens, and you can type forever, no way to make a new row pressing
 Enter.. I cant find the way to have a simple textarea field.
 
 How to make this?
 
 Thanks,
 V
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/zend-dojo-text-area--how-that-work--tp19498776p19534360.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Zend_Form generated checkbox field

2008-09-17 Thread fozzyuw



Aldemar Bernal-2 wrote:
 
 Hi fozzyuw,
 
 That's because if the checkbox is not checked and no hidden has been added 
 to the form, once you retrieve checkbox value it will give you an error, 
 since when it is uncheck it just doesn't send that post value of the form. 
 To 'fix' this, you must create a hidden element with the same name before 
 the checkbox, that way, even if the checkbox is unchecked a value is
 passed 
 to the form.
 
 Greetings,
 
 Aldemar

Ah!  Thanks very much Aldemar.  That makes perfect sense now.

-- 
View this message in context: 
http://www.nabble.com/Zend_Form-generated-checkbox-field-tp16560973p19534466.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Question about Quickstart tutorial

2008-09-17 Thread springgrass

Hi Ralph,
Thank you very much for pointing  me to the alternate option.  It works
great.
I only have to change the autoincrement part to work with mysql.  

I do have a couple more questions:

1. Since I work in Plesk with very limited permission, I cannot change the
web server's document root and I cannot add folder in the same level as the
httpsdoc folder either, so for this tutorial I have my project setup as
following:

httpsdoc
 public
 library
 application
 views
 
I also change the .htaccess to route requests to /public/index.php.

It works for now, but as you points out in the tutorial, for security, I
would like to have this settings for real application:

private
 library
 application
 views
httpsdoc- public

Is the bootstrap.php is the place I need to change to accomodate this?  Is
there a way to couple the folder structure with the framework flexibly? 

2. Will the tutorial contain authentication parts? 

Thanks,
springgrass

ps:  The tutorial's code sample doesn't  render well in ie7.  Look great in
firefox.  Thank you  for a wonderful tutorial. 


Ralph Schindler-2 wrote:
 
 While I have not tried it, you should be able to load the sql files
 located
 in the scripts directory into mysql via the phpmyadmin in the plesk
 control
 panel.
 
 You will also have to alter the config script to be able to connect to
 this
 database, and it would look something like this:
 
 database.adapter = PDO_MYSQL
 database.params.dbname = your_db_name
 database.params.username = your_db_username
 database.params.password = your_db_password
 
 I will add some notes on this somewhere within the application by the end
 of
 the week.
 
 -ralph
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Question-about-Quickstart-tutorial-tp19286689p19534651.html
Sent from the Zend Framework mailing list archive at Nabble.com.



RE: [fw-general] Zend_form Action Redirect

2008-09-17 Thread Jeremy Brown
I may not be fully understanding your request, but it seems you could do 
something like the following in your action (the one the form's posting to):


if ( $this-getRequest()-isPost()  'valueOfChecboxWhenChecked' == 
$this-_request-getParam( 'nameOfCheckBox' ) )
{
$this-_redirect( 'controllerWantToGoTo/actionWantToGoTo' );
}
else
{
$data = $this-_request-getPost();
// or whatever else you want to do with the data
}




Jeremy Brown
Senior Web Developer
Spear One
972.661.6038
www.spearone.com


-Original Message-
From: Rohit83 [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 17, 2008 6:16 AM
To: fw-general@lists.zend.com
Subject: [fw-general] Zend_form Action Redirect


Hi All,
I have developed one form containing one text box and check box and submit
button
if i checked the check box and clicked on submit  i want to redirect it on
another action
and when the checkbox remains unchecked and by clicking on submit button the
value
of text box should be accessed within isPost() of same action
How can i do that?
thanks in advance for your valuable answer
Regards
Rohit
--
View this message in context: 
http://www.nabble.com/Zend_form-Action-Redirect-tp19529644p19529644.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Why Dojo of All???

2008-09-17 Thread Matthew Weier O'Phinney
-- mothmenace [EMAIL PROTECTED] wrote
(on Tuesday, 16 September 2008, 12:53 PM -0700):
 
 Just wanted to add another vote for jQuery, I started JS frameworks with
 Prototype, found jQuery a little hard to get my head around at first but now
 it's clearly the leading js-f. Not sure exactly how jQuery would be
 integrated with zf, it's more a case of writing some specific jQuery plugins
 I think, like giving js access to request / baseUrl.

There is already a proposal that's been accepted, and you can see the
code as it stands in the extras incubator.

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


Re: [fw-general] Why Dojo of All???

2008-09-17 Thread Matthew Weier O'Phinney
-- S. Alexandre M. Lemaire [EMAIL PROTECTED] wrote
(on Tuesday, 16 September 2008, 01:29 PM -0400):
 When we last used Dojo, it would load things 'on demand'; meaning that if
 you were to request a certain dojo.* package during usage, it would
 dynamically load the package into the mix.  The result was a LARGE number of
 IO calls solely for loading, this caused great startup delays, and very a
 high amount of overhead during routine instantiation (during the
 initialization process).
 
 Does Dojo still behave this way?  Does it offer any kind of 'roll your own'
 like Ext does with JSBuilder so that you can foresee inclusions and reduce
 during-operation IO overhead?

As somebody else noted, Dojo has a custom build tool that you can use to
compile, minify, and compress your JS requires into a single file. I've
used this extensively, and the performance is incredible. If you use
Dojo, this is the recommended practice when deploying your application.

 Not that I would ever convert back to Dojo from ExtJS (which by all means, I
 am a zealous fanatic of), but I am curious to read about Dojo's progress.
 
 How is CometD shaping up?

Incredibly well. :)

Stas Malyshev and I have done demos of it, creating a PHPUnit test
runner. The (Bayeux) protocol is mature and the implementation in Dojo
stellar.


 -Original Message-
 From: Matthew Weier O'Phinney [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, September 16, 2008 12:10 PM
 To: fw-general@lists.zend.com
 Subject: Re: [fw-general] Why Dojo of All???
 
 -- valugi [EMAIL PROTECTED] wrote
 (on Tuesday, 16 September 2008, 02:41 AM -0700):
  Since now I was also using jQuery and decided to give a try to Dojo since
  it's part of the ZF. 
  Doing simple things like an ajax request and fill some data into a table
 are
  incredible complex in Dojo. 
 
 I beg to differ here. dojo.data via Zend_Dojo_Data is two lines of code,
 and the view script to handle it is approximately 10 lines of primarily
 HTML using dojox.Grid.
 
  Also the vocabulary changes pretty much. 
 
 Which vocabulary? jquery vs Dojo? Of course -- they're different
 frameworks. There will always be a learning curve when you switch
 frameworks.
 
  I guess with all this complexity come a lot of other goodies... or
  maybe I am wrong.  But for now is experimenting time for me.
 
 Dojo can be as simple or as complex as you want. However, there were
 many reasons we chose to use Dojo; for more information, please see 
 
 http://framework.zend.com/announcements/2008-09-03-dojo
 
 for more details. Basically, when it comes down to all the points of
 integration we wanted to be able to offer, Dojo was the only toolkit
 that offerred benefits in all areas. The ability to have rapid modular
 development, yet still have scalable approaches for production
 environments, the breadth of offering in Dojo, the development process
 and community surrounding Dojo, the support and driving of web
 standards, etc. were simply unparalleled elsewhere.
 
 The fact of the matter is this is a done deal. But we're also saying
 that we realize that choice in JS toolkits is similar to choice in PHP
 frameworks -- and we are encouraging contributors to provide additional
 layers via the Extras repository. A jQuery component is already well
 underway, and checked in to the Extras incubator.
 
 Let's stop these threads, please.
 
 -- 
 Matthew Weier O'Phinney
 Software Architect   | [EMAIL PROTECTED]
 Zend Framework   | http://framework.zend.com/
 

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


Re: [fw-general] Checkbox and Dojo_foRM validation, please help if anyone know how

2008-09-17 Thread Matthew Weier O'Phinney
-- vladimirn [EMAIL PROTECTED] wrote
(on Wednesday, 17 September 2008, 08:11 AM -0700):
 
 Anyone? :(

Sorry, a lot of us are at ZendCon this week. ;)

 
 
 vladimirn wrote:
  
  Hello all,
  is anyone here able to help about form validation please?
  After pressing submit button expected behaviour is stopping form
  submission if checkbox is not checked.
  
  I have a bunch of stuffs in my form.
  So far, checkbox validation wont work. 
  $agreements-addElement ( 'CheckBox', 'ages', array ('required' = true,
  'label' = 'I\'m Over 18 years old') )
  
  Submit button:
  $footer-addElement ( 'SubmitButton', 'submit', array ('label' =
  'Submit!','style'='clear:both' ) );
  
  view script:
  ? $this-dojo()-javascriptCaptureStart() ?
  function validateForm() {
  var form = dijit.byId(signup);
  if (!form.validate()) {
  alert(Invalid form);
  return false;
  }
  return true;
  }
  ? $this-dojo()-javascriptCaptureEnd() ?
  ? $this-dojo()-onLoadCaptureStart() ?
  function () {
  dojo.connect(dijit.byId(signup), onSubmit, validateForm);
  }
  ? $this-dojo()-onLoadCaptureEnd() ?
  div class=signupForm
  
  ?= $this-form ?
  /div
  
 
 -- 
 View this message in context: 
 http://www.nabble.com/Checkbox-and-Dojo_foRM-validation%2C-please-help-if-anyone-know-how-tp19512338p19534303.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] Checkbox and Dojo_foRM validation, please help if anyone know how

2008-09-17 Thread vladimirn

Ah :)
I would like i am there :)
Have a nice time :)

Matthew Weier O'Phinney-3 wrote:
 
 -- vladimirn [EMAIL PROTECTED] wrote
 (on Wednesday, 17 September 2008, 08:11 AM -0700):
 
 Anyone? :(
 
 Sorry, a lot of us are at ZendCon this week. ;)
 
 
 
 vladimirn wrote:
  
  Hello all,
  is anyone here able to help about form validation please?
  After pressing submit button expected behaviour is stopping form
  submission if checkbox is not checked.
  
  I have a bunch of stuffs in my form.
  So far, checkbox validation wont work. 
  $agreements-addElement ( 'CheckBox', 'ages', array ('required' =
 true,
  'label' = 'I\'m Over 18 years old') )
  
  Submit button:
  $footer-addElement ( 'SubmitButton', 'submit', array ('label' =
  'Submit!','style'='clear:both' ) );
  
  view script:
  ? $this-dojo()-javascriptCaptureStart() ?
  function validateForm() {
  var form = dijit.byId(signup);
  if (!form.validate()) {
  alert(Invalid form);
  return false;
  }
  return true;
  }
  ? $this-dojo()-javascriptCaptureEnd() ?
  ? $this-dojo()-onLoadCaptureStart() ?
  function () {
  dojo.connect(dijit.byId(signup), onSubmit, validateForm);
  }
  ? $this-dojo()-onLoadCaptureEnd() ?
  div class=signupForm
  
  ?= $this-form ?
  /div
  
 
 -- 
 View this message in context:
 http://www.nabble.com/Checkbox-and-Dojo_foRM-validation%2C-please-help-if-anyone-know-how-tp19512338p19534303.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/Checkbox-and-Dojo_foRM-validation%2C-please-help-if-anyone-know-how-tp19512338p19536978.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] gpc magic quotes zend db

2008-09-17 Thread mothmenace

I was caught out by $row-save(); adding extra slashes to my db fields, due
to magic_quotes_gpc being on. I understand the correct solution is to turn
off gpc_quotes? (I chose:
php_flag magic_quotes_gpc Off
in an .htaccess)

However, magic_quotes = on is the default setting for php ini I believe.
Would it not be better for $row-save(); to automatically check the status
of magic_quotes and add quotes only where necessary?

Just a curious observation, I am only skimming the surface of ZF at this
stage.
-- 
View this message in context: 
http://www.nabble.com/gpc-magic-quotes---zend-db-tp19537109p19537109.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] gpc magic quotes zend db

2008-09-17 Thread Matthew Weier O'Phinney
-- mothmenace [EMAIL PROTECTED] wrote
(on Wednesday, 17 September 2008, 10:22 AM -0700):
 I was caught out by $row-save(); adding extra slashes to my db fields, due
 to magic_quotes_gpc being on. I understand the correct solution is to turn
 off gpc_quotes? (I chose:
 php_flag magic_quotes_gpc Off
 in an .htaccess)
 
 However, magic_quotes = on is the default setting for php ini I believe.

Um... no, it hasn't been for a *long* time now.

 Would it not be better for $row-save(); to automatically check the status
 of magic_quotes and add quotes only where necessary?

No. Use the recommended php.ini, which has magic quotes turned off, or
turn it off in .htaccess. This is a PHP issue, not a ZF one.

 Just a curious observation, I am only skimming the surface of ZF at this
 stage.

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


[fw-general] Zend Framework Dojo

2008-09-17 Thread 411161

I have a really simple question. Since Zend integrates Dojo, do I still have
to download Dojo and is there a good tutorial on how to use them together?
-- 
View this message in context: 
http://www.nabble.com/Zend-Framework---Dojo-tp19537547p19537547.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Server upgrade issue w/ public __construct

2008-09-17 Thread wadearnold

We are in the process of upgrading our web servers from 5.1.2 to 5.2.6 and we
are getting odd string errors on all of the zend framework. Here is an
example if you just go to the Zend loader directly: 

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or
T_FUNCTION or T_VAR or '}' in /home/wwwl/library/Zend/Loader.php on line 40

In trying to figure out what could have changed I have noticed that If I
change the constructor from

public function __construct() 

to 

function _construct() 

it no longer produces the error for that file. I have no idea why this is or
where to go next. Is there something new in PHP.ini or elsewhere that is
causing this issue?

Thanks! 
-- 
View this message in context: 
http://www.nabble.com/Server-upgrade-issue-w--public-__construct-tp19540238p19540238.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Why Dojo of All???

2008-09-17 Thread Bart McLeod

Hey Ben,

Exactly the type of gadgets I use /Intend to use. Is it right that the 
color picker doesn't work in IE 7?
I did not look at your code yet, for lack of time. I would like to use 
the accordeon container around collections of form elements. Is it 
available as a decorator in your setup? I mean so that one can say: put 
the start tags on this form element and the closing part on another?


Regards,

Bart

Benjamin Eberlei schreef:

Hey Bart,

they are up again. my webserver had an unexpected downtime yesterday. :-)

On Tuesday 16 September 2008 23:27:05 Bart McLeod wrote:
  

Hello Benjamin,

Thanks a lot for pointing this out - and Matthew, sorry for not stopping
the thread. It's just freaking hard to keep up with all the development
going on :-) .

I will take a look at it for sure. However, the links you provide are dead:

www.beberlei.de/jquery/demo/
www.beberlei.de/jquery/demo/formdemo.php

that is, right now they are offline. I would like to take a look at your
demo's before anything else!

Regards,

Bart McLeod

Benjamin Eberlei schreef:


Hello Bart,

i have already put together two proposal concerning jQuery support, one
for a generic helper that takes care of loading jQuery from CDN or local
path and takes care of a document ready (on load) execution stack.

http://framework.zend.com/wiki/display/ZFPROP/ZendX_JQuery_View_Helper_JQ
uery+-+Benjamin+Eberlei

then a jQuery UI proposal, which allows integration of some of the jQuery
UI widgets as part of view helpers and form elements into your ZF app.

http://framework.zend.com/wiki/display/ZFPROP/ZendX_JQuery+UI+Widgets+Ext
ension+-+Benjamin+Eberlei

personally i think, jQuery is frikking easy, so its probably good to just
write the code yourself, but some of the helpers i put together really
take some work from you and help you to build an application using jQuery
fast. they also group all the jQuery code together so that you don't have
little js snippets layign around your views everywhere.

you might want to have a look at:
www.beberlei.de/jquery/demo/
www.beberlei.de/jquery/demo/formdemo.php

which shows two examples of how the jQuery view helpers work.

any feedback is appreciated, although the components have reached final
status and are finished and checked into zend framework extras incubator
already:

http://framework.zend.com/svn/framework/extras/incubator/library/ZendX/

the documentation is also finished, if you want to get some hints at how
it all works.

greetings,
Benjamin

On Tuesday 16 September 2008 11:33:57 Bart McLeod wrote:
  

I have used jquery with Zend_Form, before Dojo was integrated and I
still use jquery. I would welcome integration of jquery too. However, I
must admit that I did not even try Dojo, because I found the interface
intimidating, the way it is described in the online reference guide. I
will try it though and then decide if I still want to use jquery. I do
not like the idea of having two different Ajax libraries in use in one
system and I do like the idea of out-of-the-box Ajax functionality. If I
read through jquery documentation, I understand it immediately. I think
it's idea of simplicity matches that of ZF, which cannot be said of the
list of functions available in Dojo. But there's no use crying over
spilled water, if any. Wil is right of course, if we like jquery that
much, let's put together a decent proposal.

Bart McLeod

Wil Sinclair schreef:


There are lots of reasons that Zend chose to partner with the Dojo
Foundation. But we realize that some developers prefer other JavaScript
toolkits, and that's why we'd never force our users to work with any
particular toolkit. Zend has chosen Dojo to contribute out-of-the-box
AJAX functionality to Zend, while at the same time making it clear that
we will welcome contributions from the community to support other
toolkits. In fact, there are a couple of proposals for JQuery
integration that are pretty far along now:

http://framework.zend.com/wiki/display/ZFPROP/ZendX_JQuery_View_Helper_
J Query+-+Benjamin+Eberlei
http://framework.zend.com/wiki/display/ZFPROP/ZendX_JQuery+UI+Widgets+E
x tension+-+Benjamin+Eberlei

If there is a JS Toolkit that you prefer to Dojo, I wholeheartedly and
sincerely recommend that you look in to creating your own proposal.

,Wil

  

-Original Message-
From: zuhair.naqvi [mailto:[EMAIL PROTECTED]
Sent: Monday, September 15, 2008 8:46 PM
To: fw-general@lists.zend.com
Subject: [fw-general] Why Dojo of All???


Why dojo of all? Whats wrong with an MIT license? To be frank Dojo is
the
shittest JS framework i've ever worked with. Both its code and design
philosophy are no match for competition like jQuery or Prototype.

I've moved from Symfony to ZF and prefer ZF even over ROR and was very
excited to hear about a client library integration but I am shocked to
see
Dojo instead of others which are miles ahead of it.

Please explain...
--
View this message in context:



Re: [fw-general] Why Dojo of All???

2008-09-17 Thread Bart McLeod
I addition: The color picker looks the same in IE 7, Chrome, Firefox. I 
suppose I just don't get that one...

Bart

Bart McLeod schreef:

Hey Ben,

Exactly the type of gadgets I use /Intend to use. Is it right that the 
color picker doesn't work in IE 7?
I did not look at your code yet, for lack of time. I would like to use 
the accordeon container around collections of form elements. Is it 
available as a decorator in your setup? I mean so that one can say: 
put the start tags on this form element and the closing part on another?


Regards,

Bart

Benjamin Eberlei schreef:

Hey Bart,

they are up again. my webserver had an unexpected downtime yesterday. :-)

On Tuesday 16 September 2008 23:27:05 Bart McLeod wrote:
  

Hello Benjamin,

Thanks a lot for pointing this out - and Matthew, sorry for not stopping
the thread. It's just freaking hard to keep up with all the development
going on :-) .

I will take a look at it for sure. However, the links you provide are dead:

www.beberlei.de/jquery/demo/
www.beberlei.de/jquery/demo/formdemo.php

that is, right now they are offline. I would like to take a look at your
demo's before anything else!

Regards,

Bart McLeod

Benjamin Eberlei schreef:


Hello Bart,

i have already put together two proposal concerning jQuery support, one
for a generic helper that takes care of loading jQuery from CDN or local
path and takes care of a document ready (on load) execution stack.

http://framework.zend.com/wiki/display/ZFPROP/ZendX_JQuery_View_Helper_JQ
uery+-+Benjamin+Eberlei

then a jQuery UI proposal, which allows integration of some of the jQuery
UI widgets as part of view helpers and form elements into your ZF app.

http://framework.zend.com/wiki/display/ZFPROP/ZendX_JQuery+UI+Widgets+Ext
ension+-+Benjamin+Eberlei

personally i think, jQuery is frikking easy, so its probably good to just
write the code yourself, but some of the helpers i put together really
take some work from you and help you to build an application using jQuery
fast. they also group all the jQuery code together so that you don't have
little js snippets layign around your views everywhere.

you might want to have a look at:
www.beberlei.de/jquery/demo/
www.beberlei.de/jquery/demo/formdemo.php

which shows two examples of how the jQuery view helpers work.

any feedback is appreciated, although the components have reached final
status and are finished and checked into zend framework extras incubator
already:

http://framework.zend.com/svn/framework/extras/incubator/library/ZendX/

the documentation is also finished, if you want to get some hints at how
it all works.

greetings,
Benjamin

On Tuesday 16 September 2008 11:33:57 Bart McLeod wrote:
  

I have used jquery with Zend_Form, before Dojo was integrated and I
still use jquery. I would welcome integration of jquery too. However, I
must admit that I did not even try Dojo, because I found the interface
intimidating, the way it is described in the online reference guide. I
will try it though and then decide if I still want to use jquery. I do
not like the idea of having two different Ajax libraries in use in one
system and I do like the idea of out-of-the-box Ajax functionality. If I
read through jquery documentation, I understand it immediately. I think
it's idea of simplicity matches that of ZF, which cannot be said of the
list of functions available in Dojo. But there's no use crying over
spilled water, if any. Wil is right of course, if we like jquery that
much, let's put together a decent proposal.

Bart McLeod

Wil Sinclair schreef:


There are lots of reasons that Zend chose to partner with the Dojo
Foundation. But we realize that some developers prefer other JavaScript
toolkits, and that's why we'd never force our users to work with any
particular toolkit. Zend has chosen Dojo to contribute out-of-the-box
AJAX functionality to Zend, while at the same time making it clear that
we will welcome contributions from the community to support other
toolkits. In fact, there are a couple of proposals for JQuery
integration that are pretty far along now:

http://framework.zend.com/wiki/display/ZFPROP/ZendX_JQuery_View_Helper_
J Query+-+Benjamin+Eberlei
http://framework.zend.com/wiki/display/ZFPROP/ZendX_JQuery+UI+Widgets+E
x tension+-+Benjamin+Eberlei

If there is a JS Toolkit that you prefer to Dojo, I wholeheartedly and
sincerely recommend that you look in to creating your own proposal.

,Wil

  

-Original Message-
From: zuhair.naqvi [mailto:[EMAIL PROTECTED]
Sent: Monday, September 15, 2008 8:46 PM
To: fw-general@lists.zend.com
Subject: [fw-general] Why Dojo of All???


Why dojo of all? Whats wrong with an MIT license? To be frank Dojo is
the
shittest JS framework i've ever worked with. Both its code and design
philosophy are no match for competition like jQuery or Prototype.

I've moved from Symfony to ZF and prefer ZF even over ROR and was very
excited to hear about a client library integration but I am shocked to
see

Re: [fw-general] Zend Framework Dojo

2008-09-17 Thread Matthew Weier O'Phinney
-- 411161 [EMAIL PROTECTED] wrote
(on Wednesday, 17 September 2008, 11:05 AM -0700):
 I have a really simple question. Since Zend integrates Dojo, do I still have
 to download Dojo and is there a good tutorial on how to use them together?

If you download the minimal ZF package, Dojo is not included -- but by
default, Zend_Dojo will use a content delivery network, and is still
completely usable.

If you download the full ZF package, a source build of Dojo is installed
in externals/dojo/. Simply symlink or copy this directory into your
document root somewhere, and you can use it.

As for tutorials on using Zend_Dojo, I suggest you checkout my webinar,
available on:

http://www.zend.com/webinars

as well as my blog, where I've been blogging about ZF+Dojo periodically:

http://weierophinney.net/matthew/

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


Re: [fw-general] Server upgrade issue w/ public __construct

2008-09-17 Thread Matthew Weier O'Phinney
-- wadearnold [EMAIL PROTECTED] wrote
(on Wednesday, 17 September 2008, 01:15 PM -0700):
 We are in the process of upgrading our web servers from 5.1.2 to 5.2.6 and we
 are getting odd string errors on all of the zend framework. Here is an
 example if you just go to the Zend loader directly: 
 
 Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or
 T_FUNCTION or T_VAR or '}' in /home/wwwl/library/Zend/Loader.php on line 40
 
 In trying to figure out what could have changed I have noticed that If I
 change the constructor from
 
 public function __construct() 
 
 to 
 
 function _construct() 
 
 it no longer produces the error for that file. I have no idea why this is or
 where to go next. Is there something new in PHP.ini or elsewhere that is
 causing this issue?

This sounds to me like your server is not using the PHP you think it is
-- these errors smell of PHP 4 to me. Run a phpinfo() to verify.

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


Re: [fw-general] Server upgrade issue w/ public __construct

2008-09-17 Thread wadearnold



Tobias Gies wrote:
 
 Hi Wade,
 
 interesting issue indeed. I saw this kind of parse error the last time
 when
 I tried to run a PHP 5 script unter PHP 4. Please, double check that you
 are
 indeed using a version of PHP 5 and not any ancient PHP 4 version.
 
 Best regards,
 Tobias
 


Wow our deployment script had an old skelton htaccess file which was
allowing it to still run PHP4 in the sub directories. PHPInfo on the
document root said 5.2.6. Thanks for the sanity check all! 

Wade

-- 
View this message in context: 
http://www.nabble.com/Server-upgrade-issue-w--public-__construct-tp19540238p19541234.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Best Practices :: Admin Module

2008-09-17 Thread Ghrae

I've seen several posts where people have talked about how they have their
framework laid out.  I see different locations for Admin functions...
sometimes in the modules they are administering and sometimes in their own
admin module.

Is there an article or best practice about this topic?  Good and bad points? 
Suggestions on how it should work?  What functionality is considered admin
and what functionality is just limited to those with login / permission
access?

This is my first stint into the framework and I would prefer to not develop
any bad habits.
-- 
View this message in context: 
http://www.nabble.com/Best-Practices-%3A%3A-Admin-Module-tp19543405p19543405.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Adding JS to individual Radios in a group

2008-09-17 Thread nolner

Hi,

I have a group of 2 radio buttons - I simply want to reveal a set of
different fields dependent on which radio is clicked. I can add an onClick
handler as below - but it appears on both radio buttons - how can I add
different code to each?

$payment = new Zend_Form_Element_Radio('cust_paym_type', array(
   'multiOptions' = array(
   'AC' = 'Account Number ',
   'CC' = 'Credit Card'),
   'onClick' = show_cc()
));

thx
-- 
View this message in context: 
http://www.nabble.com/Adding-JS-to-individual-Radios-in-a-group-tp19544563p19544563.html
Sent from the Zend Framework mailing list archive at Nabble.com.