[fw-general] cycle helper doesn't work inside a partialloop

2009-08-20 Thread Joe Czhlobatnik
If I use the cycle helper inside a partial called by partialloop, it resets for each iteration and I get no cycling. Is there a simple workaround for this? _ Hotmail® is up to 70% faster. Now good news travels really fast. http://wi

Re: [fw-general] Can't access a non-default controller

2009-08-20 Thread pyarlagadda
Thanks Victor. I was able to solve the problem using mod_rewrite module. I think it wasn't installed before. After installing, I set the AllowOverrid value to "All" in the 000-default file under sites-enabled directory. Thanks again for your help. Regards, Praveen Victor Farazdagi-2 wrote: > >

Re: [fw-general] Zend dynamic subform example requested

2009-08-20 Thread pablo_77
This might be helpful: http://lamptoday.wordpress.com/2009/07/19/dynamic-zend-form-ajax-doctrine/ jkendall wrote: > > > kadams wrote: >> >> Hello, >> I've seen many threads on this forum that talk about dynamic element >> creation using subform and AJAX, but all these threads seem to end wit

Re: [fw-general] ajax error -- returning whole html

2009-08-20 Thread Matthew Weier O'Phinney
-- onewaylife wrote (on Thursday, 20 August 2009, 12:33 PM -0700): > I am just started learning ZF and today I tried simple ajax example with > prototype. On response I am getting whole html chunk of code . Even I use > disabled layout still no success -- any body suggest why ??:-( > my code >

[fw-general] ajax error -- returning whole html

2009-08-20 Thread onewaylife
Hi All, I am just started learning ZF and today I tried simple ajax example with prototype. On response I am getting whole html chunk of code . Even I use disabled layout still no success -- any body suggest why ??:-( my code javascript code - function callAjax(s) { var myAjax = new Ajax.Req

Re: [fw-general] Can't access a non-default controller

2009-08-20 Thread pyarlagadda
Hi Victor, I was able to access the default controller using http://localhost/. I had created another Controller "TestController.php" where "IndexController.php" exists and I had a method called "indexAction()" in TestController.php. When I use "http://localhost/test/index";, it is supposed to go

[fw-general] Inserting a text string or paragraph into Zend_Form

2009-08-20 Thread Enkhbilguun Erdenetsogt
Hello, I just wonder how to insert a paragraph or a text string into Zend Form elements? I'm expecting: TEXT Do you know how to? Thanks ;-) begin:vcard fn:Enkhbilguun Erdenetsogt n:Erdenetsogt;Enkhbilguun email;internet:enkhbilg...@beregu.com tel;cell:99113638 x-mozilla-html:TRUE versio

Re: [fw-general] How to get forwarded page url/path?

2009-08-20 Thread Hector Virgen
Enkhbilguun Erdenetsogt, I'm glad you liked the idea. It has worked well for me in the past. Just a heads up on an issue you may run into: Due to the way apache handles forward slashes in urls, you may run into a problem trying to access the "referrer" parameter in your request if it is built lik

[fw-general] custom validation error messages in ZF >= 1.8

2009-08-20 Thread David Mintz
I could use some help figuring out how to override the default validation error messages with my own. Consider this snippet, based on the example in the docs: $validators = array( 'month' => array( 'NotEmpty', 'Digits', 'messages' => array( 0 =>'my cust

Re: [fw-general] How to get forwarded page url/path?

2009-08-20 Thread Enkhbilguun Erdenetsogt
Thank you Hector Virgen, Daniel Latter and kamil for your kind advise. I think setting a session variable to all the last visited pages may not be a good solution. Also $this->_redirect($this->_request->getRequestUri()) redirects to the current page. In my project, Hector's solution may work

[fw-general] Unit testing with Zend_Dojo_Form_Decorator_DijitElement

2009-08-20 Thread Ralf Eggert
Hi, I just got a problem with unit testing views that use a form when Zend_Dojo is enabled. I have a couple of unit tests to test the views standalone. Each unit test contains a couple of test cases. Each test case is basically built like this: public function testIndexViewWhatever() { //

Re: [fw-general] How to get forwarded page url/path?

2009-08-20 Thread Hector Virgen
I've used a query parameter to accomplish this. The link to my login page looks like this: Login When the login page is visited, the auth controller checks for the "to" parameter and saves it in a session namespace that automatically expires in 5 minutes. When the user successfully logs in, it red

Re: [fw-general] 1.9.x blues (was: [fw-general] Zend_Search_Lucene broken after upgrade to 1.9.0)

2009-08-20 Thread Matthew Weier O'Phinney
-- till wrote (on Thursday, 20 August 2009, 03:11 PM +0200): > On Mon, Aug 17, 2009 at 1:44 PM, Matthew Weier > O'Phinney wrote: > > -- till wrote > > (on Thursday, 13 August 2009, 06:36 PM +0200): > >> On Thu, Aug 13, 2009 at 6:22 PM, Ralph > >> Schindler wrote: > >> > Ralf, hard to diagnose fro

Re: [fw-general] zend_form_file decorator how to question

2009-08-20 Thread Thomas Weidner
http://framework.zend.com/wiki/display/ZFFAQ/Forms Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: "Bram Vogelaar" To: "Zend Framework - General" Sent: Thursday, August 20, 2009 3:19 PM Subject: [fw-general] zend_form

Re: [fw-general] Autoloader/Require mystery...

2009-08-20 Thread Carlton Gibson
Hi Alexander, Thank you for your superb answer! It has broken my impasse. (I've run into another problem with ... /Document/Docx.php but now I'm moving again I'll sort that. :-) Thanks again. Regards, Carlton On 19 Aug 2009, at 18:50, Alexander Veremyev wrote: Hi Carlton, It's a ZF-7256

[fw-general] New Zend Framework Clippings set for Zend Framework

2009-08-20 Thread Carlton Gibson
Hi all, I've just released the first beta of a Zend Framework Clipping set for BBEdit. You can download a copy at: http://noumenal.co.uk/resources/downloads Alternatively, it is also part of the combined clipping set on GitHub: http://github.com/tedmasterweb/bbeditclippings/ The set curre

Re: [fw-general] Limiting one user in zend_auth.

2009-08-20 Thread Mr. Eric Eugene Naujock
OK I am revisiting this idea. What I have done is when the user logs in I call Zend_Session::getId(); and save that in the user record when they are successfully authenticated. Then in my bootstrap I have a block of code that checks users. below if the code I am using. if ($auth->hasId

Re: [fw-general] Zend Framework 1.9.0 PREVIEW release now available

2009-08-20 Thread Саша Стаменковић
Still no migration guide for 1.9 on http://framework.zend.com/manual/en/zend.controller.migration.html . I had problems with Zend_Filter_HtmlEntities, constructor is changed, now receiving array of parameters. Regards, Saša Stamenković On Sat, Jul 18, 2009 at 11:54 PM, Matthew Weier O'Phinney wr

[fw-general] zend_form_file decorator how to question

2009-08-20 Thread Bram Vogelaar
Dear All im trying to create a little upload form containing a drop down box, a file selection bit and a button, but when i build the form like the code below i get a "Warning: Exception caught by form: No file decorator found... unable to render file element Stack Trace: #0 / Users" erro

Re: [fw-general] Zend_Application bootstrap order

2009-08-20 Thread Matthew Weier O'Phinney
-- keith Pope wrote (on Thursday, 20 August 2009, 01:52 PM +0100): > 2009/8/20 Matthew Weier O'Phinney : > > -- keith Pope wrote > > (on Thursday, 20 August 2009, 11:15 AM +0100): > > > Am I right that bootstrap order using modules works like this. > > > > > > 1. Main bootstrap class resources ar

Re: [fw-general] 1.9.x blues (was: [fw-general] Zend_Search_Lucene broken after upgrade to 1.9.0)

2009-08-20 Thread till
On Mon, Aug 17, 2009 at 1:44 PM, Matthew Weier O'Phinney wrote: > -- till wrote > (on Thursday, 13 August 2009, 06:36 PM +0200): >> On Thu, Aug 13, 2009 at 6:22 PM, Ralph >> Schindler wrote: >> > Ralf, hard to diagnose from the backtrace, it looks like you were >> > overriding >> > Zend_Search_Lu

Re: [fw-general] Problem attaching Zend_Mail

2009-08-20 Thread till
2009/8/20 José de Menezes Soares Neto : > Hi, thanks for your help... > > Using Zend_Mail is easy, but I got some error trying to send attachments... > the warning is: > > Warning: base64_encode() expects parameter 1 to be string, object given in > C:\www\was\lib\Zend\Mime.php on line 173 > > What

Re: [fw-general] Zend_Application bootstrap order

2009-08-20 Thread keith Pope
2009/8/20 Matthew Weier O'Phinney : > -- keith Pope wrote > (on Thursday, 20 August 2009, 11:15 AM +0100): >> Am I right that bootstrap order using modules works like this. >> >> 1. Main bootstrap class resources are called >> 2. Main bootstrap plugin resource are called >> 3. Module bootstrap cla

Re: [fw-general] Problem attaching Zend_Mail

2009-08-20 Thread José de Menezes Soares Neto
Hi, thanks for your help... Using Zend_Mail is easy, but I got some error trying to send attachments... the warning is: *Warning*: base64_encode() expects parameter 1 to be string, object given in *C:\www\was\lib\Zend\Mime.php* on line *173 *What it could be? My code is: // FILE TO BE ATTACHED

Re: [fw-general] Zend_Application bootstrap order

2009-08-20 Thread Matthew Weier O'Phinney
-- keith Pope wrote (on Thursday, 20 August 2009, 11:15 AM +0100): > Am I right that bootstrap order using modules works like this. > > 1. Main bootstrap class resources are called > 2. Main bootstrap plugin resource are called > 3. Module bootstrap class resources are called > 4. Module bootstra

Re: [fw-general] Download numbers for ZF

2009-08-20 Thread Ralf Eggert
Hi Matthew, Matthew Weier O'Phinney schrieb am 17.08.2009 13:55: > Actually, we don't really have an accurate idea any more. We track > downloads on the ZF site itself, but those are a fraction of the total > any more, as many Linux and BSD distros are now distributing ZF, many > applications are

Re: [fw-general] Loading Dojo JS files

2009-08-20 Thread Ralf Eggert
Hi Matthew, > What does FireBug tell you? This is weird. First I kicked Dojo again completely. Now to test it with Firebug I added it again. And now it works. The only difference is that my first try was with ZF 1.9.0 and now I tried again with ZF 1.9.1. I think the rest (copy Dojo files to /js/,

Re: [fw-general] How to get forwarded page url/path?

2009-08-20 Thread kamil
Enkhbilguun Erdenetsogt pisze: Thank you for you email, Daniel Latter. As your advise, I created hidden form element that stores the page path, and it is working if the login is in the page the user was on. $returnUrl = new Zend_Form_Element_Hidden('returnUrl'); $returnUrl->setValue(Zend_Cont

Re: [fw-general] How to get forwarded page url/path?

2009-08-20 Thread Daniel Latter
OK, in this case you may want to store the previous page path in the session then before they hit the login page. If the page is abritray you will need to keep a session variable of the last page viewed, except for login page, this means on every page you will need to set/re-set the session variba

Re: [fw-general] How to get forwarded page url/path?

2009-08-20 Thread Enkhbilguun Erdenetsogt
Thank you for you email, Daniel Latter. As your advise, I created hidden form element that stores the page path, and it is working if the login is in the page the user was on. $returnUrl = new Zend_Form_Element_Hidden('returnUrl'); $returnUrl->setValue(Zend_Controller_Front::getInstance()->get

Re: [fw-general] Re: Best to use CLI in my ZF 1.9 Application

2009-08-20 Thread Raphael Stolt
Hi Stefan, You might also take a look at Zend_Tool_Project_Providers which allow you to create custom providers which handle the scenarios you described in the first mail. Plus by hooking them into the Zend Tool environment you can call them as desired via CLI. Hope that helps a bit. Cheers, Ra

[fw-general] Zend_Application bootstrap order

2009-08-20 Thread keith Pope
Hi, Am I right that bootstrap order using modules works like this. 1. Main bootstrap class resources are called 2. Main bootstrap plugin resource are called 3. Module bootstrap class resources are called 4. Module bootstrap plugin resources are called. Thx Keith

Re: [fw-general] How to get forwarded page url/path?

2009-08-20 Thread Jurian Sluiman
Op Thursday 20 August 2009 11:03:39 schreef Enkhbilguun Erdenetsogt: > Hello, > > I'm building a user login/logout functionality in my ZF project. I just > want to forward a user, just logged in or out, to the page before the > user logged in or out. Could you tell me which commands I should use? >

[fw-general] How to get forwarded page url/path?

2009-08-20 Thread Enkhbilguun Erdenetsogt
Hello, I'm building a user login/logout functionality in my ZF project. I just want to forward a user, just logged in or out, to the page before the user logged in or out. Could you tell me which commands I should use? Thank you very much friends. begin:vcard fn:Enkhbilguun Erdenetsogt n:Erd

Re: [fw-general] Zend Validations not working properly in FastCGI

2009-08-20 Thread naveed83
Can anyone please tell why zend is applying required validator or the fields automatically in FastCGI mode? Is there any compatibility issues with Zend when PHP is setup as FastCGI? naveed83 wrote: > > Hi, > I am facing a very strange problem in zend input filter validations. I > have a form o

[fw-general] Re: Working with multilanguage routers

2009-08-20 Thread Xavier Vidal Piera
Oh men, murphy's law again... 30 seconds after sending the email, i've swapped the order where i add the routes and..bingo!. I've forgot the priority based on adding order... $router->addRoute('default', $default); $router->addRoute('profile', $profile); Sorry :D On Thu, Aug 20, 2009 at 9:52 AM,

[fw-general] Working with multilanguage routers

2009-08-20 Thread Xavier Vidal Piera
Hi I'm developing a multilingual site and, at the moment, i've setup a multilingual route succesfully using a chain. The problem comes when i want to add regex routes and i don't know if i'm missing something because the route do not match. Testing URLs: /es/ --> works /es/application/index/index

Re: [fw-general] Zend Framework admin system scaffolding

2009-08-20 Thread swilhelm
+1 on this request. luoshiben wrote: > > Hi All, > > I'm about to ramble on in regards to what I need and why, but for those > who don't want to read =), here's my question: > > Does anyone know of a framework or tool set that sits on top of Zend > Framework to assist developers in quickly cr

Re: [fw-general] Can't access a non-default controller

2009-08-20 Thread Victor Farazdagi
Praveen, Were you able to access the default controller? Specifically, is http://mylocalhost is accessible (generally local hosts are http://localhost, but of course you can configure it to whatever you want). Plus, did you put mod_rewrite directions into your .htaccess file? pyarlagadda wr