[fw-general] Zend Server, Zend Optimizer, PHP6, and APC

2011-04-18 Thread Simon Walter
After discussing a bit about Zend Server, I'm particularly interested in what will happen to the product after the release of PHP6. Perhaps that is so far off, that there is no use thinking about it. APC is supposed to be integrated in the PHP core. Where does that put Zend Optimizer WRT Zend

[fw-general] smtp - Zend_mail 5.7.4 Unrecognized authentication type

2011-04-18 Thread Serkan Temizel
Hi, I am trying to sen mail via Zend_Mail_Transport_Smtp but what ever I tried I could not make it work. With following configuration it returns 5*.7.4 Unrecognized authentication type *error $mailConfig = array ( 'auth' = 'login' 'username' = $user,

[fw-general] Extending Doctrine entities using Zend_* an My_* library

2011-04-18 Thread tridem-zend
I am switching from Zend_Db (including mappers and DbTable) to Doctrine 2.0. My former directory strucure was: /application/ /application/models/ /application/models/DbTable /application/models/mappers So far so good I created my models from database including all relations. I still have a copy

Re: [fw-general] Extending Doctrine entities using Zend_* an My_* library

2011-04-18 Thread Marco Pivetta
a) what kind of autoloader are you using? Did you register all namespaces? I'm currently using the standard Zend_Loader_Autoloader from ZF 1.X and it works fine with Doctrine2 (no need for Doctrine Common autoloader). b) As I see you're trying to load stuff like \Zend\Date();. ZF 1.X doesn't use

[fw-general] Re: Extending Doctrine entities using Zend_* an My_* library

2011-04-18 Thread tridem-zend
Thanks Marco, now I understand namespaces a little bit more and my toDojoArray method works now. Since the getInsertDatetime returns a Doctrine DateTime object I had to format it. The \Zend_Date works fine now too. public function toDojoArray() { $creationDate = (!null ==

Re: [fw-general] Re: Extending Doctrine entities using Zend_* an My_* library

2011-04-18 Thread Marco Pivetta
If you're using the standard Zend_Application stack (and it's autoloader) I suggest you to drop the Doctrine autoloader and keep Zend's default... Much less confusing :) Check this Gist, it's the (not really clean) resource I use to startup a Doctrine2 EntityManager: https://gist.github.com/925033

[fw-general] Re: Extending Doctrine entities using Zend_* an My_* library

2011-04-18 Thread tridem-zend
You were right, removing the loaders made it less confusing. I finally managed to extend my abstract class. I accidentally used namespaces there too though ZF does not support them. I will now copy my business logic from my earlier models to the entities and then rename 'Entities' to

[fw-general] Zend_Validate_Barcode - Unable to instanciate with custom adapter

2011-04-18 Thread Martin Carpentier
Hi all, Unless I'm doing something wrong, I think I found a bug in the setAdapter() method of Zend_Validate_Barcode. Following the documentation, I defined a custom barcode validation adapter: class My_Barcode_MyBar extends Zend_Validate_Barcode_AdapterAbstract { protected $_length =

Re: [fw-general] ZF API documentation

2011-04-18 Thread Matthew Weier O'Phinney
-- Jawad Stouli jawad.sto...@gmail.com wrote (on Saturday, 16 April 2011, 06:06 PM +0200): Good to see that those small issues hiding the good work are to be resolved ! I would like to add three other suggestions : 1. Left frame : the classes are not alphabetically ordered (for instance in

Re: [fw-general] Zend Server, Zend Optimizer, PHP6, and APC

2011-04-18 Thread Matthew Weier O'Phinney
-- Simon Walter si...@gikaku.com wrote (on Monday, 18 April 2011, 03:27 PM +0900): After discussing a bit about Zend Server, I'm particularly interested in what will happen to the product after the release of PHP6. Perhaps that is so far off, that there is no use thinking about it. PHP6 in

Re: [fw-general] smtp - Zend_mail 5.7.4 Unrecognized authentication type

2011-04-18 Thread Matthew Weier O'Phinney
-- Serkan Temizel serkantemi...@gmail.com wrote (on Monday, 18 April 2011, 10:47 AM +0300): I am trying to sen mail via Zend_Mail_Transport_Smtp but what ever I tried I could not make it work. With following configuration it returns 5*.7.4 Unrecognized authentication type *error

Re: [fw-general] Re: Extending Doctrine entities using Zend_* an My_* library

2011-04-18 Thread Matthew Weier O'Phinney
-- tridem-zend nabble-z...@tridem.de wrote (on Monday, 18 April 2011, 04:07 AM -0700): You were right, removing the loaders made it less confusing. I finally managed to extend my abstract class. I accidentally used namespaces there too though ZF does not support them. Correction: ZF 1.X simply

[fw-general] Displaying data in table with select element in each row - how?

2011-04-18 Thread tonystamp
Hi I'm scratching my head on how to create a table with a checkbox at the end of each row, with only one submit button at the bottom of the table. The use case is a table of data with a checkbox for a mass operation (delete) on multiple rows. But i can't seem to figure out how to have the whole

Re: [fw-general] Re: Extending Doctrine entities using Zend_* an My_* library

2011-04-18 Thread A.J. Brown
Hey Matthew, The Zend Framework Autoloader appears to support namespaces for the most part. I'm using them just fine in my projects. The only exception I've discovered so far is bootstrap resources, which must follow the old PEAR style namespacing (vendor prefixing). The documentation claims

Re: [fw-general] Re: Extending Doctrine entities using Zend_* an My_* library

2011-04-18 Thread Marco Pivetta
Yep, that's the same for me as I use XML config, and that's a trouble if I want to use some resources from My\Personal\Library like My\Personal\Library\Super\Resource/ (obviously won't work) :\ It's not an issue of the autoloader anyway, it's about resources bootstrapping and loading... Marco

Re: [fw-general] Displaying data in table with select element in each row - how?

2011-04-18 Thread Hector Virgen
You probably don't need Zend_Form for this since you most likely won't be using element-level validators/filters. So I'd stick to a regular view script and use the formCheckbox/formSubmit view helpers. -- *Hector Virgen* Sr. Web Developer http://www.virgentech.com

Re: [fw-general] Zend Server, Zend Optimizer, PHP6, and APC

2011-04-18 Thread Simon Walter
On 18/04/2011 23:04, Matthew Weier O'Phinney wrote: -- Simon Waltersi...@gikaku.com wrote (on Monday, 18 April 2011, 03:27 PM +0900): After discussing a bit about Zend Server, I'm particularly interested in what will happen to the product after the release of PHP6. Perhaps that is so far off,