So here's my code:
Zend_Service_Amazon_Ec2_Ebs::setRegion('us-east-1');
$ec2Instance = new Zend_Service_Amazon_Ec2_Instance('Access Key ID',
'Secret Access Key');
$return = $ec2Instance-run(
array(
'imageId'
hallo everyone,
i am having some trouble getting my results in the right order.
my query is:
( title:WOBENZYM~0.6 OR title:100~0.6 )
and these are my results (score in brackets):
#01 Wobenzym P 100 Stück [1]
#02 WOBENZYM mono Tabletten magensaftresistent [0.875]
#03 WOBENZYM mono
so here are my results with my special stripped title without any special
chars:
query: ( stitle:WOBENZYM AND stitle:100 )
#01 Wobenzym P 100 Stück [0.866468607375]
#02 WOBENZYM mono Tabletten magensaftresistent [0.758160031454]
#03 WOBENZYM mono Tabletten magensaftresistent [0.758160031454]
It seems that Zend_Date does not parse a date well when the year comes after
the timezone.
Example code:
?php
date_default_timezone_set('Europe/Helsinki');
set_include_path('/home/peter/Desktop/ZendFramework-1.9.3PL1/library' .
PATH_SEPARATOR . get_include_path());
hi all,
I hope u all enjoying happy lives. my problem is that I want to upload
images to a specific folder n for uniqueness of image name i append time()
with image name. and these images are related to different gadgets. when I
want to edit the gadget and change its image then older image for
Hi,
Is there an easy way for doing a search in an XML file?
I have an TMX file with a language list:
?xml version=1.0 ?
tmx version=1.4
header creationtool=hand made
creationtoolversion=1.0.0
datatype=winres
segtype=sentence
Hi,
I noticed a weird problem with Zend_Dojo_Form and would like to know if
others have similar problems.
I have a Zend_Dojo_Form with a couple of elements. Some of them are set
to be required. When I want to send this form it does not work until all
the required fields are filled with data. The
Peter,
Try this. It may work
$indate = Fri Oct 23 15:47:42 + 2009;
$outformat = d MMM ;
$date = new Zend_Date();
$date-setTimezone('Europe/Helsinki');
$datetime = strtotime($indate);
$date-set($datetime);
echo Date: . $date-toString($outformat);
echo TimeZone: .
On Wed, Oct 28, 2009 at 2:29 PM, Shaun Farrell farrel...@gmail.com wrote:
Peter,
Try this. It may work
$indate = Fri Oct 23 15:47:42 + 2009;
$outformat = d MMM ;
$date = new Zend_Date();
$date-setTimezone('Europe/Helsinki');
$datetime = strtotime($indate);
Did you try $date-getTimestamp(); That may work but I'm not sure if it
will read the year correctly.
On Wed, Oct 28, 2009 at 8:37 AM, Peter Smit pe...@smitmail.eu wrote:
On Wed, Oct 28, 2009 at 2:29 PM, Shaun Farrell farrel...@gmail.comwrote:
Peter,
Try this. It may work
$indate = Fri
Hey.
I'm using the default ErrorController from Zend_Tool, so, when an
error is thrown setHttpResponseCode sets an error 500, how can I catch
the exception message on javascript? how can I set the exception
message into the response object? there's not setMessage method in
Zend_Http_Response :|
Juan Felipe Alvarez Saldarriaga wrote:
I'm using the default ErrorController from Zend_Tool, so, when an
error is thrown setHttpResponseCode sets an error 500, how can I catch
the exception message on javascript? how can I set the exception
message into the response object? there's not
Hi,
I am generating javascript code for form elements in custom decorators.
As opposed to normal decorator functionality the generated code should not
go within the form but to the final view rendered.
This is how I am outputting this in the view script:
? if (!empty($this-ExtOnReady)) {
echo
If you send header HTTP code 500 from your controller
$this-getResponse()-setHttpResponseCode(500);
you can catch it in your javascript with
$.ajax({
type: 'POST',
url: '/c/a',
data: $('#form').serialize(),
dataType: 'html',
success: function(response) {
// success code
},
error: function() {
Tim Fountain wrote:
* I've had to add my application's model/library directories to my local
PHP
CLI php.ini include_path, so that ZF can find my provider classes. This is
not very portable.
Is there a reason youre not setting this in the shell profile via
ZEND_TOOL_INCLUDE_PATH or
Hi
I'm creating a select box, and adding the options using addMultiOptions.
How can I set CSS Class to the option-tags?
select
option class=myClass value=11/option
option class=myClass value=22/option
option class=myClass value=33/option
/select
regards
Anders
Anders Gunnarsson wrote:
I'm creating a select box, and adding the options using
addMultiOptions.
How can I set CSS Class to the option-tags?
select
option class=myClass value=11/option
option class=myClass value=22/option
option class=myClass value=33/option
/select
Afaik, you can't,
I would also like to see a good example of this.
Do your CLI scripts require authentication or ACL support? If so, are you
handling that as well?
- Steve W.
So i think the crux of this for me is that Im thinking there has to be a
good way to leverage the functionality of the normal
Do your CLI scripts require authentication or ACL support? If so, are you
handling that as well?
Mine do not. I ma only using ACL for user based operations through the
webapp. My scripts only server to update certain tables in my DB with the
latest information from the real data source or to
Hi, does everyone has any experience on using ZF with any of the
interactive console?
I tested some of the most populars:
- plain php -a
- phpsh, a Python iplementation open sourced by Facebook: http://www.phpsh.org/
- PHP-Shell, my favourite, which is the only one capable of handling
fatal
Hello,
I am trying to get some routes to work and having some troubles
I have a couple routes defined like:
$router-addRoute(
'index',
new Zend_Controller_Router_Route(
'/:city/:state/:keyword/',
array('controller' = 'index',
Try adding the module to your default paramters:
$router-addRoute(
'index',
new Zend_Controller_Router_Route(
'/:city/:state/:keyword/',
array('controller' = 'index',
'action' = 'index',
'module' =
Hi,
Thanks for the reply as you can see in the request params it figures out
the right module. It really goofs up the controller and action though.
Request Parameters:
array (
'controller' = 'elgin',
'action' = 'il',
'garage' = 'index',
'module' = 'default',
)
Well i havent used Zend_Dom either but i assume its using SimpleXml for its
underlying functionality. If this is indeed the case im thinking that maybe
its the namespace... try removing the xml namespace prefix from your xpath
string. I know simpleXML requires a fully expanded prefix when using
Hi folks,
I am having a problem using Zend_Session in my app. Using ZF version 1.9.1
I am using the following code to set a members data in session for a period
of 2 hrs after successful login
Zend_Session::rememberMe(60*60*2);
However, the session goes out in merely 5 -10 mins.
25 matches
Mail list logo