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.
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
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
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,
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',
)
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' => '
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',
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
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
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
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
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
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
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() {
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
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
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
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 +
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)
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-
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
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
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
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
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?
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]
#
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
27 matches
Mail list logo