Re: [fw-general] [ZF 1.10.4] Chain route + language code

2010-07-09 Thread Laurent Melmoux
;action' => 'index' ) ); $router->addRoute('language', $route); $defaultRoute = new Zend_Controller_Router_Route(':module/:controller/:action/*', array( 'module' => 'default', 'controller' =

[fw-general] [ZF 1.10.4] Chain route + language code

2010-07-08 Thread Laurent Melmoux
Hi, I'm trying to add "language route" support. I'm using the code down below : $router = new Zend_Controller_Router_Rewrite(); $languageRoute = new Zend_Controller_Router_Route(':language', array('language' => 'fr'), array('language' => 'fr|en')); $defaultRoute = new Zend_Controller_Router_R

Re: [fw-general] [Zend_Form] Zend_Form_Element_File::getValue() is calling Zend_File_Transfer_Http:: receive()

2008-12-05 Thread Laurent Melmoux
: "Laurent Melmoux" <[EMAIL PROTECTED]> To: "Zend Framework General" Cc: "Thomas Weidner" <[EMAIL PROTECTED]> Sent: Friday, December 05, 2008 1:08 PM Subject: Re: [fw-general] [Zend_Form] Zend_Form_Element_File::getValue() is calling Zend_File_Transfer_Ht

Re: [fw-general] [Zend_Form] Zend_Form_Element_File::getValue() is calling Zend_File_Transfer_Http:: receive()

2008-12-05 Thread Laurent Melmoux
Laurent Melmoux a écrit : Thomas, my comment : Thomas Weidner a écrit : Hy, I was thinking of 2 naming strategies : 1) You are storing the name of the file in the db here the current solution is perfect, you get the file name with getValue() ready to be saved in the db 2) You are NOT

Re: [fw-general] [Zend_Form] Zend_Form_Element_File::getValue() is calling Zend_File_Transfer_Http:: receive()

2008-12-05 Thread Laurent Melmoux
o1, 1__photo2, ..., 56__photo1, 56__photo2) so you call getValue() have the file stored insert the data in the db, fetch the pk value with lastInsertedId() and then reapply the Rename filter Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Or

[fw-general] Zend_Form::getTransferAdapter()

2008-12-04 Thread Laurent Melmoux
2')->getTransferAdapter(); file2 is save in the right directory while file1 is save in /temp directory It seams that is due to the fact than each form elements have is own instance of TransferAdapter. Regards, -- Laurent Melmoux Conseil et Solutions Web | [EMAIL PROTECTED] 2mx - Annecy, France | http://laurent.2mx.fr/

Re: [fw-general] Zend_Form + Zend_File_Transfer issue with Zend_Form::getValues()

2008-12-04 Thread Laurent Melmoux
w.thomasweidner.com - Original Message ----- From: "Laurent Melmoux" <[EMAIL PROTECTED]> To: "Thomas Weidner" <[EMAIL PROTECTED]> Cc: "Zend Framework General" Sent: Wednesday, December 03, 2008 4:02 PM Subject: Re: [fw-general] Zend_Form + Zend_File_Transf

Re: [fw-general] Zend_Form + Zend_File_Transfer issue with Zend_Form::getValues()

2008-12-04 Thread Laurent Melmoux
n try catch block as you do it with all other classes instead of changing ZF code. :-) It does the trick. :) Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: "Laurent Melmoux" <[EMAIL PROTECTED]> To: &qu

Re: [fw-general] [Zend_Form] Zend_Form_Element_File::getValue() is calling Zend_File_Transfer_Http:: receive()

2008-12-04 Thread Laurent Melmoux
k http://www.thomasweidner.com - Original Message - From: "Laurent Melmoux" <[EMAIL PROTECTED]> To: "Zend Framework General" Sent: Wednesday, December 03, 2008 7:04 PM Subject: [fw-general] [Zend_Form] Zend_Form_Element_File::getValue() is calling Zend_File_Transf

[fw-general] [Zend_Form] Zend_Form_Element_File::getValue() is calling Zend_File_Transfer_Http:: receive()

2008-12-03 Thread Laurent Melmoux
Element_File::getValue() would leave more flexibility for the developer on how he want to handle the file. What do you think? -- Laurent Melmoux Conseil et Solutions Web | [EMAIL PROTECTED] 2mx - Annecy, France | http://laurent.2mx.fr/

Re: [fw-general] Zend_Form + Zend_File_Transfer issue with Zend_Form::getValues()

2008-12-03 Thread Laurent Melmoux
$request->getPost(); if($form->isValid($formData)) { echo "FORM VALID"; } else { print_r($form->getMessages()); } } else { // It's over symplified here $data = array('comment'=>&#x

Re: [fw-general] Zend_Form + Zend_File_Transfer issue with Zend_Form::getValues()

2008-12-03 Thread Laurent Melmoux
Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: "Laurent Melmoux" <[EMAIL PROTECTED]> To: "Zend Framework General" Sent: Wednesday, December 03, 2008 3:01 PM Subject: [fw-general] Zend_Form + Zend_File_Transfer issue

[fw-general] Zend_Form + Zend_File_Transfer issue with Zend_Form::getValues()

2008-12-03 Thread Laurent Melmoux
quot; not found by file transfer adapter', $find)); See : Zend_File_Transfer_Adapter_Abstract ::getFileInfo($file = null) Zend_File_Transfer_Adapter_Abstract ::_getFiles($files, $names = false, $noexception = false) Is it a issue or am I using incorrectly Zend_Form + Zend_File_Transfer ?

Re: [fw-general] ZF Best Practices for someone who has been using Cake

2008-11-06 Thread Laurent Melmoux
); } Is that the best way? Thank you Regards, -- Laurent Melmoux

[fw-general] Strange "File does not exist" in apache log

2008-09-24 Thread Laurent Melmoux
;), array('id' => '\d+') ); $router->addRoute('details', $route); And I’m using this apache rewrite rule RewriteEngine on RewriteRule !\.(pdf|php|js|ico|txt|gif|jpg|jpeg|png|swf|css|rss|zip|tar|rar|\.gz)$ index.php The error seam to occur when a property detail is displayed. http://chambres-hotes.monescapade.fr/auvergne/puy-de-dome/la-lauzeraie/105 Does any one have any pointers? Regards, -- Laurent Melmoux Conseil et Solutions Web | [EMAIL PROTECTED] 2mx - Annecy, France | http://www.2mx.fr/

Re: [fw-general] Zend Grid Proposal??

2008-09-22 Thread Laurent Melmoux
Hi, I agree with Matt the data grid component should use various source adapters. A good thing too could be to split the data grid in several loosely couple components. Zend_Data_Sorter Zend_Data_Filter (Zend_Data_Filter_Abstract, Zend_Data_Filter_Number, Zend_Data_Filter_String, Zend_Data

Re: [fw-general] [Zend_View] and global view vars best practice?

2008-08-09 Thread Laurent Melmoux
- Laurent Melmoux Conseil et Solutions Web | [EMAIL PROTECTED] 2mx - Annecy, France | http://www.2mx.fr/ Matthew Weier O'Phinney a écrit : -- Laurent Melmoux <[EMAIL PROTECTED]> wrote (on Friday, 01 August 2008, 06:54 PM +0200): So should I do: 1) One placeholder + key

[fw-general] [Zend_View] and global view vars best practice?

2008-08-08 Thread Laurent Melmoux
er_Standalone $view->globals()->urlRoot $view->globals()->urlAssets $view->globals()->urlTheme; $view->globals()->urlImages 4) Keep using my current setup 5) Other suggestions? What are your recommendations ? I'm curious to know how others tackled this problem too. Thanks for ridding this topics, Regards, -- Laurent Melmoux Conseil et Solutions Web | [EMAIL PROTECTED] 2mx - Annecy, France | http://www.2mx.fr/

Re: [fw-general] Contributor mailing list. . .

2008-07-15 Thread Laurent Melmoux
his is a great idea and will help make contributing much easier IMO. Regards Marco -- Laurent Melmoux Conseil et Solutions Web | [EMAIL PROTECTED] 2mx - Annecy, France | http://www.2mx.fr/ Tél. | +33 870 440 905

Re: [fw-general] Why haven't you reviewed the Zend_Tool proposals?

2008-07-04 Thread Laurent Melmoux
ng list will be enough : * fw-general for end-users * fw-dev for ZF development. Please pardon me if this subject has been already discussed. Regards, Laurent -- Laurent Melmoux Conseil et Solutions Web | [EMAIL PROTECTED] 2mx - Annecy, France | http://www.2mx.fr/

Re: [fw-general] Why haven't you reviewed the Zend_Tool proposals?

2008-07-03 Thread Laurent Melmoux
need to develop his app like Zend_Form or Zend_View enhanced , Zend_Tool get "less interest". $0.2 :) So as Paddy said more stuff demonstrating the proposals will be good. Regards, Laurent -- Laurent Melmoux Conseil et Solutions Web | [EMAIL PROTECTED] 2mx - Annecy, France |

Re: [fw-general] Response Object : Weird issue with setHeader()

2008-06-12 Thread Laurent Melmoux
Well did not realise that this happen when I forward to another action. Then if I modify the response in the forwarded action it seams to have no effect. I will do some digg in. Laurent Melmoux a écrit : Hi, I need some help. I can’t figure it out what’s going with my Response Object and

[fw-general] Response Object : Weird issue with setHeader()

2008-06-12 Thread Laurent Melmoux
en in Zend_Controller_Front::dispatch() just after the call to the dispatcher I have protected '_headers' => array empty Headers are gone :( Do you have any pointers ? -- Laurent Melmoux Conseil et Solutions Web | [EMAIL PROTECTED] 2mx - Annecy, France | http://www.2mx.fr/

Re: [fw-general] [Zend_Form] Custom aggregate element

2008-06-06 Thread Laurent Melmoux
easy it is to have it rendered by Zend_Form. Regards, Laurent -- Laurent Melmoux Conseil et Solutions Web | [EMAIL PROTECTED] 2mx - Annecy, France | http://www.2mx.fr/

Re: [fw-general] Best practice for validation

2008-06-06 Thread Laurent Melmoux
g the model to the form object and not the form object to the model? Thanks and best regards, Ralf -- Laurent Melmoux Conseil et Solutions Web | [EMAIL PROTECTED] 2mx - Annecy, France | http://www.2mx.fr/

Re: [fw-general] Datagrid in Zend Framework

2008-05-08 Thread Laurent Melmoux
rPage(), $grid->getPageOffset()); $grid->populate($rows); // Grid Renderer $options = array( 'labels' => $this->_labels, 'pkname' => 'user_id', 'urlbase' => $this->view->url(array('page'=>'@@page@@'), null, false, fa

Re: [fw-general] Zend_Form - should data validation occur on filtered value?

2008-03-08 Thread Laurent Melmoux
se case of pre-filtering data. And I’m style convinced that post filtering is a better approaches. :) -- Laurent Melmoux Annecy, France Amr Mostafa a écrit : Hi Laurent, While I don't have the answer to your question specifically, I know that Zend_Form used to validate before filter

Re: [fw-general] Zend_Form - should data validation occur on filtered value?

2008-03-08 Thread Laurent Melmoux
Thanks Amr, I should have search the list :) -- Laurent Melmoux Annecy, France Amr Mostafa a écrit : Hi Laurent, While I don't have the answer to your question specifically, I know that Zend_Form used to validate before filtering like you are suggesting. But that was modified per

[fw-general] Zend_Form - should data validation occur on filtered value?

2008-03-08 Thread Laurent Melmoux
user that is input is wrong. Then filter data for formatting and security. Best Regards, -- Laurent Melmoux Annecy, France

[fw-general] Checkbox View Helper (svn version)

2008-02-29 Thread Laurent Melmoux
ich is rendered as checked in firefox. Regards, -- Laurent Melmoux Annecy, France

Re: [fw-general] Zend_TextParser proposal, ideas, suggestions?

2008-01-31 Thread Laurent Melmoux
the moment. But if you would like to help me with this task, you can always contact me. Regards, Pieter Kokx Laurent Melmoux schreef: Unfortunately no :( But you can still have a look to the code implementation and examples. I’m going to need such a class in the coming weeks. I don’t wa

Re: [fw-general] Zend_TextParser proposal, ideas, suggestions?

2008-01-31 Thread Laurent Melmoux
Laurent, Is the documentation for your wiki code parser also available in English, since I am not very good in French? Regards, Pieter Kokx Laurent Melmoux schreef: Hi Pieter, You can have a look at http://wikirenderer.berlios.de/ too Regards,

Re: [fw-general] Zend_TextParser proposal, ideas, suggestions?

2008-01-30 Thread Laurent Melmoux
Hi Pieter, You can have a look at http://wikirenderer.berlios.de/ too Regards, -- Laurent Melmoux Annecy, France Pieter a écrit : Hi, When I am looking to Text_Wiki, it doesn't seem like it is totally what I was thinking of, but still, it could be usefull. I could be a great help

Re: [fw-general] How to detect a _forward() ?

2007-12-18 Thread Laurent Melmoux
Thank's Matthew for this detailed answer. The Plugin will do the trick ! :) Matthew Weier O'Phinney a écrit : -- Laurent Melmoux <[EMAIL PROTECTED]> wrote (on Tuesday, 18 December 2007, 01:36 PM +0100): I’m using the preDispatch() method in a controller to detect if the

[fw-general] How to detect a _forward() ?

2007-12-18 Thread Laurent Melmoux
ly or via _forward(), $this->getRequest()->isDispatched() always return true. What is strange, is that it seems it was working a few svn versions ago… But now I’m not sure. Is there a bug? Or am I not using a good strategy to detect a _forward()? -- Laurent Melmoux - [EMAIL PROTECTED] Annecy - France

Re: [fw-general] Build the ZF documentation from docBook source

2007-12-10 Thread Laurent Melmoux
mentation directory all of the files not under SVN version control, and rerunning: autoconf && ./configure && make Hope that helps! Best regards, Darby Laurent Melmoux wrote: Hi Darby, Yep, I tried with Cygwin too, and I have the same error! I’ll try again tomorrow .

Re: [fw-general] Build the ZF documentation from docBook source

2007-12-10 Thread Laurent Melmoux
Hi Darby, Yep, I tried with Cygwin too, and I have the same error! I’ll try again tomorrow . -- Laurent Melmoux - [EMAIL PROTECTED] Annecy - France Darby Felton a écrit : Hi Laurent, xinclude is not a command on the systems on which I build the manual; it looks like maybe a line break was

Re: [fw-general] fetchAll differens

2007-12-10 Thread Laurent Melmoux
values. Right -- because calling fetchAll() on a zend_db_adapter object returns an associative array; db adapters are meant for basically raw data access. Zend_Db_Table works differently as it is implementing a Table Data Gateway pattern, which returns rowsets of Row Data Gateways -- which allow

Re: [fw-general] Zend_DB performance issue

2007-12-09 Thread Laurent Melmoux
Hi, I thought that this might be of interest: http://fr3.php.net/manual/en/function.PDO-prepare.php#79178 -- Laurent Melmoux - [EMAIL PROTECTED] Annecy - France Christian Ehmig a écrit : Hi! Some time ago I noticed that Zend_DB and especially Zend_Db_Adapter_Abstract prepare ANY statement

[fw-general] Build the ZF documentation from docBook source

2007-12-08 Thread Laurent Melmoux
I’d tried to install all sort of package relative to xml and docBook but I still got the same error. Does someone have an Idea? -- Laurent Melmoux - [EMAIL PROTECTED] Annecy - France

[fw-general] Re: *** PROBABLY SPAM *** RE: [fw-general] Zend_Session::start() and remember me

2007-12-07 Thread Laurent Melmoux
I wonder is the cookie set only when needed, or is the remember me cookie set on the next request, which may be caused by my redirect? -Original Message- From: Laurent Melmoux [mailto:[EMAIL PROTECTED] Sent: Friday, 7 December 2007 5:35 PM To: Steven Brown Cc: 'Darby Felton';

Re: [fw-general] Zend_Session::start() and remember me

2007-12-06 Thread Laurent Melmoux
cookie("Zend_Auth_RememberMe", $duration, time()+6000, '/'); *In my bootstrap:* // Session include 'Zend/Session.php'; if(isset($_COOKIE["Zend_Auth_RememberMe"])){ Zend_Session::rememberUntil($_COOKIE["Zend_Auth_RememberMe"]); unset($_COOKIE["Zend_Auth_Remember

Re: [fw-general] Zend_Session::start() and remember me

2007-12-06 Thread Laurent Melmoux
rememberme Sorry for the long URL. :) Best regards, Darby Laurent Melmoux wrote: Hi all, Until now I had call Zend_Session::start() at the beginning of bootstrap file, so far so good. But now, I would like to add a remember me option on my login form, so if the authentification succe

Re: [fw-general] Zend_Session::start() and remember me

2007-12-06 Thread Laurent Melmoux
g URL. :) Best regards, Darby Laurent Melmoux wrote: Hi all, Until now I had call Zend_Session::start() at the beginning of bootstrap file, so far so good. But now, I would like to add a remember me option on my login form, so if the authentification succeed and the remember me have been checked I

[fw-general] Zend_Session::start() and remember me

2007-12-06 Thread Laurent Melmoux
won’t work because the session is already started! What do you consider as best practice to deal with this use case? Where Zend_Session::start() should be called ? Regards -- Laurent Melmoux - [EMAIL PROTECTED] Annecy - France

Re: [fw-general] Zend_Form

2007-12-04 Thread Laurent Melmoux
Matthew Weier O'Phinney a écrit : -- Laurent Melmoux <[EMAIL PROTECTED]> wrote (on Tuesday, 04 December 2007, 10:36 AM +0100): I’m already using the laboratory Zend_Form in my current project. :) Wow -- I didn't expect people would be using that code already!

Re: [fw-general] Zend_Form

2007-12-04 Thread Laurent Melmoux
t message for specific fields. * The “message” key of the validators rule will overwrite all messages set with those methods. *Labels* Zend_Form::setLabels(); Could be useful too to set all labels at once, if you store all your model translation in a format support by Zend_Translate. -- Lau

Re: [fw-general] Zend_Filter_Input and unknown fields

2007-11-16 Thread Laurent Melmoux
Hi pakmannen, You can have a look at this issue : http://framework.zend.com/issues/browse/ZF-2128 -- Laurent Melmoux - [EMAIL PROTECTED] pakmannen a écrit : Hi all, Have a question regarding Zend_Filter_Input and unknown fields. Basically, I have a form with, say, five fields. I want to

Re: [fw-general] Zend Upload

2007-11-13 Thread Laurent Melmoux
Hi, you can have a look at Varien_File_Uploader in the magento ecommerce platform : http://www.magentocommerce.com/ -- Laurent Melmoux - [EMAIL PROTECTED] Annecy - France Gunter Sammet a écrit : Hi all: Does anybody already have written an upload class for Zend Framework? If yes, would it

Re: [fw-general] Optimized PHP

2007-10-03 Thread Laurent Melmoux
/developerworks/linux/library/l-tune-lamp-1/ http://www.ibm.com/developerworks/linux/library/l-tune-lamp-2.html?ca=dgr-lnxw01LAMPTuningP2 http://developer.yahoo.com/performance/rules.html -- Laurent Melmoux - [EMAIL PROTECTED] ashish.sharma a écrit : Hello All, I am working on PHP from quite some

Re: [fw-general] Locale Sensitive Zend_Validate_*

2007-09-07 Thread Laurent Melmoux
- From: "Laurent Melmoux" <[EMAIL PROTECTED]> To: "Zend Framework General" Sent: Friday, September 07, 2007 3:28 PM Subject: [fw-general] Locale Sensitive Zend_Validate_* Hi every body, Is there any plan to make the Zend_Validate_* class “locale aware” ? Best Re

[fw-general] Locale Sensitive Zend_Validate_*

2007-09-07 Thread Laurent Melmoux
Hi every body, Is there any plan to make the Zend_Validate_* class “locale aware” ? Best Regards, -- Laurent Melmoux, [EMAIL PROTECTED]

Re: [fw-general] Zend_Filter_Input get all data

2007-09-05 Thread Laurent Melmoux
lter_Input without extending it. -- Laurent Melmoux, [EMAIL PROTECTED]

Re: [fw-general] FlashMessenger - Indirect modification of overloaded property

2007-08-07 Thread Laurent Melmoux
From the debian website we can read that : "No new functionality is added to the stable release. Once a Debian version is released and tagged `stable' it will only get security updates." http://www.debian.org/doc/manuals/debian-faq/ch-getting.en.html#s-updatestable Here is the debian Changelog

Re: [fw-general] FlashMessenger - Indirect modification of overloaded property

2007-08-07 Thread Laurent Melmoux
log this bug in the tracker it would be helpful as we track these down. Kevin - Original Message - From: "Laurent Melmoux" <[EMAIL PROTECTED]> To: Sent: Tuesday, August 07, 2007 1:04 PM Subject: [fw-general] FlashMessenger - Indirect modification of overloaded propert

Re: [fw-general] FlashMessenger - Indirect modification of overloaded property

2007-08-07 Thread Laurent Melmoux
tracker it would be helpful as we track these down. Kevin - Original Message ----- From: "Laurent Melmoux" <[EMAIL PROTECTED]> To: Sent: Tuesday, August 07, 2007 1:04 PM Subject: [fw-general] FlashMessenger - Indirect modification of overloaded property Hi, I'

[fw-general] FlashMessenger - Indirect modification of overloaded property

2007-08-07 Thread Laurent Melmoux
, with the lastest svn export. It's seems relatated to overloading array ? http://weierophinney.net/matthew/archives/131-Overloading-arrays-in-PHP-5.2.0.html -- Laurent Melmoux, [EMAIL PROTECTED] Annecy - France

Re: [fw-general] Zend_Date::getDate() don't return a clone in the DATE_MEDIUM format

2007-03-31 Thread Laurent Melmoux
I just checked with the latest SVN version and it work : 2007-03-31T14:26:31+02:00 2007 2007-04-01T02:00:00+02:00 2007 -- Laurent Melmoux, [EMAIL PROTECTED] Annecy - France Thomas Weidner a écrit : Hi Julien, What is the output when you run the script below? Maybe you both (laurent

Re: [fw-general] Zend_Date::getDate() don't return a clone in the DATE_MEDIUM format

2007-03-31 Thread Laurent Melmoux
Hi, I'm runing on a linux debian sarge with php version 5.2.1-0 (dotdeb package). Here is my output : 2007-03-31T10:13:17+02:00 2007 7-4-01T01:00:00+0100 -- Laurent Melmoux, [EMAIL PROTECTED] Annecy - France Gavin Vess a écrit : Hi Julien, What is the output when you run the script

[fw-general] CRUD - List with sorting and filtering

2007-03-24 Thread Laurent Melmoux
Hi, I’m looking for best practice to build the List part, with sorting and filtering, of a CRUD application. Using OOP which will fit well with Zend_Db_Table and the MVC part of the framework. I would appreciate if anybody can share some links or code. Regards, -- Laurent Melmoux, [EMAIL

Re: [fw-general] CRUD Applications

2007-03-23 Thread Laurent Melmoux
HP a couple weeks ago, and posted my slides online: http://weierophinney.net/matthew/archives/137-BostonPHP-Framework-Presentations.html It goes through a sample CRUD application. Thanks Matthew, Would it be possible to download the source code somewhere ? :) -- Laurent Melmoux, [EMAI

Re: [fw-general] frontend / backend bootstrap

2006-12-05 Thread Laurent Melmoux
o "/admin/" cannot be dispatched as a controller... Best regards, -- Laurent Melmoux, [EMAIL PROTECTED] Annecy - France

Re: [fw-general] lighthttpd + zend framework

2006-11-11 Thread Laurent Melmoux
Thank you Chris ! It could be interesting to add it in the framework manual. Chris Shiflett a écrit : Laurent Melmoux wrote: Does any body knows wich rewrite rule should I write in lighthttpd to use with Zend_Framework? Peter Pistorius gives one for lighttp here

[fw-general] lighthttpd + zend framework

2006-11-10 Thread Laurent Melmoux
Does any body knows wich rewrite rule should I write in lighthttpd to use with Zend_Framework ? -- Laurent Melmoux, [EMAIL PROTECTED] Annecy - France

[fw-general] Zend_Config_Array

2006-11-07 Thread Laurent Melmoux
I trying to run my test site on ZF 0.2.0 but Zend_Config_Array is not in \library\Zend\Config\ nor in incubator... Where it is gone ? -- Laurent Melmoux, [EMAIL PROTECTED] Annecy - France