Curl NOBODY problem

2010-06-15 Thread Manolet Gmail
Hi, i want to obtain the headers for this link http://freedfd.googlecode.com/files/FreeDFD-1.1.zip i set up this config for curl: $ch = curl_init(); curl_setopt ($ch, CURLOPT_URL, $url); curl_setopt ($ch, CURLOPT_HEADER, true); curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/4.0

rendimiento al editar archivos binarios

2010-05-26 Thread Manolet Gmail
Saludos, la pregunta que hare aqui no esta necesariamente relacionada con cake, pero cometo el pecado de hacerla en la lista por si alguien sabe como ayudarme, pues estoy usando cakephp en el proyecto. Actualmente tengo una aplicacion que edita un archivo binario cambiando 16 bytes que estan en la

Re: how to add a relationship whit other key different to the PK

2010-04-28 Thread Manolet Gmail
ur > purpose. > > COme to think of it, I may be wrong. I vaguely recall an RC for > Cake1.2 causing problems when the condition is not an array... and I > think you might need a string contition. > > > On Apr 28, 12:54 am, Manolet Gmail wrote: > > Hi, i have this table

how to add a relationship whit other key different to the PK

2010-04-27 Thread Manolet Gmail
Hi, i have this tables: Software Reviews Mirror Requirements Published Now, this is the relations: Software Has Many Reviews Software Has Many Mirrors Software HABTM Requirements Works fine. The problem is that i need to resume the tables to get a better response from mysql, the reviews tables

Re: Redirect and ajax form error.

2010-02-01 Thread Manolet Gmail
$this->redirect(array('controller' => 'authors','action'=>'index', 'admin' => true)); stilll broken... i think is a cake bug... On Mon, Feb 1, 2010 at 4:30 PM, ecommy.com wrote: > hmm, maybe try adding the admin url paramete

Redirect and ajax form error.

2010-02-01 Thread Manolet Gmail
Hi. Im sending a form by ajax to /admin/authors/add , the problem is that it tries to execute for 30 seconds and next give up with an error. The problem is obviusly is with this line of code: $this->redirect(array('controller' => 'authors','action'=>'index')); on the admin_add method. If i chan

Redirect and ajax form error.

2010-02-01 Thread Manolet Gmail
Hi. Im sending a form by ajax to /admin/authors/add the problem is that it tries to execute for 30 seconds and next give up with an error. The problem is obviusly this line of code: $this->redirect(array('controller' => 'authors','action'=>'index')); on the add method. If i change it with: Che

Plural Singular with software

2009-07-30 Thread Manolet Gmail
Hi, im building an application to collect pieces of software. the problem is that "software" dont have a plural form. i dont know what to do, i know i can create an inflector but... i dont know how to call the array for the foreachs, i mean foreach ($software(plural) as $software(singular) i know

Re: Question on the best way to proceed and stay true to MVC/CakePHP philosophy

2008-10-14 Thread Manolet Gmail
you can do a command controller, but anyway you should write the list of commands, there is a quick example (please correct it is just a guide) class commandcontroller extends appcontroller{ function index($command = 'error'){ if(function_exist( $this->{$command}()) ){ $this->{$command}() }else{