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
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,
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
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
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
();
$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
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
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
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
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
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'));
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
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
13 matches
Mail list logo