Re: [fw-general] Re: idea - Zend_Encoder

2010-04-06 Thread Justin Hart
Thanks. I will probably just make a blog post and post my code, and if folks want to use it they can. Looking through the Zend_Filter_Encrypt/Decrypt - it could do the same thing (though, it still feels odd to use it for character encoding type things). On Tue, Apr 6, 2010 at 1:31 PM, A.J. Brown

Re: [fw-general] Re: Unit testing Zend_Forms

2010-04-06 Thread A.J. Brown
You should only need to unit test your forms if they are adding functionality to Zend_Form. The built in Decorators, Filters, Validators, etc should already be tested. If you're using a custom Decorator, Filter, Validator, or View, you should test those separately from the form. With that said,

[fw-general] best way to extend Zend_Pdf_Page

2010-04-06 Thread Guillaume ORIOL
Hi, There have been many great evolutions in the Zend_Pdf package, and I would like the thank Alexander Veremyev for it, but some useful functions are still missing. To be more precise, I am talking about functions like: - drawXXX() with an additional parameter to specify the unit (may be this

Re: [fw-general] Re: idea - Zend_Encoder

2010-04-06 Thread A.J. Brown
I really like your implementation, but I'm not sure it belongs in the framework itself. As Matthew pointed out, it doesn't accomplish anything that can't already be done. It's definitely very convenient, though. On Tue, Apr 6, 2010 at 2:25 PM, OnyxRaven wrote: > > Yeah, I know Filters do alrea

[fw-general] Re: idea - Zend_Encoder

2010-04-06 Thread OnyxRaven
Yeah, I know Filters do already accomplish most of this - the idea here was to 'formalize' the symmetric operation of two filters like urlencode/urldecode, etc. An Encode could easily be composed of Filter objects (in fact I have a Zend_Encoder_Filter class that takes in the encode and decode Fil

[fw-general] Re: Unit testing Zend_Forms

2010-04-06 Thread dmitrybelyakov
Hi, Steve. I just wonder if you have found any good ways of testing Zend_Form classes? Dmitry. -- View this message in context: http://n4.nabble.com/Unit-testing-Zend-Forms-tp999542p1753068.html Sent from the Zend Framework mailing list archive at Nabble.com.

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

2010-04-06 Thread Hector Virgen
There's an open bug for this, and it seems a patch was provided to add a second argument to dispatch() that would allow you to specify if exceptions should be thrown. http://framework.zend.com/issues/browse/ZF-5721 But it seems the current workaround would be to pull the exception from the respon

[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 wrote: > Hello Everyone, > > I'm playing with the Zend_Test_PHPUnit_ControllerTestCase and have run > into a behavio

Re: [fw-general] formatting data for merging into LiveDocx

2010-04-06 Thread Guillaume ORIOL
Sorry for the misunderstanding: I was not talking about the way to align values visually in the template. When I fetch the values from the database, the decimal separator is a dot. As the software I am working on is in french, I must accomodate french locale, which implies to convert the decimal

[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 te

Re: [fw-general] formatting data for merging into LiveDocx

2010-04-06 Thread Jonathan Maron
Hello Guillaume In such cases, I would suggest using a table (without or without cell borders). You would use one row per sub-array in $data. For a very similar example to what you are trying to achieve, please take a look at http://is.gd/bgCNi, section "Assigning compound data types in LiveDocx

[fw-general] formatting data for merging into LiveDocx

2010-04-06 Thread Guillaume ORIOL
Hi, I am working on LiveDocx document generation. When dealing with arrays, it is sometimes necessary to format the data to be printed. For instance, consider this data: $data = array( 0 => array( 'title' => 'item 1', 'width' => 65.00, 'height' => 54.00, 'purchase_price' => 29

[fw-general] Re: Add json context to all actions

2010-04-06 Thread gelform
Thanks, Hector! On Mon, Apr 5, 2010 at 5:40 PM, Hector Virgen [via Zend Framework Community] > wrote: > No, currently you must specify each action manually. However, you can > extend the contextSwitch or ajaxContext helper to support this feature. Take > a look at the "hasActionContext()" metho

Re: [fw-general] compressing blank lines in Zend_Service_LiveDocx

2010-04-06 Thread Guillaume ORIOL
Thank you for your answer, Jonathan. I'll do it the way you suggest... until you can implement a definitive solution in the Zend service :-) I guess they do not interpret the template markup, as I tried with the following workaround for Word, but it did not work: { IF { MERGEFIELD address_1 }

[fw-general] Re: How do you translate javascript files?

2010-04-06 Thread umpirsky
If thats good enough for jQuery... :) Regards, Saša Stamenković On Tue, Apr 6, 2010 at 4:08 PM, Eugen_cro [via Zend Framework Community] < ml-node+1752864-2108750911-51...@n4.nabble.com > wrote: > I prefer external js files which are the loaded depending on language.. ofc > that complicates tr

[fw-general] Re: How do you translate javascript files?

2010-04-06 Thread Eugen_cro
I prefer external js files which are the loaded depending on language.. ofc that complicates translation for end users, but even that can be done with some nice gui :) -- View this message in context: http://n4.nabble.com/How-do-you-translate-javascript-files-tp1748547p1752864.html Sent from the

Re: [fw-general] compressing blank lines in Zend_Service_LiveDocx

2010-04-06 Thread Jonathan Maron
Hello again Guillaume I have just got word back from the template specialists. > When an address line is empty, how can I tell LiveDocx no to print the > entire line, including the ? Unfortunately, they confirmed exactly what I originally thought: Currently, this is not directly supported. Howev

Re: [fw-general] Re: [Zend_Form] Custom element prefix path

2010-04-06 Thread Christian Albrecht
The order does not matter, if you want to set prefixPath for the whole form $options = array('prefixPath' => …); just for Elements on the Form $options = array('elementPrefixPath' => …); as i said, have a look at …/Zend/Form.php method setOptions() which is called on construction of a form and red

[fw-general] Re: [Zend_Form] Custom element prefix path

2010-04-06 Thread Dennis Winter
I just have done so! But nothing happened.. Only the prefixes "Zend_Form_Element_" and "Zend_Dojo_Form_Element_" is taken.. How and where i'll have to set prefixPath in this array? Is it possible, that i have to set it at the beginning of the subform section?

Re: [fw-general] [Zend_Form] Custom element prefix path

2010-04-06 Thread Christian Albrecht
Hi, look at setOptions() within …/Zend/Form.php it is 'prefixPath' and 'elementPrefixPath' Greetings, Christian > Hello, > > I'm trying to generate a form with subforms from a Zend_Config object! > > My Problem is, that i have to set a prefix path for custom elements and > decorators! > > I've t

Re: [fw-general] compressing blank lines in Zend_Service_LiveDocx

2010-04-06 Thread Jonathan Maron
Hello Guillaume I am happy to hear that you like Zend_Service_LiveDocx. > When an address line is empty, how can I tell LiveDocx no to print the > entire line, including the ? I am currently conferring with the LiveDocx template specialists about this and will get back to you ASAP. Best regards

Re: [fw-general] idea - Zend_Encoder

2010-04-06 Thread Matthew Weier O'Phinney
-- Hector Virgen wrote (on Monday, 05 April 2010, 04:27 PM -0700): > This sounds like a really good idea! But I'm not too sure about the namespace > "Encode". Do you think there might be more opportunities for two-way > transformation besides just encoding? I'm thinking gzip/deflate, encrypt/ > de

[fw-general] compressing blank lines in Zend_Service_LiveDocx

2010-04-06 Thread Guillaume ORIOL
Hi, Zend_Service_LiveDocx is a great Zend component! Many thanks to the contributors of this new service. I tried it this week-end and was able to produce DOC and PDF document really fast with the MailMerge class. The only thing I was not able to do was compressing blank lines. Let me explain

Re: [fw-general] setElementFilters problem

2010-04-06 Thread scs
Nope. no construct method but an init method. Shall I call parent::__construct method after the settings? or shall I add a construct method? Thanks On Tue, Apr 6, 2010 at 11:23 AM, Christian Albrecht wrote: > Hi, > Does Foo have its own __construct() method? > Greetings, > Christian >> Hello, >>

Re: [fw-general] setElementFilters problem

2010-04-06 Thread Christian Albrecht
Hi, Does Foo have its own __construct() method? Greetings, Christian > Hello, > I have a common form class extended from Zend_Form: > class Default_Form_Common extends Zend_Form > > In function init() {} > I use > $this->setElementFilters(array('StringTrim', 'HtmlEntities')); > to set trim and htm