Re: [fw-general] disable escaping

2009-10-19 Thread Svetlin Petrov
Hi,

Have you tried:

$this-setAttrib( 'escape', false );

Regards,
Svetlin Tsvetanov

On Fri, Oct 16, 2009 at 6:57 PM, Hector Virgen djvir...@gmail.com wrote:

 What part of the form do you not want to escape?

 --
 Hector



 On Fri, Oct 16, 2009 at 6:32 AM, Anders Gunnarsson 
 and...@metropolis.sewrote:

 How do i disable escaping in zend_form?

 I have found a $form-getView()-setEscape() but only found two settings
 htmlspecialchars and stripslashes.
 I saw something about noEscape in a forum, but that gives me an error.

 regards
 Anders

 /
 /





-- 
Svetlin Tsvetanov
PHP Lead
svetlin.tsveta...@softtechbg.com

This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager.
This message contains confidential information and is intended only for the
individual named. Please notify the sender immediately by e-mail if you have
received this e-mail by mistake and delete this e-mail from your system. If
you are not the intended recipient you are notified that disclosing,
copying, distributing or taking any action in reliance on the contents of
this information is strictly prohibited. Any views or opinions presented in
this email are solely those of the author and do not necessarily represent
those of the company.


[fw-general] Zend_DB Oracle adapter

2007-06-14 Thread Svetlin Petrov

Hi,

I need to execute query like this one:

INSERT INTO deal

(name, deal_type)
VALUES
(:name, :deal_type)
RETURNING
id
INTO
:id



If I do not use Zend Framework,  I do the following:

$stmt = oci_parse($_conn, $sql);



oci_bind_by_name($stmt, :name, $name, 32);
oci_bind_by_name($stmt, :deal_type, $deal_type, 32);
oci_bind_by_name($stmt, :id,   $id, -1, SQLT_INT);

oci_execute($stmt);



My question is: is there an way to do this inside Zend Framework?

Thanks!
Svetlin Tsvetanov

--
http://www.spetrov.com


[fw-general] Problem with Zend_Http_Client $config['timeout'] value

2007-03-14 Thread Svetlin Petrov

Hello,

I use Zend XmlRpc and I faced the following problem:
When the function on our server needs more execution time, the connection
times out, but no Exception is raised.
Instead Unable to parse response or response is empty error is displayed.
This is because when the connection times out, no response is returned and
no timeout Exception is raised.

In Zend_Http_Client there is
protected $config = array(
   'maxredirects'= 5,
   'strictredirects' = false,
   'useragent'   = 'Zend_Http_Client',
   'timeout' = 10,
   'adapter' = 'Zend_Http_Client_Adapter_Socket',
   'httpversion' = self::HTTP_1,
   'keepalive'   = false
   );

The $config['timeout'] is used for two different functions:
fsockopen() and stream_set_timeout() but the timeout parameter has different
meaning in each of them.

* Note: * If you need to set a timeout for reading/writing data over the
socket, use 
stream_set_timeout()http://bg2.php.net/manual/en/function.stream-set-timeout.php,
as the * timeout* parameter to *fsockopen()* only applies while connecting
the socket. - http://php.net/manual/en/function.fsockopen.php

stream_set_timeout — Set timeout period on a stream -
http://php.net/manual/en/function.stream-set-timeout.php

I temporary resolved the problem by increasing the value from 10 to 60, but
it should be fixed.
There should be two different timeouts - connect_timeout and
transfer_timeout.

There should be Exception for timeout, because:
When the stream times out, the 'timed_out' key of the array returned by
stream_get_meta_data()http://bg.php.net/manual/en/function.stream-get-meta-data.phpis
set to
* TRUE*, although no error/warning is generated. -
http://php.net/manual/en/function.stream-set-timeout.php

Svetlin Tsvetanov
--
http://www.gsoccer.info


[fw-general] Problem with Zend_Http_Client $config['timeout'] value

2007-03-01 Thread Svetlin Petrov

Hello,

I use Zend XmlRpc and I faced the following problem:
When the function on our server needs more execution time, the connection
times out, but no Exception is raised.
Instead Unable to parse response or response is empty error is displayed.
This is because when the connection times out, no response is returned and
no timeout Exception is raised.

In Zend_Http_Client there is
protected $config = array(
   'maxredirects'= 5,
   'strictredirects' = false,
   'useragent'   = 'Zend_Http_Client',
   'timeout' = 10,
   'adapter' = 'Zend_Http_Client_Adapter_Socket',
   'httpversion' = self::HTTP_1,
   'keepalive'   = false
   );

The $config['timeout'] is used for two different functions:
fsockopen() and stream_set_timeout() but the timeout parameter has different
meaning in each of them.

*Note: * If you need to set a timeout for reading/writing data over the
socket, use 
stream_set_timeout()http://bg2.php.net/manual/en/function.stream-set-timeout.php,
as the *timeout* parameter to *fsockopen()* only applies while connecting
the socket. - http://php.net/manual/en/function.fsockopen.php

stream_set_timeout — Set timeout period on a stream -
http://php.net/manual/en/function.stream-set-timeout.php

I temporary resolved the problem by increasing the value from 10 to 60, but
it should be fixed.
There should be two different timeouts - connect_timeout and
transfer_timeout.

There should be Exception for timeout, because:
When the stream times out, the 'timed_out' key of the array returned by
stream_get_meta_data()http://bg.php.net/manual/en/function.stream-get-meta-data.phpis
set to
*TRUE*, although no error/warning is generated. -
http://php.net/manual/en/function.stream-set-timeout.php

Svetlin Tsvetanov
--
http://www.gsoccer.info