[fw-general] issue with keys in Zend_Service_Amazon_Ec2_Instance

2009-10-28 Thread Mark Wright
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'

[fw-general] understanding lucene score, kind of weird results, explain class available?

2009-10-28 Thread kampfhering
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

Re: [fw-general] understanding lucene score, kind of weird results, explain class available?

2009-10-28 Thread kampfhering
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]

[fw-general] Bug in Zend_Date

2009-10-28 Thread Peter Smit
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());

[fw-general] image upload problem

2009-10-28 Thread attractive eyes
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

[fw-general] Problems using Zend_Dom

2009-10-28 Thread oportell
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

[fw-general] Zend_Dojo_Form with required elements cannot be sent when invalid

2009-10-28 Thread Ralf Eggert
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

Re: [fw-general] Bug in Zend_Date

2009-10-28 Thread Shaun Farrell
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: .

Re: [fw-general] Bug in Zend_Date

2009-10-28 Thread Peter Smit
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);

Re: [fw-general] Bug in Zend_Date

2009-10-28 Thread Shaun Farrell
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

[fw-general] How to display errors when an ajax request fail?

2009-10-28 Thread Juan Felipe Alvarez Saldarriaga
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 :|

Re: [fw-general] How to display errors when an ajax request fail?

2009-10-28 Thread drm
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

[fw-general] passing values to view from decorators

2009-10-28 Thread Ralikwen
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

Re: [fw-general] How to display errors when an ajax request fail?

2009-10-28 Thread Саша Стаменковић
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() {

Re: [fw-general] Creating CLI scripts utilizing ZF

2009-10-28 Thread prodigitalson
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

[fw-general] css class to option tags

2009-10-28 Thread Anders Gunnarsson
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

Re: [fw-general] css class to option tags

2009-10-28 Thread drm
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,

Re: [fw-general] Creating CLI scripts utilizing ZF

2009-10-28 Thread swilhelm
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

Re: [fw-general] Creating CLI scripts utilizing ZF

2009-10-28 Thread prodigitalson
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

[fw-general] Using Zend Framework with interactive consoles

2009-10-28 Thread Jules Piccotti
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

[fw-general] Router Help?

2009-10-28 Thread Tom Printy
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',

Re: [fw-general] Router Help?

2009-10-28 Thread prodigitalson
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' =

Re: [fw-general] Router Help?

2009-10-28 Thread Tom Printy
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', )

Re: [fw-general] Problems using Zend_Dom

2009-10-28 Thread prodigitalson
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

[fw-general] Zend_Session problem

2009-10-28 Thread Vibhor Singh
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.