[fw-general] Pls help with unwanted quotes in db-queries

2013-04-19 Thread GJ Bogaerts
Hello all, I'm having some trouble removing quotes from certain parts of my db-queries. For instance, this is part of a select()-statement: $select-join(array('m' = 'media'), m.foreignKey = p.id and m.belongsTo='product', array('mediaType', 'media' = $paths), $select::JOIN_LEFT); The on-part of

[fw-general] Re: Pls help with unwanted quotes in db-queries

2013-04-19 Thread GJ Bogaerts
Thank you, I will look into those examples. ralphschindler wrote And on a related issue: In Zf1 you were able to provide a data-type with any query-part, so you were able to actually use optimal data-types for your database (i.e. an int was treated as int). Now even an int gets quoted,

[fw-general] Re: Pls help with unwanted quotes in db-queries

2013-04-19 Thread GJ Bogaerts
Well, it might be a misconception on my part; however there's this in the mysql docs: https://dev.mysql.com/doc/refman/5.5/en/optimize-numeric.html and there's this thread on stackoverflow: http://stackoverflow.com/questions/4918512/disadvantages-of-quoting-integers-in-a-mysql-query So the deal

[fw-general] Re: Pls help with unwanted quotes in db-queries

2013-04-19 Thread GJ Bogaerts
I think it does. Thank you so much! GJ -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/Pls-help-with-unwanted-quotes-in-db-queries-tp4659783p4659793.html Sent from the Zend Framework mailing list archive at Nabble.com. -- List: fw-general@lists.zend.com

[fw-general] Caching xml files with Zend_Cache

2009-10-06 Thread GJ Bogaerts
Hi all, I'm having trouble figuring out how to cache a config.xml for my ZF application. I should use 'File' as the frontend, but how do I pass the environment variable to the cache? Should I be using different XML configuration files in order to accomodate either my development, testing and

Re: [fw-general] Caching xml files with Zend_Cache

2009-10-06 Thread GJ Bogaerts
(); $cache = Zend_Cache::factory('File', 'Memcached', $frontend, $backend); if (! ($config = $cache-load('configXml'))) { $config = new Zend_Config_Xml($configPath, $this-_env); $cache-save($config, 'configXml'); } GJ Bogaerts wrote: Hi all, I'm having

[fw-general] custom form captcha problem

2009-06-25 Thread GJ Bogaerts
Hi all, I try to implement a custom captcha element: the user sees a number spelled out (ie 'twenty' and is supposed to give the numerical equivalent: 20). If he passes that test, he is supposed to be human. This is the code for my custom element: ?php class Elements_Randcap extends

[fw-general] Best architecture for Zend_Form

2009-01-19 Thread GJ Bogaerts
Hi all, I have a controller which sets up (amends) a form, which is a subclass of Zend_Form: mainly the controller sets some values and it removes or adds some elements, depending on whether or not the user is logged in. This is the code that sets up the form: $form = new

Re: [fw-general] Best architecture for Zend_Form

2009-01-19 Thread GJ Bogaerts
Mark Wright-3 wrote: I would recommend storing it in the registry, unless you have reasons to tether it to the controller. Well, that was my initial idea as well, but I can't seem to get the registry to remember the form instance. When I set it in the initial controller and I do a

[fw-general] image quality in zend_pdf

2008-10-07 Thread GJ Bogaerts
Hi all, this is my code to insert an image in a pdf: $this-_page1-drawImage($headerImg,$xh1,$yh1,$xh2,$yh2); $this-_page1-drawImage($footerImg,$xf1,$yf1,$xf2,$yf2); $this-_page2-drawImage($boxImg,$xb1, $yb1,$xb2,$yb2); However, while the quality

[fw-general] Zend_Form_Element_Captcha decorator

2008-09-04 Thread GJ Bogaerts
Hi all I have this code in my form: $this-addElement('Captcha', 'captcha', array('label'='Bestrijd spam','captcha'=array('captcha'='Dumb','wordLen'=6))); $this-getElement('captcha')-addDecorator('HtmlTag',array('tag'='li'));

Re: [fw-general] Zend_Form_Element_Captcha decorator

2008-09-04 Thread GJ Bogaerts
Thanks for the link, but sorry, that doesn't help me very much. The point is that I can't find the name of the variable that sets this part of the message. I've searched the docs for it, but... that doesn't help me Michel Morelli wrote: GJ Bogaerts ha scritto: Hi all I have this code

Re: [fw-general] Zend_Form_Element_Captcha decorator

2008-09-04 Thread GJ Bogaerts
Hi Michel thanks that did it for me. I couldn't find this phrase... GJ Michel Morelli wrote: The phrase Please type this word backwards is here: Captcha/Dump.php and the function is: public function render(Zend_View $view, $element = null) { return 'Please type this