Re: [fw-general] comments withing config.ini

2009-08-10 Thread Dalibor Karlović
On Monday 10 August 2009 21:25:48 Mike Wright wrote: > Hi all, > > Is there any way to "comment out" blocks of lines in a config.ini file? > > I know that it can be done line by line by prefixing them with a ";" but > there are times (like when debugging) where it would be *very* > convenient to hi

[fw-general] Setting one message on failed validation for Zend_Validate

2009-08-10 Thread Simon R Jones
hi there, I have a common requirement for setting one error message on the failed validation of a form element, for example an email address. Sometimes I just want to set something like 'Enter a valid email address' rather than have the many different error messages that Zend_Validate_Ema

Re: [fw-general] Offline version of the documentation

2009-08-10 Thread admirau
mbneto wrote: > > You can download it from the http://framework.zend.com/download/latest > Thanks, I have missed this version, found only docs for 1.6 version. -- regards takeshin -- View this message in context: http://www.nabble.com/Offline-version-of-the-documentation-tp24887234p24907

[fw-general] comments withing config.ini

2009-08-10 Thread Mike Wright
Hi all, Is there any way to "comment out" blocks of lines in a config.ini file? I know that it can be done line by line by prefixing them with a ";" but there are times (like when debugging) where it would be *very* convenient to hide entire sections of the config data. Is there anything alo

Re: [fw-general] Zend_Session Garbage Collections Works?

2009-08-10 Thread Alex
Hi Benjamin, About my previous post: > I setup a .php file that runs by bootstrap then outputs phpinfo() and > everything looks right. Still, the GC is not running. I did that on my dev machine. On production (yep Benjamin, debian), gc_probability was set to 0. I have many apps on the server so t

Re: [fw-general] Zend_Session Garbage Collections Works?

2009-08-10 Thread Benjamin Eberlei
are you running on debian? it disables the php session gc and uses its own cronjob to cleanup, which sometimes is not running correctly.. On Monday 10 August 2009 09:05:46 pm Alex wrote: > Any idea why the GC isn't running? > > I setup a .php file that runs by bootstrap then outputs phpinfo() and

Re: [fw-general] Zend_Session Garbage Collections Works?

2009-08-10 Thread Alex
Any idea why the GC isn't running? I setup a .php file that runs by bootstrap then outputs phpinfo() and everything looks right. Still, the GC is not running. - Alex On Mon, Aug 10, 2009 at 3:58 PM, Peter Warnock wrote: > On Mon, Aug 10, 2009 at 11:20 AM, Alex wrote: > >> >> As an aside: wou

Re: [fw-general] Zend_Session Garbage Collections Works?

2009-08-10 Thread Peter Warnock
On Mon, Aug 10, 2009 at 11:20 AM, Alex wrote: > > As an aside: would using the DbTable save handler be more efficient than > the file handler? > > - Alex > The file handler is faster, but the db handler can provide persistence across multiple servers and is potentially more secure depending on t

[fw-general] Zend_Session Garbage Collections Works?

2009-08-10 Thread Alex
Hello, I've set the gc_maxlifetime to 14 days, but PHP's session GC is simply not running. My sessions dir now has hundreds of thousands of files. What am I doing wrong? Below is my session initialization: $config = Zend_Registry::get('config'); $options = array( 'nam

Re: [fw-general] Matthew's pastebin app

2009-08-10 Thread Sudheer Satyanarayana
Christoph Dorn wrote: Matthew, Are you planning to update your pastebin app to incorporate all the latest 1.9 features? Christoph I would love to hear yes from Matthew! -- With warm regards, Sudheer. S Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, Personal: htt

[fw-general] Matthew's pastebin app

2009-08-10 Thread Christoph Dorn
Matthew, Are you planning to update your pastebin app to incorporate all the latest 1.9 features? Christoph

Re: [fw-general] Command line options with Zend_Tool

2009-08-10 Thread Christoph Dorn
Ralph, I have not had the time to put a proper solution together although I am getting closer conceptually. I'll let you know when I have something to review. Christoph Excellent, we can review your solution as a prototype and see how it fits best in Zend_Tool. Can't wait to see it, I am

Re: [fw-general] Hide a Zend_Form_Element

2009-08-10 Thread flow
Hello Hector, thanks for your reply. removeElement is the way to go. Hector Virgen wrote: > > Do you need it to be invisible but submitted with the post data? Try > making > it a hidden input field: > $this->addElement('hidden', 'myfield', array(/* ... */)); > > Or you can remove the element

[fw-general] Re: [zf-contributors] API/Interface changes?

2009-08-10 Thread Ben Scholzen 'DASPRiD'
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 till wrote on 10.08.2009 13:37: > IMHO, that's not a bad idea as well. I mean, generally it sort of > depends how useful 10 vs 60 is. Configuration is not a bad idea, but > it might also help to add a page to the manual so people just set the > ini set

Re: [fw-general] Hide a Zend_Form_Element

2009-08-10 Thread Hector Virgen
Do you need it to be invisible but submitted with the post data? Try making it a hidden input field: $this->addElement('hidden', 'myfield', array(/* ... */)); Or you can remove the element completely if you don't need it to be submitted: $form = new MyForm(); $form->removeElement('myfield'); Or,

[fw-general] Hide a Zend_Form_Element

2009-08-10 Thread flow
Hi, I want to hide a zend_form_element and I was wondering that there is no visible-attribute or something like that. Of course I can give the element a class and hide it via CSS, but is this the "correct" way? I think It would be better to hide the element in the init of the form so that it does

Re: [fw-general] Offline version of the documentation

2009-08-10 Thread mbneto
Hi, You can download it from the http://framework.zend.com/download/latest page On Sun, Aug 9, 2009 at 9:37 AM, admirau wrote: > > Is there any up to date offline version of the documentation to the ZF? > How to obtain one? > > -- > ragards > takeshin > > -- > View this message in context: > h

[fw-general] How to get resource in plugin

2009-08-10 Thread sNop
i, what is the best way to get resource in my plugins ? Now i'm using e.g.: $view = Zend_Controller_Front::getInstance()->getParam('bootstrap')->getResource('view'); Thank you for advices -- View this message in context: http://www.nabble.com/How-to-get-resource-in-plugin-tp24900788p24900788

[fw-general] New Router Question

2009-08-10 Thread milesap
This is the first time I need to change the default Zend Router, so I want to make sure I'm doing it right. I need to have my links like so; http://register.example.com/companyname/controller/action. I looked on this forum and found a solution that might work: $route = new Zend_Controller_Route

[fw-general] Zend_Dom

2009-08-10 Thread Jaggi
I've been trying to use zend dom but i've been having some issues so was wondering if someone could tell me if this was possible... XML: . Flu drugs 'unhelpful' in children Experts are questioning the policy of giving antiviral drugs to children for swine flu sayi

Re: [fw-general] Zend_Application_Module_Autoloader loading viewhelper question

2009-08-10 Thread Xorock
I have just discovered that paths for view helpers are automaticaly set for any module except of default. Why is it so? Module "test": Test_View_Helper_: [...]/application/modules/test/views/helpers/:[...]/application/modules/test/views/helpers/ Zend_View_Helper_: Zend/View/Helper/ But for "defa

Re: [fw-general] ZF, phpMyAdmin and Unicode [SOLVED]

2009-08-10 Thread holografix .
Hi You can check this: http://bugs.php.net/bug.php?id=47224 cheers holo 2009/8/10 Ross > Yes, I did. Didn't work in my setup. > I'd say it's not related to php 5.3.0. More likely it's related to a > particular version of PDO MySQL driver or MySQL itself... > Another solution seems to be to avo