[fw-general] Handling query string params within ZF2

2013-05-21 Thread Václav Vaník
Hi, what is the best practise for handling query string params? In ZF1 I have filter form, submit with POST, then redirect with GET and final URL is something like: /product/index/fPriceFrom/0/fPriceTo/100 select product where price is between 0 and 100. With magic default route, it was easy. I

[fw-general] Re: Zend_Payment proposal ready for review

2010-09-14 Thread Václav Vaník
Hi Dmitriy, one note/idea to "services": UC-02 - Create merchant instance $merchant = new Zend_Payment_Authorizenet_Merchant('API Login ID', 'Transaction Key'); I think constructor parameter should be array | Zend_Config :) It's more programmer friendly because of settings in application.ini

[fw-general] Re: Zend_Translate with TMX: what's the proper usage?

2010-02-08 Thread Václav Vaník
Tuids are IMHO something like id in XHTML, no spaces etc... -- View this message in context: http://n4.nabble.com/Zend-Translate-with-TMX-what-s-the-proper-usage-tp1471388p1473559.html Sent from the Zend Framework mailing list archive at Nabble.com.

Re: [fw-general] SubForm and Element::getId()

2009-09-16 Thread Václav Vaník
create new method: eg. getFullyQualifiedId() Jurian Sluiman wrote: > > Op Thursday 10 September 2009 11:42:05 schreef Václav Vaník: >> Hi, >> >> I see now, if I have an element in subform (ZF 1.9.2), getId() method >> returns only partial id, it means id is not in

[fw-general] SubForm and Element::getId()

2009-09-10 Thread Václav Vaník
Hi, I see now, if I have an element in subform (ZF 1.9.2), getId() method returns only partial id, it means id is not in subformName-elementName style. In 1.8.2 version is id correct. Is it a bug or new feature? -- View this message in context: http://www.nabble.com/SubForm-and-Element%3A%3Age

Re: [fw-general] Bootstrap and modules again

2009-07-06 Thread Václav Vaník
keith Pope-4 wrote: > > > I think you may need to put an empty module bootstrap in your admin > module: > -- modules -- admin -- controllers -- views > Bootstrap.php -- other-module > Thx, my problem was that i had class Admin_Boostr

Re: [fw-general] Bootstrap and modules again

2009-07-04 Thread Václav Vaník
keith Pope-4 wrote: > > 2009/7/4 Václav Vaník : >> >> Hi guys, >> >> i have suffering with modules setup in application.ini and Bootstrap.php >> file >> >> I tried Google, Nabble, manual, source codes... and nothing :( >> >&g

[fw-general] Bootstrap and modules again

2009-07-04 Thread Václav Vaník
Hi guys, i have suffering with modules setup in application.ini and Bootstrap.php file I tried Google, Nabble, manual, source codes... and nothing :( This is my app structure: application -- configs -- application.ini -- controllers -- IndexController.php -- models -- modules -- a

Re: [fw-general] [OT] Image processing

2009-01-20 Thread Václav Vaník
Łukasz Wojciechowski-3 wrote: > > Since there is no class in ZF for image processing and I know for sure > that here are really experienced developer may I ask what (if any) > image processing (resizing, cropping, watermarks etc) library are you > using. > > I'm sorry for offtopic, I just can'

Re: [fw-general] How to render formSubmit element without name attrib?

2009-01-12 Thread Václav Vaník
Damn, you are right ;-) Thx. PHPScriptor wrote: > > Don't think you can. Unles you write your own Zend View Submit. And remove > the name attrib. > > class Zend_View_Helper_FormSubmit extends Zend_View_Helper_FormElement > { > public function formSubmit($name, $value = null, $attribs = nul

Re: [fw-general] How to render formSubmit element without name attrib?

2009-01-12 Thread Václav Vaník
rs(array('ViewHelper', 'Errors', 'Label')) ->setDecorators(array('FormElements', array('HtmlTag', array('tag' => 'div')), 'Form')); $submit->setDecorators(array('ViewHelper')); } }

[fw-general] How to render formSubmit element without name attrib?

2009-01-12 Thread Václav Vaník
Any idea? Thx. -- View this message in context: http://www.nabble.com/How-to-render-formSubmit-element-without-name-attrib--tp21411694p21411694.html Sent from the Zend Framework mailing list archive at Nabble.com.

[fw-general] How to add code to Zend Form?

2008-08-12 Thread Václav Vaník
Hi, I am quiet lost in Zend_Form :/ I have defined Zend_Form instance: $form = new Zend_Form(); ... ... creating some elements ... ... //adding elements to form $form->addElement($username) ->addElement($password) ->addElement($submit); And my question is, how could I add

[fw-general] Unable to translate correct Barcode error message

2008-08-11 Thread Václav Vaník
Hi, I think I found a bug in Zend_Validate_Barcode_UpcA and Zend_Validate_Barcode_Ean13. These validators have same constant value for error messages: class Zend_Validate_Barcode_UpcA .. protected $_messageTemplates = array( self::INVALID=> "'%value%' is an invalid UPC-A bar

[fw-general] Inserting navigation

2008-02-18 Thread Václav Vaník
Hail to you ZF geeks :) I have joined the "rewrite your cms to zf" fever :) My question is: What is the best practise to insert navigation boxes into layout? My requirements are: Zend_Layout Navigation(s) are saved in XML file(s) Output is solved through XSLT What is the best solution? view h

Re: [fw-general] Passing parameters to view helper's constructor?

2007-11-29 Thread Václav Vaník
Nogyara wrote: > > Hi guys, > just a quick question, how can someone set parameters for view helper's > constructor? > > It seems, it is possible, according to this post > (http://www.nabble.com/Set-View-Helper-Options-%28formTextarea%29-tf4475302s16154.html#a12760567) > but I can't figure out

Re: [fw-general] Zend_Cache and file permissions

2007-11-29 Thread Václav Vaník
les, but at present the permissions are too restrictive. I > couldn't find this setting in the manual. > > Thanks, > -- > Jack > > Hi, imho it depends on settings of your webhoster ;-) Václav Vaník, www.walk.cz -- View this message in context: http://www.nabble.co

Re: [fw-general] How to validate array of checkboxes?

2007-10-30 Thread Václav Vaník
Well, I found solution $validators = array( 'se' => array($vNotEmpty, 'fields' => array('se', 'se')) ); $filterInput = new Zend_Filter_Input($filters, $validators); $filterInput->setData($this->_request->getPost()); where $vNotEmpty is instance of my own validator (inherited ze

[fw-general] How to validate array of checkboxes?

2007-10-29 Thread Václav Vaník
Hi Zend fans :) I have tried to solve validating array of checkboxes: This is part of my form (generated by formCheckbox Helper): Google Seznam I don't know how to check (with Zend_Filter_Input) if at least one checkbox is checked $validators = $filte