Thx Ralph & Juan
Shortly after I posted this I found
$this->_helper->redirector('index',
$auth->getInstance()->getIdentity()->type);
This fixed my issue
Eric Haskins
>
> We bumped the minimum supported PHP version to 5.2.4 for ZF >= 1.7.0.
>
> --
> Matthew Weier O'Phinney
> Software Architect | matt...@zend.com
> Zend Framework | http://framework.zend.com/
>
>
Further to my earlier messages, I find that with ZF 1.6.2 (from
http://framew
In this case instead of $this->_forward(), perhaps try a redirect:
$this->_redirect(/admin/index¹);
return;
There are also a number of other ways to "redirect":
http://framework.zend.com/manual/en/zend.controller.actionhelpers.html
Search for "redirector".
-ralph
On 1/6/09 8:00 PM, "Eric Ha
For utility functions that are used by actions, you may want to create
http://devzone.zend.com/article/3350-Action-Helpers-in-Zend-Framework Action
Helpers .
- Steve W.
Guillaume BABIK wrote:
>
> Hi,
>
>
>
> I've got a script which generate a group of directories from a name file
>
> Ex:
I have a loginController and after a user passes auth it uses
$this->_forward('index','index','admin');
Problem is there is a table on that page with pagination when a user clicks
next it errors because the url is still domain.com/login/login/ in the url
box. If I manually type /admin/index
Patrick Lorber wrote:
>
> Hi all,
>
> I have a form that collects billing and shipping information. I want to
> be able to control whether or not the shipping information is required
> based on a same as shipping checkbox element. I have written a validator
> using the $context array to chec
-- Chris MacPherson wrote
(on Tuesday, 06 January 2009, 09:10 PM +):
> After watching Matthew's great webinar on Dojo integration with ZF I
> have been creating some forms and the such to see what I can do. I am
> currently trying to implement the dojox.grid.Grid and while fighting my
>
Jan Pieper wrote:
From j...@localhost.localdomain Sat Jan 6 13:55:41 2009
Return-Path:
To: j...@localhost.localdomain
Subject: Testmail
From: j...@localhost.localdomain
Date: Sat, 06 Jan 2009 13:55:40 +0100
Content-Type: multipart/mixed; charset="utf-8";
boundary="=_1f37c4c6837f0c1cbc45a73c7af
On Tuesday 06 January 2009 19:29:39 Matthew Weier O'Phinney wrote:
> The problem with having discussions for such projects on the regular
> mailing lists is that you get either an overwhelming amount of feedback,
> or you get none at all. It's often more efficient to identify a subgroup
> of dedica
Hi guys,
I am using Zend_Mail_Storage_Mbox to read mails from mbox but it seems to me
that I cannot get all parts. I sent an example mail with text (text/plain), html
(text/html) and an attached (image/png) inline part. I've attached the mbox to
this email (mbox.txt).
require_once 'Zend/Mail/Stor
I checked the zend code. The problem sits here:
Data.php
(line 2776 function private function _time)
$parsed = Zend_Locale_Format::getTime($time, array('date_format' => $format,
'locale' => $locale, 'format_type' => 'iso'));
you get back an array with $parsed['hour']=01 and $parsed['minute']=3
Hi,
After watching Matthew's great webinar on Dojo integration with ZF I
have been creating some forms and the such to see what I can do. I am
currently trying to implement the dojox.grid.Grid and while fighting my
way through various documentation and examples it seems to me that a new
versi
Yeah, I figured I could do that if I exhausted all my other options, I
was hoping there would be a cleaner solution though. I'd like to not
massage the time like that if I can avoid it.
Thanks for the tip though.
Tim
On Tue, Jan 6, 2009 at 1:55 PM, PHPScriptor wrote:
>
> try to add seconds then
Well, using this script, no exception is thrown
setDate($expireDate);
?>
So maybe I'm not following you here, but it appears that stripping off
the complete setTime call results in no error.
But setTime() calls _time()
_time() gets to line 2706 where it creates a new instance of Zend_Date
and
try to add seconds then it works:
$expireTime = "01:30:00 AM";
$date->setTime($expireTime, 'hh:mm:ss');
Tim Rupp wrote:
>
> Hi list,
>
> I may be going about this the wrong way, so if that's the extent of
> the problem, then I'd appreciate some pointers. Btw, I'm using ZF
> 1.7.2.
>
> I crea
It seems to me as a lot of overhead. I created a structure like:
/application/
/library/
/index.php
/ .htaccess
/(all other files that would otherwise go in /public/)
The .htaccess file disables access to /application/ and /library/ and
redirects nonexistent URLs to index.php. Paths in
And you also receive the error when you strip of the complete setTime()
call.
The exception you mentioned is thrown in a single place... when you call
setDate().
And on one single reason... when the given string is 'null'.
Maybe you call this method twice in your code ?
Greetings
Thomas Weidne
Hi list,
I may be going about this the wrong way, so if that's the extent of
the problem, then I'd appreciate some pointers. Btw, I'm using ZF
1.7.2.
I create a zend_date object, use setdate and then try to use settime,
but get an exception message of "parameter $date must be set, null is
not all
-- Graham Anderson wrote
(on Tuesday, 06 January 2009, 02:14 AM +0100):
> On Sunday 04 January 2009 18:28:04 Matthew Weier O'Phinney wrote:
> > Originally, the Y! group was invite only, to keep the discussions
> > targetted. Later, it was to ensure that Zend_Tool discussions could
> > be found eas
I usually put these sort of things into my service layer, so I have a
services folder like I have a models folder and load them in the same
way as my models. So you could have something like directoryService
that encapsulates all your directory access behavior.
If you read Domain Driven Design, it
My problem is like you previously described. When using plesk one usually
can't access files outside the httpdocs folder due to
open_basedirconfiguration. So I have to put all application files in
the web directory.
So if I have a guestbook application I would put all files
insidehttpdocs/guestbook
Hi,
I've got a script which generate a group of directories from a name file
Ex: 12345678.jpg => /1234/5678/
This script can be called from many places in my ZF application
I am looking for the best practice to implement this script in my ZF
application.
Lots of possibilities:
-
-- Ionut Gabriel Stan wrote
(on Tuesday, 06 January 2009, 12:43 PM +0200):
> There is no PEAR in Zend_Json. By default Zend_Json will try to use
> json_encode/json_decode functions. These functions are not part of PECL
> as of PHP5, they're part of the standard PHP distribution.
Actually, wh
Hi Ralph,
Unfortunately that doesn't work; this code:
$query->from(
array( 'L' => 'sales_opportunities' ),
array(
"L.*",
"assigned_to_name" => new Zend_Db_Expr(
" $pdf->pages[0]->drawText('Alcalá - España', 300, 770, 'ISO-8859-1'); " is
not working. I am trying a similar thing in French language.
Please help.
Rgds,
Mauricio Cuenca wrote:
>
> Ooops... it was so easy, I found the answer two minutes after I post this
> message. You have the set the ch
Thanks all, I think this is probably the option that I'm going to take.
2009/1/5 Pádraic Brady
> One possible solution is setting a .htaccess file for the other root
> directories setting the "deny from all" directive to forbid access.
>
> Pádraic Brady
>
> http://blog.astrumfutura.com
> http://
-- mohmmad jarwan wrote
(on Tuesday, 06 January 2009, 11:36 AM +0200):
> i assume zend framework use JSON in PEAR extinction so,
> I need to use JSON in PECL extinction not PEAR extinction how can i do that .
Zend_Json uses ext/json when detected (available via pecl for PHP <
5.2.0, shipped as a
Nginx has a bad rep in some ways since the original documentation was in
Russian ;). But there are tons of English tutorials, and an English set of
docs - especially when it concerns using Nginx as a reverse proxy. If you
want I can throw up a tutorial on the topic of Nginx - using it as a reverse
thank you for that and i will check which way that have higher performance.
regard .
On Tue, Jan 6, 2009 at 1:30 PM, Marco wrote:
>
>
> ok i have question are the performance in JSON zend framework like the
>> performance in PECL performance because the performance in
>> PECL in too high .
>
Wow Thanks a million Padraic, You explained the httpd process very nicely and
I'm much clearer on what's going on now. I will try some of the
optimisations you mentioned to see if I can find the best level. The Nginx
sounds quite advanced but I really like the concept.
Also, thanks for confirming
ok i have question are the performance in JSON zend framework like the
> performance in PECL performance because the performance in
> PECL in too high .
>
I'm not sure what you mean here?
Obviously the pecl version of JSON will perform faster then the Zend_JSON
classes but I wouldn't expect th
>I'm pretty suspicious if my 2mb Zend app was ever to blame for the memory
>problems now. Media Temple DV hosting starts with 256mb, and even before
>the site was released there were black QoS alert in the Plesk CP. The
>account was completely fresh with nothing else running and I followed the
ok i have question are the performance in JSON zend framework like the
performance in PECL performance because the performance in
PECL in too high .
On Tue, Jan 6, 2009 at 12:53 PM, Ionut Gabriel Stan
wrote:
> My bad, I meant PHP 5.2.0.
>
> On Tue, Jan 6, 2009 at 12:43 PM, Ionut Gabriel Stan
>
My bad, I meant PHP 5.2.0.
On Tue, Jan 6, 2009 at 12:43 PM, Ionut Gabriel Stan
wrote:
> There is no PEAR in Zend_Json. By default Zend_Json will try to use
> json_encode/json_decode functions. These functions are not part of PECL as
> of PHP5, they're part of the standard PHP distribution. Nevert
thank you for replay i take a look to code and it's PEAR and I want to use
> PECL if can and if cane how i use it.
>
The code says
public static function decode($encodedValue, $objectDecodeType =
Zend_Json::TYPE_ARRAY)
{
if (function_exists('json_decode') &&
self::$useBuiltinEnco
There is no PEAR in Zend_Json. By default Zend_Json will try to use
json_encode/json_decode functions. These functions are not part of PECL
as of PHP5, they're part of the standard PHP distribution. Nevertheless,
you could ask Zend_Json to use its *own* encoder/decoder.
On 1/6/2009 12:30, moh
I can´t see your problem. Zend_Json is using json_encode() and json_decode() if
they are existent. If not Zend_Json is using its own encoding
(Zend_Json_Encoder) and decoding (Zend_Json_Decoder).
-- Jan
Original-Nachricht
> Datum: Tue, 6 Jan 2009 12:30:19 +0200
> Von: "mohmmad
thank you for replay i take a look to code and it's PEAR and I want to use
PECL if can and if cane how i use it.
On Tue, Jan 6, 2009 at 12:23 PM, Martin Martinov wrote:
> 2009/1/6 mohmmad jarwan :
> > hi list
> > i assume zend framework use JSON in PEAR extinction so,
> > I need to use JSON in
2009/1/6 mohmmad jarwan :
> hi list
> i assume zend framework use JSON in PEAR extinction so,
> I need to use JSON in PECL extinction not PEAR extinction how can i do that
> .
>
> regard.
> thank you for help .
>
>
>
Don't assume ;-)
Just take a look at the source code of the Zend_Json class and
hi list
i assume zend framework use JSON in PEAR extinction so,
I need to use JSON in PECL extinction not PEAR extinction how can i do that
.
regard.
thank you for help .
Yes, y're off base.
What you write about a lot of work is totally true, compared to regular
jquery work.
However, once you have good integration, reuse is easy and constistent.
Consistency will make your life easier in the end.
If you want it real easy, use Zend_Dojo instead of JQuery. But
41 matches
Mail list logo