[fw-general] Using validator (greaterThan) to refer to another element in form

2009-06-29 Thread asgeo1
Hi, I'm new to learning the Zend Framework, and are having trouble understanding how one would use the greaterThan validator to check that a Zend_Form_Element_Date element is greater than another Zend_Form_Element_Date in the same form. First I find that greaterThan doesn't know how to compare d

Re: [fw-general] Re: Re[fw-general] moving Require_once

2009-06-29 Thread Dalibor Karlović
On Tuesday 30 June 2009 05:53:27 aSecondWill wrote: > Thanks! I got that working after a bit of fiddling with spaces etc. It made > almost no difference to the page load time, even when applied to my extra > application libraries, Doctrine etc. - its taking 600ms to proccess > everything.(roughly,

[fw-general] GData Warning messages

2009-06-29 Thread Deanna Bonds
When using gdata routines I am getting a series of warning messages for include files that don't exist. I don't think they are supposed to exist but it is the gdata framework testing to see if it does before it checks a different base class path. Is there any way to turn these off. I can tur

[fw-general] Zend_DB_Table: delete() won't delete any row in dependent tables

2009-06-29 Thread Thomas D.
Hi, I have two tables, drivers and cars. Each driver in drivers has his cars in cars. When I delete a driver, his cars should also be deleted in cars. I defined two classes: class Drivers extends Zend_Db_Table_Abstract { [...] protected $_dependentTables = array( 'Cars' ); }

[fw-general] Re: Re[fw-general] moving Require_once

2009-06-29 Thread aSecondWill
Thanks! I got that working after a bit of fiddling with spaces etc. It made almost no difference to the page load time, even when applied to my extra application libraries, Doctrine etc. - its taking 600ms to proccess everything.(roughly, varies quite a bit - 1st load of a page a bit slower, posib

Re: [fw-general] Re[fw-general] moving Require_once

2009-06-29 Thread Matthew Ratzloff
You'll need to delete all the backup versions of the files afterward with this command, BTW. I don't think BSD sed will permit in-place editing using stdin. The complete command is therefore: % cd path/to/ZendFramework/library % find . -name '*.php' | grep -v './Loader/Autoloader.php' | \ xargs s

Re: [fw-general] Re[fw-general] moving Require_once

2009-06-29 Thread Matthew Ratzloff
The documentation assumes GNU versions of find and sed, and should probably note that. The equivalent BSD command (which will of course work on Mac OS X) is: % cd path/to/ZendFramework/library % find . -name '*.php' | grep -v './Loader/Autoloader.php' | \ xargs sed -E -i~ 's/(require_once)/\/\/ \1

[fw-general] Re[fw-general] moving Require_once

2009-06-29 Thread aSecondWill
The instructions given here: http://framework.zend.com/manual/en/performance.classloading.html#performance.classloading.striprequires.sed Don't work in terminal on OSX. Does anyone have an alternative ? Is it possible to make a production ready version of the framework available? one with the

Re: [fw-general] Session start, destroy, start, exception issue

2009-06-29 Thread till
2009/6/29 Žilvinas Šaltys : > Hello, > > First sorry if it's not the right place to ask about this. In my > defense I tried to google about this but couldn't find any relevant > information. > > In PHP it seems perfectly normal to start a session, destroy it, and > then start it again. You can do i

[fw-general] Session start, destroy, start, exception issue

2009-06-29 Thread Žilvinas Šaltys
Hello, First sorry if it's not the right place to ask about this. In my defense I tried to google about this but couldn't find any relevant information. In PHP it seems perfectly normal to start a session, destroy it, and then start it again. You can do it as much as you like. http://php.net/ses