RE: [fw-general] $this->_forward() questions

2009-01-06 Thread Eric Haskins
Thx Ralph & Juan Shortly after I posted this I found $this->_helper->redirector('index', $auth->getInstance()->getIdentity()->type); This fixed my issue Eric Haskins

Re: [fw-general] PHP version requirement -- ZF 1.6.2 not compatible with php 5.1.6

2009-01-06 Thread ardx
> > 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

Re: [fw-general] $this->_forward() questions

2009-01-06 Thread Ralph Schindler
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

Re: [fw-general] Best practice about a usage

2009-01-06 Thread swilhelm
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:

[fw-general] $this->_forward() questions

2009-01-06 Thread Eric Haskins
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

Re: [fw-general] validator break chain on success

2009-01-06 Thread Patrick Lorber
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

Re: [fw-general] Dojo versions

2009-01-06 Thread Matthew Weier O'Phinney
-- 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 >

Re: [fw-general] Zend_Mail_Storage_Mbox: missing part?

2009-01-06 Thread Nico Edtinger
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

Re: [fw-general] Zend_Tool sub forum?

2009-01-06 Thread Graham Anderson
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

[fw-general] Zend_Mail_Storage_Mbox: missing part?

2009-01-06 Thread Jan Pieper
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

Re: [fw-general] zend_date settime question

2009-01-06 Thread PHPScriptor
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

[fw-general] Dojo versions

2009-01-06 Thread Chris MacPherson
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

Re: [fw-general] zend_date settime question

2009-01-06 Thread Tim Rupp
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

Re: [fw-general] zend_date settime question

2009-01-06 Thread Tim Rupp
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

Re: [fw-general] zend_date settime question

2009-01-06 Thread PHPScriptor
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

RE: [fw-general] Project Structure / Public directory

2009-01-06 Thread Vincent de Lau
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 URL’s to index.php. Paths in

Re: [fw-general] zend_date settime question

2009-01-06 Thread Thomas Weidner
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

[fw-general] zend_date settime question

2009-01-06 Thread Tim Rupp
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

Re: [fw-general] Zend_Tool sub forum?

2009-01-06 Thread Matthew Weier O'Phinney
-- 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

Re: [fw-general] Best practice about a usage

2009-01-06 Thread keith Pope
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

Re: [fw-general] Project Structure / Public directory

2009-01-06 Thread Luiz A Brandao Jr
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

[fw-general] Best practice about a usage

2009-01-06 Thread Guillaume BABIK
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: -

Re: [fw-general] JSON in PECL

2009-01-06 Thread Matthew Weier O'Phinney
-- 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

Re: [fw-general] Subquery Generation

2009-01-06 Thread Saeven
Hi Ralph, Unfortunately that doesn't work; this code: $query->from( array( 'L' => 'sales_opportunities' ), array( "L.*", "assigned_to_name" => new Zend_Db_Expr(

Re: [fw-general] Latin fonts in Zend_Pdf

2009-01-06 Thread Aravindshantharam
" $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

Re: [fw-general] Project Structure / Public directory

2009-01-06 Thread Alan Wagstaff
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://

Re: [fw-general] JSON in PECL

2009-01-06 Thread Matthew Weier O'Phinney
-- 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

Re: [fw-general] ZF & Memory usage

2009-01-06 Thread Pádraic Brady
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

Re: [fw-general] JSON in PECL

2009-01-06 Thread mohmmad jarwan
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 . >

Re: [fw-general] ZF & Memory usage

2009-01-06 Thread mothmenace
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

Re: [fw-general] JSON in PECL

2009-01-06 Thread Marco
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

Re: [fw-general] ZF & Memory usage

2009-01-06 Thread Pádraic Brady
>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

Re: [fw-general] JSON in PECL

2009-01-06 Thread mohmmad jarwan
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 >

Re: [fw-general] JSON in PECL

2009-01-06 Thread 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

Re: [fw-general] JSON in PECL

2009-01-06 Thread Marco
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

Re: [fw-general] JSON in PECL

2009-01-06 Thread Ionut Gabriel Stan
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

Re: [fw-general] JSON in PECL

2009-01-06 Thread Jan Pieper
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

Re: [fw-general] JSON in PECL

2009-01-06 Thread mohmmad jarwan
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

Re: [fw-general] JSON in PECL

2009-01-06 Thread Martin Martinov
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

[fw-general] JSON in PECL

2009-01-06 Thread 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 .

Re: [fw-general] Is javascript framework integration into ZF really that beneficial?

2009-01-06 Thread Bart McLeod
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