[fw-general] how to add file field to zend_form

2008-04-11 Thread Jacky Chen
Hi All, How can i add file field to Zend_Form? Best Regards.

Re: [fw-general] How to destroy a session

2008-04-11 Thread xing93111
Thank you, Sudheer. Sudheer Satyanarayana wrote: > > Sudheer wrote: >> xing93111 wrote: >>> Hi, >>> >>> I create a default session namespace using: >>> >>> $s = new Zend_Session_Namespace(); >>> >>> How do I destroy it? >>> >>> Thanks >>> >> |Looks like the answer is >> Zend_Session::namespa

Re: [fw-general] How to destroy a session

2008-04-11 Thread Sudheer
Sudheer wrote: xing93111 wrote: Hi, I create a default session namespace using: $s = new Zend_Session_Namespace(); How do I destroy it? Thanks |Looks like the answer is Zend_Session::namespaceUnset($a) Oops! Zend_Session::namespaceUnset($s) Regards, Sudheer |

Re: [fw-general] How to destroy a session

2008-04-11 Thread Sudheer
xing93111 wrote: Hi, I create a default session namespace using: $s = new Zend_Session_Namespace(); How do I destroy it? Thanks |Looks like the answer is Zend_Session::namespaceUnset($a) Regards, Sudheer |

Re: [fw-general] Zend_Log_Writer_FirePHP

2008-04-11 Thread Ramon de la Fuente
I've installed it - took about 4 minutes to get up-and-running... I love it already! Debugging without breaking the application output - it is exactly what the doctor ordered!*grin* Eric Marden wrote: I'm intrigued. Keep us abreast of the progress of this extension. -- Eric Marden -

Re: [fw-general] Is anyone processing Zend_Form forms manually in the views?

2008-04-11 Thread Matthew Weier O'Phinney
-- asadkn <[EMAIL PROTECTED]> wrote (on Friday, 11 April 2008, 02:25 PM -0700): > I want to keep the forms separated in the views and thus would like to parse > generated forms in views. Instead of relying on Zend_Form decorators > generated HTML, I would like to do it all manually. It gets extreme

[fw-general] Is anyone processing Zend_Form forms manually in the views?

2008-04-11 Thread asadkn
I want to keep the forms separated in the views and thus would like to parse generated forms in views. Instead of relying on Zend_Form decorators generated HTML, I would like to do it all manually. It gets extremely messy when I have to use decorators with few of my HTML-rich forms. Perhaps I wa

[fw-general] How to destroy a session

2008-04-11 Thread xing93111
Hi, I create a default session namespace using: $s = new Zend_Session_Namespace(); How do I destroy it? Thanks -- View this message in context: http://www.nabble.com/How-to-destroy-a-session-tp16629043p16629043.html Sent from the Zend Framework mailing list archive at Nabble.com.

Re: [fw-general] custom form validator

2008-04-11 Thread Matthew Weier O'Phinney
-- chinaski <[EMAIL PROTECTED]> wrote (on Friday, 11 April 2008, 01:38 PM -0700): > This seems simple, but I can't make it work (path issue). I'm experimenting > with Zend_Form, and I want to add a custom validator to a form field. > > I have written the a test validator and saved it as follows: >

Re: [fw-general] Zend_XMLRPC_Server overwrite/ response customized Fault-Msgs.

2008-04-11 Thread Matthew Weier O'Phinney
-- James Dempster <[EMAIL PROTECTED]> wrote (on Friday, 11 April 2008, 09:13 PM +0100): > I'd like the same features on Zend_Rest_Server also, but just noticed that the > Zend_Rest_Server::fault returns a DOMDocument Interesting -- it should likely cast that to a string. > ZF-3102 is the issue re

[fw-general] custom form validator

2008-04-11 Thread chinaski
Hello. This seems simple, but I can't make it work (path issue). I'm experimenting with Zend_Form, and I want to add a custom validator to a form field. I have written the a test validator and saved it as follows: I have saved the file as /My/Validate/TestVal.php. I have a script that builds t

Re: [fw-general] Zend_XMLRPC_Server overwrite/ response customized Fault-Msgs.

2008-04-11 Thread James Dempster
I'd like the same features on Zend_Rest_Server also, but just noticed that the Zend_Rest_Server::fault returns a DOMDocument *ZF-3102 * is the issue regarding throwExceptions* * I've just noticed that Zend_XmlRpc_Server_Fault has the getException me

Re: [fw-general] Zend_XMLRPC_Server overwrite/ response customized Fault-Msgs.

2008-04-11 Thread Matthew Weier O'Phinney
-- James Dempster <[EMAIL PROTECTED]> wrote (on Friday, 11 April 2008, 08:16 PM +0100): > That's the way I use SoapServer. > I would have thought it was more in keeping with the SoapServer API to allow > the Exception to be thrown but as it already doesn't maybe add the option. G... you're rig

Re: [fw-general] Zend_XMLRPC_Server overwrite/ response customized Fault-Msgs.

2008-04-11 Thread James Dempster
That's the way I use SoapServer. I would have thought it was more in keeping with the SoapServer API to allow the Exception to be thrown but as it already doesn't maybe add the option. Example -- server.php -- ' http://localhost/tests/soap/server.php')); $server->setClass('SoapTestClass');

Re: [fw-general] Zend_XMLRPC_Server overwrite/ response customized Fault-Msgs.

2008-04-11 Thread Matthew Weier O'Phinney
-- James Dempster <[EMAIL PROTECTED]> wrote (on Friday, 11 April 2008, 07:16 PM +0100): > The problem with this is that you loose the actual exception object. Okay, how about storing the exception object in the fault response? That would give you access to it should you want to log it or manipulat

Re: [fw-general] Zend_XMLRPC_Server overwrite/ response customized Fault-Msgs.

2008-04-11 Thread James Dempster
The problem with this is that you loose the actual exception object. I would much prefer something along what the front controller does. Zend_Controller_Front::getInstance()->throwExceptions(true); Something like this would be handy for example... $server->throwException(true); try { echo $s

RE: [fw-general] Zend_Layout, urls and spaces in names

2008-04-11 Thread Eric Marden
You didn't really say why and where you wanted to do this at, as there are different approaches to it. However, I recommend steering away from files with spaces in them - especially if your target hosting platform is running *nix. > Is there a helper or method to convert those spaces to %20 in Zen

Re: [fw-general] Zend_XMLRPC_Server overwrite/ response customized Fault-Msgs.

2008-04-11 Thread Matthew Weier O'Phinney
-- James Dempster <[EMAIL PROTECTED]> wrote (on Friday, 11 April 2008, 04:33 PM +0100): > I have the very same problem. > > I'd much prefer to catch the Exceptions myself, and deal with them by either > allowing the message though based on the type of Exception, or change it to a > generic Excepti

[fw-general] Comment on ZF-2978: Zend_XmlRpc_Client returning system.methodSignature

2008-04-11 Thread Jake McGraw
Matthew, anyone watching this issue: The provided solution: class My_XmlRpc_Client extends Zend_XmlRpc_Client { public function call($method, $params = array()) { $request = new Zend_XmlRpc_Request($method, $params); $this->doRequest($request); if ($this->_lastRe

Re: [fw-general] Splitting radio button options

2008-04-11 Thread Ronnie87
tim912 wrote: > > Is there a way of splitting radio buttons on a page using the Zend_Form > component? > http://framework.zend.com/issues/browse/ZF-2977 -- View this message in context: http://www.nabble.com/Splitting-radio-button-options-tp16627269p16627896.html Sent from the Zend Framewor

Re: [fw-general] Zend_Log_Writer_FirePHP

2008-04-11 Thread Christoph Dorn
> I'm intrigued. Keep us abreast of the progress of this extension. => Will do. Any feedback on the current version is welcome. The list for FirePHP is here: http://groups.google.com/group/FirePHP Thanks! Christoph

Re: [fw-general] Zend_Log_Writer_FirePHP

2008-04-11 Thread Christoph Dorn
> Have you written a proposal > (http://framework.zend.com/wiki/display/ZFPROP/Home) on the Zend Wiki? => Not yet. We were going to wait until the proposal process has been revamped. > But, however it sounds great!! > Perhaps it would be a nice addition for Zend_Debug::dump() too, => Sounds

Re: [fw-general] Zend_XMLRPC_Server overwrite/ response customized Fault-Msgs.

2008-04-11 Thread James Dempster
I have the very same problem. I'd much prefer to catch the Exceptions myself, and deal with them by either allowing the message though based on the type of Exception, or change it to a generic Exception. Maybe time to submit an issue regarding this? -- /James On Fri, Apr 11, 2008 at 3:28 PM, Pe

[fw-general] Zend_XMLRPC_Server overwrite/ response customized Fault-Msgs.

2008-04-11 Thread Peter Boehlke
Hi there, i'm trying around with the Zend_XMLRPC-Server. So far, i'm very pleased with it. Everything runs without Problems etc. But i have one Problem concerning the Zend_XmlRpc_Server_Fault (standard)messages. I want to respond with my own fault-XML-grids, if something in the Request was wrong

RE: [fw-general] Zend_Log_Writer_FirePHP

2008-04-11 Thread Eric Marden
I'm intrigued. Keep us abreast of the progress of this extension. -- Eric Marden -Original Message- From: Christoph Dorn [mailto:[EMAIL PROTECTED] Sent: Thursday, April 10, 2008 6:21 PM To: fw-general@lists.zend.com Subject: [fw-general] Zend_Log_Writer_FirePHP Hi All, I have writ

[fw-general] Zend_Rest and POST

2008-04-11 Thread Kolkman, Chris
Hello, I'm attempting to use Zend_Rest for posting an XML request document and receiving a response. Basically I'm attempting to do the following with Zend_Rest: function do_post_request($url, $data, $optional_headers = null){ $params = array('

Re: [fw-general] Zend_Log_Writer_FirePHP

2008-04-11 Thread Thomas Fritz
Have you written a proposal (http://framework.zend.com/wiki/display/ZFPROP/Home) on the Zend Wiki? But, however it sounds great!! Perhaps it would be a nice addition for Zend_Debug::dump() too, Thomas 2008/4/11, Christoph Dorn <[EMAIL PROTECTED]>: > Hi All, > > I have written a simple log

[fw-general] Haw i can get Radio button into desired position

2008-04-11 Thread robsg
I get something like this: http://www.nabble.com/file/p16627785/ZRRtnF_gw9g57KTgh0q-b.jpg But i want to have like this: http://www.nabble.com/file/p16627785/siM2Y_yJCCkq9za4JvrY5.jpg My code: $test_options = array('N'=>'Ne', 'D'=>'Da'); $test = new Zend_Form_Element_Radio('radiotest',array('l

Re: [fw-general] Splitting radio button options

2008-04-11 Thread Matthew Weier O'Phinney
-- tim912 <[EMAIL PROTECTED]> wrote (on Friday, 11 April 2008, 01:50 AM -0700): > Is there a way of splitting radio buttons on a page using the Zend_Form > component? I think that something along the lines of each option having its > own decorators would solve the problem but I can't see a way of d

Re: [fw-general] DISTINCT clause in a select() over ZEND_Db_Table

2008-04-11 Thread Denis Fohl
i've tried this : public function countLevels() { $select = $this->select(); $select->distinct(); $select->from($this,array('nb' => 'COUNT(idparent)')); return $this->fetchAll($select); } a call to the __toString met

[fw-general] Splitting radio button options

2008-04-11 Thread tim912
Is there a way of splitting radio buttons on a page using the Zend_Form component? I think that something along the lines of each option having its own decorators would solve the problem but I can't see a way of doing this. The effect I want is to be able to have each option in its own div elemen

[fw-general] DISTINCT clause in a select() over ZEND_Db_Table

2008-04-11 Thread Denis Fohl
Hi all, i can't manage myself to get it work : public function countLevels() { $select = $this->select(); $select->from($this,'COUNT(DISTINCT idparent'); return $this->fetchAll($select); } this method is declared in a db_table obje