[fw-general] Zend_Controller_Router_Route_Interface - extending default router

2007-10-17 Thread Waigani
Hi All, Is there a way of extending the default router behavior by implementing Zend_Controller_Router_Route_Interface? What I’m looking for is to maintain the /module/controller/action behavior and onto it a series of prams eg Default/index/index/parentPage/childPage/etc Thanks, -- View

[fw-general] howto decode mime encoded mail?

2007-10-17 Thread Jan Pieper
Hi guys, is it possible to decode a mime encoded mail with zend framework? http://nopaste.php-quake.net/7231 Here you can see what I want do decode. Is it possible to decode this message with Zend_Mail(_*) or Zend_Mime(_*)? -- Jan -- View this message in context:

Re: [fw-general] howto decode mime encoded mail?

2007-10-17 Thread Jack Sleight
I had the same question a while back, yes you can: http://www.nabble.com/Re:--fw-general--Zend_Mime_Decode,-decode-entire-message-t3427208s16154.html Jan Pieper wrote: Hi guys, is it possible to decode a mime encoded mail with zend framework? http://nopaste.php-quake.net/7231 Here you can

[fw-general] Encoding of HTTP cookies, ZF-1850

2007-10-17 Thread Shahar Evron
I did some thinking and research following ZF-1850, and it seems that currently, Zend_Http_Client and Zend_Http_Cookie are a bit problematic when it comes to encoding cookie values. Currently, we are urlencode()ing all cookie values. Apparently this is not a problem when PHP is on the other side

Re: [fw-general] howto decode mime encoded mail?

2007-10-17 Thread Jan Pieper
Jack Sleight wrote: I had the same question a while back, yes you can: http://www.nabble.com/Re:--fw-general--Zend_Mime_Decode,-decode-entire-message-t3427208s16154.html [...] -- Jack Hmm, but howto replace =3D and =C3 with human readable characters? -- Jan -- View this message in

Re: [fw-general] Zend_Uri improvements proposal ready for review

2007-10-17 Thread Shahar Evron
Hi Michael, Generally speaking you are right - a URI without a scheme is invalid, but I don't think this is a good enough reason not to represent partial URLs in an object. It will make it easier for users, for example, to parse HTML files which might contain full or partial URLs, and extract

Re: [fw-general] howto decode mime encoded mail?

2007-10-17 Thread Jan Pieper
Jack Sleight wrote: [...] Once you get the raw content from the message use PHP's quoted_printable_decode function, that should work I think (although I've never actually used it). [...] -- Jack Yeah thanks :-) quoted_printable_decode() works fine. -- Jan -- View this message in

Re: [fw-general] howto decode mime encoded mail?

2007-10-17 Thread Jack Sleight
Looking at your example message, its encoding type is quoted printable. It might be possible to get Zend_Mail to do this for you, I'm not sure, but if not you'll need to decode it yourself. Once you get the raw content from the message use PHP's quoted_printable_decode function, that should

Re: [fw-general] FlashMessenger and Controller plugins - Help wanted

2007-10-17 Thread Mirmillo
I have this same problem, currently I am addressing it by using this in my Controller Base: function postDispatch() { /* * this is gonna be a headache later, I think... */ /* this handles messages across pages */ if

Re: [fw-general] Zend_Uri improvements proposal ready for review

2007-10-17 Thread Michael B Allen
On 10/17/07, Shahar Evron [EMAIL PROTECTED] wrote: Hi Michael, Generally speaking you are right - a URI without a scheme is invalid, but I don't think this is a good enough reason not to represent partial URLs in an object. The added complexity of allowing virtually any input is going to

Re: [fw-general] Zend_Uri improvements proposal ready for review

2007-10-17 Thread Shahar Evron
On Wed, 2007-10-17 at 08:42 -0400, Michael B Allen wrote: On 10/17/07, Shahar Evron [EMAIL PROTECTED] wrote: Hi Michael, Generally speaking you are right - a URI without a scheme is invalid, but I don't think this is a good enough reason not to represent partial URLs in an object.

[fw-general] DB Table Insert Quoting

2007-10-17 Thread Ian Warner
Am I right in Assuming: $table = new Bugs(); $data = array( 'created_on' = '2007-03-22', 'bug_description' = 'Something wrong', 'bug_status' = 'NEW' ); $table-insert($data); does Automatic Quoting so $table = new Bugs(); $data = array( 'created_on' = $foo,

Re: [fw-general] DB Table Insert Quoting

2007-10-17 Thread Matthew Weier O'Phinney
-- Ian Warner [EMAIL PROTECTED] wrote (on Wednesday, 17 October 2007, 02:09 PM +0100): Am I right in Assuming: $table = new Bugs(); $data = array( 'created_on' = '2007-03-22', 'bug_description' = 'Something wrong', 'bug_status' = 'NEW' ); $table-insert($data);

RE: [fw-general] DB Table Insert Quoting

2007-10-17 Thread Bill Karwin
In the case of insert(), Zend_Db uses prepared queries to separate the values from the SQL. So the SQL prepared is INSERT INTO tablename (created_on, bug_description, bug_status) VALUES (?, ?, ?) First the query with parameter placeholders is prepared, and then the values are supplied

Re: [fw-general] custom route problem

2007-10-17 Thread Gunter Sammet
Hi all: I have following custom route: $router = $frontController-getRouter(); $browseRoute = new Zend_Controller_Router_Route( '/:action/:detailPage/*', // URL to match; action and id will be matched array( 'module' =

Re: [fw-general] custom route problem

2007-10-17 Thread Michał Minicki
Gunter Sammet wrote: $browseRoute = new Zend_Controller_Router_Route( '/:action/:detailPage/*', (...) All requests that have an existing controller (e.g. base url/admin or base url/admin/index or base url/admin/index or base url/admin/list/view/test etc.) should

[fw-general] Zend_Rest_Server MVC

2007-10-17 Thread kabel
I'm having a few problems figuring out how to get Zend_Rest_Server to work within the MVC setup. Right now, I use a non-MVC setup.. flat script, server is instantiated, a class is connected, then $server-handle(); That works well, and I have no problems using Zend_Client to do it. When I try

Re: [fw-general] Zend_Rest_Server MVC

2007-10-17 Thread Nick Lo
Hi Kabel, Has anyone else done this or have any recommendations? Is it a good idea to try to run a Zend_Rest_Server from inside a controller, or should I stick with a simple one-off script? How about this example (complete with rudimentary logging): class RestController extends

Re: [fw-general] ZF performance advice

2007-10-17 Thread Dennis Fogg
Dennis Fogg wrote: I completed the basic structure of my ZF infrastructure and noticed that it seemed quite slow. Summary: My Zend framework page generation time went from 1.2 sec to 0.4 sec using a number of techniques. I compare my performance with Rob Allen's tutorial code (which has