[symfony-users] Why this action from a custom form doesn't take values ...

2009-06-07 Thread Reynier Perez Mira
Hi every: I have this two methods in my class: public function executeFiltrarPorApartamentoForm(sfWebRequest $request) { $this->form = new TbPorApartamentoForm(); $this->setTemplate('porApartamento'); } public function executeFiltrarPorApartamento(sfWebRequest $request) { echo 'Enter

[symfony-users] Re: Doctrine File upload trouble

2009-06-07 Thread mlmarius
I first provided an array of mime types and after that i tried with the mime category but still nothing, same error . --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send

[symfony-users] Re: Doctrine File upload trouble

2009-06-07 Thread Gábor Fási
Try providing the accepted mime types. http://www.symfony-project.org/forms/1_2/en/B-Validators#chapter_b_sub_sfvalidatorfile On Sun, Jun 7, 2009 at 19:04, mlmarius wrote: > > Hello, i am trying to build a file upload with sf 1.2 and doctrine. I > am following this tutorial : > http://www.symfony

[symfony-users] Doctrine File upload trouble

2009-06-07 Thread mlmarius
Hello, i am trying to build a file upload with sf 1.2 and doctrine. I am following this tutorial : http://www.symfony-project.org/forms/1_2/en/11-Doctrine-Integration#chapter_11_sub_handling_the_files_upload ( look for "file upload" ). I have the following schema ( only 1 model ) : StoredFile:

[symfony-users] Re: problem on file download

2009-06-07 Thread Tomasz Ignatiuk
This is my version which works form me: // Enforce full download and prevent caching session_cache_limiter('none'); // No layout needed for file downloads $this->setLayout(false); sfConfig::set('sf

[symfony-users] Re: problem on file download

2009-06-07 Thread ctrlming
thank you , I tried as your post, but failed, strange problem. On 6月6日, 下午9时15分, Filipe Costa wrote: > An example the way i do it: > > $data = fread(fopen('uploads/assets/work_2009.doc', "r"), > filesize('uploads/assets/work_2009.doc)); > $response = $this->getContext()->getResponse(); >