[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.

Re: [fw-general] Multiselect selected values

2009-10-28 Thread Hector Virgen
If you're using a regular select, the value you pass to setValue should be a single value (not an array). If you're using MultiSelect, then you need to pass in an array of values. -- Hector On Tue, Oct 27, 2009 at 8:41 AM, ajitk15 wrote: > > even i tried with Zend_Form_Element_Multiselect al

Re: [fw-general] Router Help?

2009-10-28 Thread prodigitalson
Well its going to fail over to the default module but i think by *BOTH* not specifying and not including it in the route pattern its not matching the route to the route you expect - its failing over to the default module route which assumes the pattern :module/:controller/:action/* Also, and this

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

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] 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' => '

[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',

[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

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

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 Ze

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? 1 2 3 Afaik, you can't, but there is really no need if you're going to give all your options the same class, you could simply give your selec

[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? 1 2 3 regards Anders

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

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() {

[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: ExtOnReady)) { echo << Ext.onReady(func

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 setMessage

[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 :| ho

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 wrote: > On Wed, Oct 28, 2009 at 2:29 PM, Shaun Farrell wrote: > >> Peter, >> >> Try this. It may work >> >> $indate = "Fri Oct 23 15:47:42 +

Re: [fw-general] Bug in Zend_Date

2009-10-28 Thread Peter Smit
On Wed, Oct 28, 2009 at 2:29 PM, Shaun Farrell 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); > $date->set($datetime)

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: " . $date-

[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

[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: alemany alemán German anglès inglés English And I would like to get all languages (for examp

[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 tha

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

2009-10-28 Thread Tim Fountain
2009/10/27 prodigitalson > > Im in the process of porting an existing application. Currently there are a > number of shell scripts written in a number of scripting languages. > Typically these can be considered "owned" by particular ZF modules within > the web application in that they supply supp

[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: toString($outformat) . "\n"; echo $date->toString($informat) . "\n"; Gives: Thursday 23 Oct Thu Oct 23 3:47:42 + This date format is common for the Twitter API. Is this a bug?

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] 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 Tablette