Re: [fw-general] disable output buffering for file transfer

2008-11-12 Thread Thomas Weidner
Zend_File_Transfer does not use output buffering. Maybe you're having a webserver config problem because the limitations for uploading files are normally by the client or webserver. The uploaded file itself is only available after the transfer has been completed. Zend_File_Transfer can also ha

[fw-general] disable output buffering for file transfer

2008-11-12 Thread Kononov Ruslan
By default, ZF included data buffering. What better way to turn off buffering for a specific action to transfer large files? -- View this message in context: http://www.nabble.com/disable-output-buffering-for-file-transfer-tp20475737p20475737.html Sent from the Zend Framework mailing list archiv

[fw-general] Integration of spaw editor with zend framework

2008-11-12 Thread amar4kintu
Is there anyone who has integrated spaw editor in zend framework? I am trying to integrate spaw editor in zend framework. I am using register autoload to load classes automatically. Zend_Loader::registerAutoload(); Now the problem I am getting is when I integrate spaw editor using following co

Re: [fw-general] Re: Bootstrap Action HelperBroker stops execution on production server

2008-11-12 Thread kirpit
Development: -> PHP version 5.2.6 SPL present IteratorAggregate present Production 1: (which gives "IteratorAggregate not found error" in error log) -> PHP version 5.2.6 SPL present IteratorAggregate present Production 2: (which stops execution on action helperBroker::addP

Re: [fw-general] Re: Bootstrap Action HelperBroker stops execution on production server

2008-11-12 Thread Matthew Ratzloff
Run this on both your development machine and the production machine that's having issues: #!/usr/bin/php > Hi Till, > > SPL is installed and enabled as default as Matthew mentioned. And all the > extentions are fine. You may check by yourself; > http://sergistan.com/server.php > > 13 Kasım 2008

Re: [fw-general] Re: Bootstrap Action HelperBroker stops execution on production server

2008-11-12 Thread kirpit
Hi Till, SPL is installed and enabled as default as Matthew mentioned. And all the extentions are fine. You may check by yourself; http://sergistan.com/server.php 13 Kasım 2008 Perşembe 01:20 tarihinde till <[EMAIL PROTECTED]> yazdı: > 2008/11/12 kirpit <[EMAIL PROTECTED]>: > > Hi Matthew, > > >

Re: [fw-general] Re: Bootstrap Action HelperBroker stops execution on production server

2008-11-12 Thread till
2008/11/12 kirpit <[EMAIL PROTECTED]>: > Hi Matthew, > > Thank you for the reply.I have tried on two different shared hosts. Both > stucks on action helper line in bootstrap. Both doesn't look like > having Gentoo whatever, both is running PHP 5.2+ and both are SPL enabled. > I'm sorry to say that

Re: [fw-general] Bootstrap Action HelperBroker stops execution on production server

2008-11-12 Thread till
On Wed, Nov 12, 2008 at 8:31 PM, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote: > (...) > BTW, Gentoo notoriously disables SPL in their defaults builds -- you > have to add it as an emerge option. Just for the record - FreeBSD does that as well, you have to build spl via the meta port lang/php

[fw-general] Re: Bootstrap Action HelperBroker stops execution on production server

2008-11-12 Thread kirpit
Hi Matthew, Thank you for the reply.I have tried on two different shared hosts. Both stucks on action helper line in bootstrap. Both doesn't look like having Gentoo whatever, both is running PHP 5.2+ and both are SPL enabled. I'm sorry to say that but i'm kind of pissed off with ZF here... I don't

RE: [fw-general] Zend PDT 2.0 all-in-one available (BETA)

2008-11-12 Thread Robert Castley
After one week of using this release I do not consider it stable enough for production use. I have reverted back to 1.0.3 now. Some lovely new features in there but productivity is down whilst you try to figure out how todo/configure things. Looking forward to the next alpha/beta release. You c

RE: [fw-general] Problem with Zend_Locale, UTF-8, setLocale on Wi ndows

2008-11-12 Thread Robert Castley
Hi, Is it better that I switch to 1.7PR then? Cheers, - Robert -Original Message- From: Thomas Weidner [mailto:[EMAIL PROTECTED] Sent: 12 November 2008 17:45 To: fw-general@lists.zend.com Subject: Re: [fw-general] Problem with Zend_Locale, UTF-8, setLocale on Windows This was one of

Re: [fw-general] $form->populate and FilteringSelect using Dojo datastore doesn't work, issue tracker won't let me submit bug, nowhere else to turn

2008-11-12 Thread Bart McLeod
Didn't get to it today, but didn't forget about it either. I am looking for the simplest possible implementation of your use case. Bart Cameron schreef: So you don't have to recreate it, the Autocomplete Helper is as follows. It's a cut and paste of the work some other wonderful gentleman did

Re: [fw-general] Integrating FCKEditor with Zend_Form

2008-11-12 Thread Bart McLeod
Hi James, Code below just works, no need for events to attach. Bart       /*text field*/         $fck = new SpaceCMS_Form_Element_Fck('text');         $fck->setLabel('text');         $this->addElement($fck); /*class:*/ require_once(WEBROOT.'/fckeditor/fckeditor.php'); class SpaceCMS_Form

Re: [fw-general] Session DB Save Handler Lifetime Override

2008-11-12 Thread Cory D. Wiles
I am able to change the session lifetime using session_gc*, but what desired behavior is: 1. user logins without clicking the 'remember me' checkbox then their session TTL should be the default 1440 2. if the user clicks the 'remember me' checkbox then they session TTL should be over

Re: [fw-general] Bootstrap Action HelperBroker stops execution on production server

2008-11-12 Thread Matthew Weier O'Phinney
-- kirpit <[EMAIL PROTECTED]> wrote (on Wednesday, 12 November 2008, 07:05 PM +0200): > I'm trying to install my first ZF project to many production server and it > looks like ZF is only for development enjoyment. No one had any idea about > following issue; > http://www.nabble.com/ > Interface-'It

Re: [fw-general] Problem with Zend_Locale, UTF-8, setLocale on Windows

2008-11-12 Thread Thomas Weidner
This was one of the reasons why we had to change the implementation. Browser locales are not allowed to have environment attached especially then when you have multiple servers with probably different environment settings. But as it's a BC break it was not allowed for 1.6... 1.7 (trunk) behaves

RE: [fw-general] Applying ZF coding standards to a project

2008-11-12 Thread Wil Sinclair
Are you trying to do more than one file at a time? Studio shouldn't have a problem with that; I've done it myself on a fairly long script. The way I typically do this is wait until I have to work on the file, reformat it, *commit changes* so that programmatic changes aren't lost in the noise, an

Re: [fw-general] Integrating FCKEditor with Zend_Form

2008-11-12 Thread james_fortune
Thank you for the reply although I havent got time to complete this to day im sure this approach will work. For anyone reading this who wants help creating the onSubmit event I have found this article which clearly explains how this can be achieved. http://codeutopia.net/blog/2008/04/04/client-s

[fw-general] Integrating FCKEditor with Zend_Form

2008-11-12 Thread Julian102
Hello, I am building my first application in zend framework. My aim is to build a cms. Each page will have a text block that can be edited via fck editor. I cannot figure out how to setup fckeditor in a zend form and save data from it back to the database. Any help would be greatly appreciated.

[fw-general] Bootstrap Action HelperBroker stops execution on production server

2008-11-12 Thread kirpit
Hi, I'm trying to install my first ZF project to many production server and it looks like ZF is only for development enjoyment. No one had any idea about following issue; http://www.nabble.com/Interface-'IteratorAggregate'-not-found-error-in-production-server-td20431706.html So i'm trying to inst

Re: [fw-general] Zend_File_Transfer - is this a BUG?

2008-11-12 Thread Thomas Weidner
No, it's not really a bug. :-) upload_tmp_dir is used by php when it get the file from your webserver. When you call "receive" on the file adapter, the file is already there, in this temporary location. Only, when you forget to set a destination, the file adapter tries to detect a directory w

Re: [fw-general] Integrating FCKEditor with Zend_Form

2008-11-12 Thread Matthew Weier O'Phinney
-- james_fortune <[EMAIL PROTECTED]> wrote (on Wednesday, 12 November 2008, 08:43 AM -0800): > I am currently creating a cms. A text area on each page of the site will be > editable via fck editor however I am not sure how to put fck editor into a > form and save the content back to the database. >

[fw-general] Integrating FCKEditor with Zend_Form

2008-11-12 Thread james_fortune
Hello, I am currently creating a cms. A text area on each page of the site will be editable via fck editor however I am not sure how to put fck editor into a form and save the content back to the database. I have been trying to do this for a while now and am getting nowhere so anyhelp would be g

RE: [fw-general] Problem with Zend_Locale, UTF-8, setLocale on Wi ndows

2008-11-12 Thread Robert Castley
Hi, I am using exactly the same ZF application code on Linux & Windows. If I run the following code (taken from the manual) on Windows: $locale = new Zend_Locale(); // Return all default locales $found = $locale->getDefault(); print_r($found); // Return only browser locales $found2 = $locale->g

Re: [fw-general] Problem with Zend_Locale, UTF-8, setLocale on Windows

2008-11-12 Thread Thomas Weidner
Eigher you use browser settings which means that you stick on HTTP_ACCEPT_LANGUAGE or you stick with environment, which means LC_ALL. The browser uses the locale 'browser' within Zend_Locale. Also Zend_Locale has no getList() method. As you mentioned "Registry Locale"... do you mean setting the

[fw-general] Problem with Zend_Locale, UTF-8, setLocale on Windows

2008-11-12 Thread Robert Castley
Hi, It seems that in 1.6.2 Zend_Locale doesn't handle well under Windows. Zend_Locale is using $language = setlocale(LC_ALL, 0); in the getEnvironment function Using the same browser to access two systems I get: On my Windows ZF system this will return: Array ( [0] => LC_COLLATE

Re: [fw-general] Zend_Form_Element_File - is this a BUG or expected?

2008-11-12 Thread Edward Haber
It seems crystal clear to me that a method called getFileName should either return a filename or a null/false if there is no file. Otherwise the name of the method is a misnomer. When no file is present, getFileName returns the destination path (which is already accessible with getDestinati

[fw-general] Problem with Zend_Locale, UTF-8, setLocale on Windows

2008-11-12 Thread Robert Castley
Hi, It seems that in 1.6.2 Zend_Locale doesn't handle well under Windows. Zend_Locale is using $language = setlocale(LC_ALL, 0); in the getEnvironment function On my Windows system this will return: This email has

Re: [fw-general] Zend_Form_Element_File - is this a BUG or expected?

2008-11-12 Thread Thomas Weidner
No, your assumption is wrong. :-) When you say "Ignore when there is no file uploaded", why should receive then say "Failure, there is no file uploaded" ? The return value of receive does only return true when something has not worked. By saying "ignore it", you said "even if I know that it doe

Re: [fw-general] Zend_Form_Element_File - is this a BUG or expected?

2008-11-12 Thread Edward Haber
Thanks for your help on this. It is much appreciated. I think it's pretty reasonable to think the construct "if ($this- >my_file->receive())" should return true only if the file is actually *received.* What else would a person conceivably be receiving? Whether or not the upload is required o

[fw-general] passing values from URL to zend dojo

2008-11-12 Thread vladimirn
Hey all, I have a link http://www.example.com/banners where i am displaying some tabelar stats about number of banners. In movie category i have 3 banners. I would like to click on this number(3) and that zend_dojo nicely do the job :) Basicly i would like to display those 3 banners from the movie

Re: [fw-general] Zend_File_Transfer - is this a BUG?

2008-11-12 Thread Thomas Weidner
Why don't you simply set a destination like shown in the manual ? ;-) ->setDestination('my/destination/path'); Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: "Vladas Diržys" <[EMAIL PROTECTED]> To: "fw-general" Sent:

Re: [fw-general] Zend_Form_Element_File - getValue() in 1.7

2008-11-12 Thread Thomas Weidner
No you havn't. ;-)) You said that you are working with trunk. The manual you can download near 1.7 preview, is the manual for the 1.7 preview release. It is related to this download... you have mentioned this yourself. ;-) They differ a few weeks. Based on the userfeedback we have done chang

[fw-general] Zend_File_Transfer - is this a BUG?

2008-11-12 Thread Vladas Diržys
Hello, I have a problem on a unix server using Zend_File_Transfer (Zend_Form_Element_File). I try to upload a file and i get an exception "The given destination is no directory or does not exist". In general the reason for this error is that I'm using different 'upload_tmp_dir', but the _getTmpD

Re: [fw-general] __call

2008-11-12 Thread Matthew Weier O'Phinney
-- O'BRIEN, Steven X <[EMAIL PROTECTED]> wrote (on Wednesday, 12 November 2008, 10:14 AM -): > The use of __call on php classes feels like it should be bad practise > to me. Am I missing something? > > A few thoughts... > > #1 won't __Call be called every time any method is called on the > o

Re: [fw-general] __call

2008-11-12 Thread Karol Grecki
It's only bad if you abuse it. If used properly it allows you to create more user friendly interface and avoid bloat. The implementation may be harder to understand so it's sometimes a trade off, but many people appreciate features that allow to write less verbose and more dynamic code. Karol

Re: [fw-general] $form->populate and FilteringSelect using Dojo datastore doesn't work, issue tracker won't let me submit bug, nowhere else to turn

2008-11-12 Thread Matthew Weier O'Phinney
-- Cameron <[EMAIL PROTECTED]> wrote (on Wednesday, 12 November 2008, 06:51 PM +0900): > So you don't have to recreate it, the Autocomplete Helper is as follows. It's > a > cut and paste of the work some other wonderful gentleman did, and I turned off > the validator because i was lazy. BTW, the

Re: [fw-general] Applying ZF coding standards to a project

2008-11-12 Thread Matthew Weier O'Phinney
-- Jurriën Stutterheim <[EMAIL PROTECTED]> wrote (on Wednesday, 12 November 2008, 07:10 AM +0100): > I'm currently working on getting some code somebody else wrote to comply > with the ZF coding standards. What would be the best way to convert an > entire project to the ZF coding standards? ZSfE

[fw-general] __call

2008-11-12 Thread O'BRIEN, Steven X
Guys, The use of __call on php classes feels like it should be bad practise to me. Am I missing something? A few thoughts... #1 won't __Call be called every time any method is called on the object? This feels inefficient. #2 It hides functionality. To remember what extra methods exist and

Re: [fw-general] $form->populate and FilteringSelect using Dojo datastore doesn't work, issue tracker won't let me submit bug, nowhere else to turn

2008-11-12 Thread Cameron
So you don't have to recreate it, the Autocomplete Helper is as follows. It's a cut and paste of the work some other wonderful gentleman did, and I turned off the validator because i was lazy. class Zend_Controller_Action_Helper_AutoCompleteDojoNew extends Zend_Controller_Action_Helper_AutoComple

Re: [fw-general] Session DB Save Handler Lifetime Override

2008-11-12 Thread till
On Tue, Nov 11, 2008 at 6:19 PM, kwylez <[EMAIL PROTECTED]> wrote: > > In a global config file I have setup my zend session options: > > > > >/var/www/zend_sessions/ > >2592000 > > > > > > > /** > * Set the Zend session options (global config) > */ >

Re: [fw-general] Zend_Form_Element_File - getValue() in 1.7

2008-11-12 Thread Simon Corless
thomasW wrote: > > You should read the manual from 1.7 when you are using 1.7 and not the > online manual which always refers to the latest official release which is > actually 1.6.2. > I thought I was! I have downloaded the docs from the website next to the 1.7 release, it differs substanti