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

2008-11-13 Thread Karol Grecki
If you mean file downloads you may just call ob_end_clean() and then readfile() or just start printing contents dynamically. Karol Kononov Ruslan wrote: By default, ZF included data buffering. What better way to turn off buffering for a specific action to transfer large files? -- View

[fw-general] Zend_Validate or Zend_Validate_EmailAddress BUG

2008-11-13 Thread Vladas Diržys
Hello, I try to validate email address with wrong hostname([EMAIL PROTECTED]) and the validator returns following errors: array(3) { [emailAddressInvalidHostname] = string(63) 'www.ww' is not a valid hostname for email address '[EMAIL PROTECTED]' [0] = string(77) 'www.ww' appears to be a DNS

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

2008-11-13 Thread Bart McLeod
Hi Amar, Add: require_once '/editor/class/config.class.php'; And you'll be just fine :-) Bart amar4kintu schreef: 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

Re: [fw-general] Zend_Validate or Zend_Validate_EmailAddress BUG

2008-11-13 Thread Thomas Weidner
I would say both. :-))) Please fill out an issue in jira so we can solve this bug. framework.zend.com/issues Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: Vladas Diržys [EMAIL PROTECTED] To: fw-general@lists.zend.com

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

2008-11-13 Thread Mauricio Cuenca
I downloaded this file: http://downloads.zend.com/pdt/all-in-one/pdt-2.0.0.S20081102_debugger-5.2.1 4.v20080602-all-in-one-win32.zip And also getting Europa, is there anything wrong with the package? rcastley wrote: Have you downloaded the correct file? Make sure you choose one of the

Re: [fw-general] Integrating FCKEditor with Zend_Form

2008-11-13 Thread james_fortune
Thanks Bart that works perfectly Bart McLeod wrote: 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:*/ ?php

Re: [fw-general] Zend_Validate

2008-11-13 Thread nwhiting
nwhiting wrote: I have a question about this. Does Zend_Validate work on a per element basis and is not parsed when you call $this-form-isValid($_POST); ?? When I add custom validations are they going to be parsed and produce error messages to the errorMessage string? Such

[fw-general] Fatal Error: Out of memory

2008-11-13 Thread Behzad
*Hi List, I've uploaded a ZF-driven website to www.2tarafeh.com , But I'm facing with some fatal errors, for instance: *Fatal error: Out of memory (allocated 3670016) (tried to allocate 19456 bytes) in /home/admin/library/Zend/Form.php on line 1097 Fatal error: Out of memory (allocated 4718592)

Re: [fw-general] Fatal Error: Out of memory

2008-11-13 Thread Thomas Weidner
Do you really think that an complete application should run with 4MB RAM ??? (allocated 4718592 byte = 4.4MB) Most procedural or plain php sites need more. ;-) Default setting from PHP itself is actually about 16 or 32 MB. But how much memory ZF uses depends on your own needs. I would go with

Re: [fw-general] Fatal Error: Out of memory

2008-11-13 Thread Behzad
I have no idea why only 4 MB is allocated ! In the php.ini settings, I've set 32 MB for memory_limit directive. Take a look at my php-settings here: http://www.2tarafeh.com/phpinfo.php On Thu, Nov 13, 2008 at 6:25 PM, Thomas Weidner [EMAIL PROTECTED]wrote: Do you really think that an complete

[fw-general] Using Zend_Amf with DOMDocument

2008-11-13 Thread Jurriën Stutterheim
Hi all, While setting up an AMF server, I ran into a small problem. I'm trying to send a DOMDocument to my Flex application. The connection works... when I try to send something simpler, like a string or array, it arrives as expected. However, when I try to send a DOMDocument I just get

RE: [fw-general] Fatal Error: Out of memory

2008-11-13 Thread Marco Kaiser
Hi Behzad, Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies with the ionCube PHP Loader v3.1.31, Copyright (c) 2002-2007, by ionCube Ltd., and with Zend Extension Manager v1.2.0, Copyright (c) 2003-2007, by Zend Technologies with Zend Optimizer v3.2.8, Copyright

[fw-general] Zend_Form and square brackets in elements' name

2008-11-13 Thread Julien Huang
Hello, I'm currently using Zend_Form, and can't use square brackets in my form elements' name. I've looked at the code, and it seems that the method setName (by filterName) in Zend_Form_Element removes the square brackets, why ? Moreover, there's an option in filterName to allow square brackets.

Re: [fw-general] Zend_Form and square brackets in elements' name

2008-11-13 Thread Matthew Weier O'Phinney
-- Julien Huang [EMAIL PROTECTED] wrote (on Thursday, 13 November 2008, 04:38 PM +0100): Hello, I'm currently using Zend_Form, and can't use square brackets in my form elements' name. I've looked at the code, and it seems that the method setName (by filterName) in Zend_Form_Element removes

[fw-general] PHP bug with chaining function calls that generate exceptions on x86_64

2008-11-13 Thread Colin Guthrie
Hi, Just wanted to share this bug with you guys as I discovered it while using Zend Framework code. http://bugs.php.net/bug.php?id=46568 It only affects x86_64, but it's fairly easy to trigger this in Zend Framework as it makes quite extensive use of exceptions, often in a chained function

Re: [fw-general] Fatal Error: Out of memory

2008-11-13 Thread Behzad
Hi Marco! I'll try that and see the results. Thanks for the advice :-) On Thu, Nov 13, 2008 at 6:38 PM, Marco Kaiser [EMAIL PROTECTED]wrote: Hi Behzad, Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies with the ionCube PHP Loader v3.1.31, Copyright (c) 2002-2007, by

[fw-general] Broken ViewRenderer inflections for :controller with custom dispatcher.

2008-11-13 Thread Colin Guthrie
Hi, I'm just trying to integrate some view scripts and I am running into problems when creating the folder structure. I have a custom dispatcher which changes the class structure of the controllers to better suit my file layout and autoloading infrastructure. In the ViewRenderer.php file

Re: [fw-general] Fatal Error: Out of memory

2008-11-13 Thread A.J. Brown
Now I'm curious as to how much peak memory the default Hello World install consumes. Does someone know, or want to benchmark it? I'll write a benchmark when I get home if I don't see a reply before then. -- A.J. Brown -- Original Message -- It's actually 128MB at least in recent versions

Re: [fw-general] Fatal Error: Out of memory

2008-11-13 Thread Jason Webster
If I remember correctly, a basic single action dispatch takes approximately 4 to 5MB. Mind you, this includes a couple of Zend_Config objects and some other goodies... A.J. Brown wrote: Now I'm curious as to how much peak memory the default Hello World install consumes. Does someone know,

[fw-general] Re: Broken ViewRenderer inflections for :controller with custom dispatcher.

2008-11-13 Thread Colin Guthrie
Colin Guthrie wrote: I could work around the problem with a custome inflector... Actually looking again, it's not possible to work around things in this way, so I really do need to fix the bug properly. I've come up with the attached patch that should work. Is this the right approach? Col

[fw-general] ViewRenderer Script Path BUG

2008-11-13 Thread Arthur M. Kang
The ViewRenderer currently checks the path stack to see if a path exists prior to adding it. This is causing a small bug for me. If module*1*-controller1-action1 forwards to module*2*-controller1-action1, which then forwards back to module*1*-controller1-action1, the view path stack is

Re: [fw-general] Fatal Error: Out of memory

2008-11-13 Thread Karol Grecki
It's easy to check http://www.php.net/manual/en/function.memory-get-peak-usage.php http://www.php.net/manual/en/function.memory-get-peak-usage.php Stick it at the end of index.php and you should get memory usage for every page Karol A.J. Brown-3 wrote: Now I'm curious as to how much peak

Re: [fw-general] Zend_Validate

2008-11-13 Thread Goran Juric
nwhiting wrote: shouldn't this return any error messages set within those validators? As even Zend_Validate_EmailAddress does not return any error, and my custom validators are setup just as defined in the documentation Yes, they should display error messages. Have you tried checking

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

2008-11-13 Thread Goran Juric
kwylez wrote: Everything works great at this point. I can start my sessions (user login) and see the information in the database. My question is how do I get the session lifetime to change from the default, 1440 seconds, to the remember_me_seconds, 2592000.

Re: [fw-general] Re: Broken ViewRenderer inflections for :controller with custom dispatcher.

2008-11-13 Thread Matthew Weier O'Phinney
-- Colin Guthrie [EMAIL PROTECTED] wrote (on Thursday, 13 November 2008, 05:52 PM +): Colin Guthrie wrote: I could work around the problem with a custome inflector... Actually looking again, it's not possible to work around things in this way, so I really do need to fix the bug

Re: [fw-general] ActionStack and _forward()

2008-11-13 Thread Goran Juric
drj201 wrote: Hi all, Ive been following the method outlined here to add Controller specific navigation menus to my layout view: http://teethgrinder.co.uk/perm.php?a=Zend-Framework-Menus-Navigation Firstly, what is your view on this approach? Adding an actionStack call to every

[fw-general] Re: [fw-mvc] ViewRenderer Script Path BUG

2008-11-13 Thread Hector Virgen
I think it would make more sense to remove old paths from the stack rather than push the stack with duplicates. Maybe it would be better if each module had its own view script stack? That way they wouldn't interfere with each other at all. -Hector On Thu, Nov 13, 2008 at 10:11 AM, Arthur M.

[fw-general] Producing Google Base atom feeds

2008-11-13 Thread Alex Kops
Hi, I'm currently trying to figure out the best way to produce a Google Base Atom feed (which should not be sent to Google directly but delivered by our platform). * My first guess was to use the Zend_Gdata_Gbase component. But as I figured out, this component is currently meant to read feeds and

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

2008-11-13 Thread kwylez
Goran You are the man! I had gotten close today, but your post was the insight that I needed. That worked PERFECTLY. Goran Juric wrote: kwylez wrote: Everything works great at this point. I can start my sessions (user login) and see the information in the database. My

Re: [fw-general] Zend_Validate

2008-11-13 Thread nwhiting
Goran Juric wrote: nwhiting wrote: shouldn't this return any error messages set within those validators? As even Zend_Validate_EmailAddress does not return any error, and my custom validators are setup just as defined in the documentation Yes, they should display error messages.

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

2008-11-13 Thread kirpit
I have finally solved the problem!! I'm not sure but this might be a bug. There were 2 lines in bootstrap setting up the current locale option like; setlocale(LC_ALL, 'tr_TR'); Zend_Locale::setDefault('tr_TR'); When it comes either to HelperBroker or Zend_Layout::startMvc or

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

2008-11-13 Thread Matthew Ratzloff
I have finally solved the problem!! So... what was the problem? It wasn't clear from your e-mail. There was another issue as well which might be the trigger of IteratorAggregate problem above, a view helper (i believe action helper would react same) in layout which was named as xUrl. Class

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

2008-11-13 Thread kirpit
The problem was setting locale with 2 different method in the same time. I have just removed setlocale() line in bootstrap, all the mystery and IteratorAggregate not found problem were gone... Strange but true. Most beginners don't read Zend coding standards and even they do, they might think

Re: [fw-general] ZendX_Doctrine_Auth_Adapter - seeking comments

2008-11-13 Thread Behzad
That's a good idea! On Thu, Nov 6, 2008 at 8:15 PM, [EMAIL PROTECTED] wrote: Compare the following: http://framework.zend.com/svn/framework/standard/trunk/library/Zend/Auth/Adapter/DbTable.php vs

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-13 Thread Cameron
I've had a look at the version in the trunk, and it's not going to work for anyone - maybe I'm crazy, but I've always thought selects were best used as an id = value pair, so the id matches the id value in your database, so you don't have to rely on clunky string matching. In the refactored

[fw-general] Anonymous SVN checkout?

2008-11-13 Thread Christian Sanchez
Is it unavailable atm? I've been trying to access anonymously and it doesn't work -- Christian Sánchez A.

[fw-general] ZF 1.7 and getParam charset problem

2008-11-13 Thread Kononov Ruslan
At testing ZF 1.7 there is a problem: _getParam() returns data in UTF-8 encoding. I'm using windows-1251 encoding. How can I fix it? In ZF 1.5 all works fine. -- View this message in context: http://www.nabble.com/ZF-1.7-and-getParam-charset-problem-tp20495479p20495479.html Sent from the Zend

[fw-general] insert filename without path into database

2008-11-13 Thread Ace Paul
My form intem looks like this $element = new Zend_Form_Element_File('logo_image'); $element-setLabel('Logo Image:') -setRequired('true') -setDestination('/home/pathto/images/logos/') -addValidator('Count', false, 1) // ensure only 1 file

Re: [fw-general] Anonymous SVN checkout?

2008-11-13 Thread Graham Anderson
On Friday 14 November 2008 06:45:19 Christian Sanchez wrote: Is it unavailable atm? I've been trying to access anonymously and it doesn't work Yes it would seem some config change has borked anonymous checkout for the moment. Graham

Re: [fw-general] insert filename without path into database

2008-11-13 Thread Thomas Weidner
In PHP there is a function called basename which returns the filename from an complete directory string. Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: Ace Paul [EMAIL PROTECTED] To: fw-general@lists.zend.com Sent:

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

2008-11-13 Thread Thomas Weidner
Zend_Locale does not use any SPL class. This failure seems to be a PHP and not a ZF problem. When these two methods can not be called together, it would mean that PHP's setlocale() method can not be called twice in your code. Because Zend_Locale::setDefault calls setLocale internally. Your