[fw-general] Many modules (10+) versus performance

2010-12-17 Thread Marian Meres
Hi, I'm thinking about an app with with quite a few modules (10+) and I am a little theoretically worried about the potential performance issues related with it. My plan is to: - use extremely few _init* methods in the application Bootstrap class - use none _init* methods in the module's

[fw-general] Session db save handler discussion

2010-11-12 Thread Marian Meres
Hi, this is not really ZF related, but I hope you don't mind more generic question. I've never used any other session save handler than the native php one. As far as I know it raises concerns only related to a) the disk read/write security and/or b) potential load balancing problems (sync

Re: [fw-general] Session db save handler discussion

2010-11-12 Thread Marian Meres
if your database is properly secured. I'm not sure I understand. Are you talking about filesystem security (...other users on the same box...)? Thanks, M. Thats my 2c Greetings, Christian Riesen On Fri, Nov 12, 2010 at 11:44 AM, Marian Meres marian.me...@gmail.com wrote: Hi

Re: [fw-general] MVC design question

2010-10-30 Thread Marian Meres
If the duplication is isolated to that particular controller only, why not just simply create a no action method to be called in those two actions... the controller is still just a regular class. m. On Sat, Oct 30, 2010 at 12:41 AM, Hector Virgen djvir...@gmail.com wrote: You can probably place

[fw-general] Zend_Mail (encoding) problem?

2010-10-14 Thread Marian Meres
Hello Everybody, I have run into two strange problems using Zend_Mail (UTF-8) over SMTP transport. Both look like obvious bugs which seems quite unlikely... --- First one: $mail = new Zend_Mail('UTF-8'); $mail-setBodyText(Příliš žluťoučký kůň úpěl ďábelské ódy); The above email is received

[fw-general] Re: Zend_Mail (encoding) problem?

2010-10-14 Thread Marian Meres
Quick update: surprisingly, I found a bug on my end. For anyone interested: I was getting and manipulating body text (via $mail-getBodyText(true)) which I didn't realized was already encoded. So it ended up being encoded twice. Cheers, m. On Thu, Oct 14, 2010 at 5:12 PM, Marian Meres marian.me

Re: [fw-general] Zend_Test_PHPUnit_ControllerTestCase: asserting a checkbox is checked

2010-04-28 Thread Marian Meres
I confirm I had similar problems with css selectors. I didn't discover it deeply though, but used xpath assertion instead which worked as expected. m. On Tue, Apr 27, 2010 at 11:04 PM, Núria nuq...@gmail.com wrote: I'm afraid this is a bug. CSS selectors are converted to XPath queries before

Re: [fw-general] Zend_Validate_CreditCard and Authorize.Net's Sandbox API

2010-04-28 Thread Marian Meres
For others interested, below should be a more complete list of testing cc numbers for various providers: $_ccNums = array( // american express 'ae' = array('378282246310005', '371449635398431'), // american express corporate 'aec' = array('378734493671000'), // diners club

[fw-general] Zend_Test_PHPUnit_ControllerTestCase not throwing response exceptions?

2010-04-06 Thread Marian Meres
Hello Everyone, I'm playing with the Zend_Test_PHPUnit_ControllerTestCase and have run into a behavior which is somewhat different from what I'm used to with plain phpunit testing. This is what I have: class MyControllerTest extends Zend_Test_PHPUnit_ControllerTestCase { public function

[fw-general] Re: Zend_Test_PHPUnit_ControllerTestCase not throwing response exceptions?

2010-04-06 Thread Marian Meres
Just an answer to myself: yes, exceptions are not throwing, it is a feature. @see Zend_Test_PHPUnit_ControllerTestCase::dispatch() m. On Tue, Apr 6, 2010 at 5:06 PM, Marian Meres marian.me...@gmail.com wrote: Hello Everyone, I'm playing with the Zend_Test_PHPUnit_ControllerTestCase and have

Re: [fw-general] Remember me Zend_Auth cookie

2010-03-27 Thread Marian Meres
You may find this usefull: http://jaspan.com/improved_persistent_login_cookie_best_practice On Fri, Mar 26, 2010 at 2:50 PM, umpirsky umpir...@gmail.com wrote: I'm thinking, how to implement remember me in cookie zend style. I'm using Zend_Auth with Db_Table adapter. Maybe we can contribute

[fw-general] HTTP response code when not logged in

2010-03-19 Thread Marian Meres
Hello everyone, what kind of HTTP response codes would you suggest using when accessing a page which requires user to be logged in and there is no current identity present? Initially I thought about 401 Unauthorized, but the definition says: The response MUST include a WWW-Authenticate header

Re: [fw-general] Best practice to share identity map across mappers? Static registry?

2009-08-31 Thread Marian Meres
identity map. Is there a reason you don't want to go with a static identity map? -- Hector On Sun, Aug 30, 2009 at 10:32 AM, Marian Meres marian.me...@gmail.com wrote: Hello Benjamin, thank you... but either I can't follow, or I must not have described properly the question. Because I do

[fw-general] Best practice to share identity map across mappers? Static registry?

2009-08-30 Thread Marian Meres
Hi All, I have many domain models where each has its own data mapper. These mappers are spread across many places as a) services use mappers, b) mapper x uses mapper y, c) and even models use mappers (only in the case of lazy loading). I want mappers to utilize the identity map pattern (which is

Re: [fw-general] Best practice to share identity map across mappers? Static registry?

2009-08-30 Thread Marian Meres
Eberleikont...@beberlei.de wrote: hello, If you dont instantiate your mappers through a factory you probably will have lots of work to do if you dont make access to the identity map global via a static method. greetings, Benjamin On Sunday 30 August 2009 04:58:32 pm Marian Meres wrote: Hi All

Re: [fw-general] XSS Prevention with Zend Framework

2009-07-14 Thread Marian Meres
Hello, I guess Ondrej was just pointing out, that escaping itself is a little bit more complex than just htmlspecialchars-ing the data. And *automaticaly impossible* with default ZF view design (phtml templates) in a meaning that it still requires human to change the escaping method based on the

[fw-general] setFallbackAutoloader(true) causing module boostraps not load

2009-06-19 Thread Marian Meres
Hi, I ran into one issue with the setFallbackAutoloader(true). I have modular app with usual directory structure (via Zend_Tool), with module test. Test_Boostrap class is located as usual in modules/test/Bootstrap.php. Works perfect. But with the fallbackAutoloader enabled (snippets from

Re: [fw-general] setFallbackAutoloader(true) causing module boostraps not load

2009-06-19 Thread Marian Meres
Hello Matthew, On Fri, Jun 19, 2009 at 7:41 PM, Matthew Weier O'Phinneymatt...@zend.com wrote: -- Marian Meres marian.me...@gmail.com wrote (on Friday, 19 June 2009, 05:28 PM +0200): I ran into one issue with the setFallbackAutoloader(true). I have modular app with usual directory structure

[fw-general] Zend_File_Transfer question (concurrent uploads)

2008-10-17 Thread Marian Meres
Hi Everyone, I'm working on interface where users can upload basically any kind of attachment file. I was playing with the Zend_File_Transfer where I'm using one generic temp dir (via setDestination) to upload and once everything's valid I'm renaming the uploaded file to the proper dir. So