simpletest model

2012-09-17 Thread edwingt
I wrote a test like this for tipo_vehiculo model in my app > > function testActive() { > $this->TipoVehiculo =& ClassRegistry::init('TipoVehiculo'); > $this->TipoVehiculo->recursive=-1; > $result = $this->TipoVehiculo->active(33); > $this->assertTrue($result); >

Re: cakephp Url question

2011-03-02 Thread edwingt
Yes is enabled, im think some configuration is missing. On 25 feb, 14:29, Stephen wrote: > Make sure mod_rewrite is enabled on the server. > > On 25 February 2011 18:58, edwingt wrote: > > > > > Hello every one > > I'm taking a cakePHP site that is show

cakephp Url question

2011-02-25 Thread edwingt
Hello every one I'm taking a cakePHP site that is showing http://serenata.krea-tec.net/index.php/serenatas/select_motive/1 I'm wondering why index.php is included in the url insted of http://serenata.krea-tec.net/serenatas/select_motive/1 Where this configuration is made, I'm tring to remove "index

Re: Ajax update without url / Just to show/hide some inputs

2010-02-16 Thread edwingt
I solved doing this echo $form->input('Periodico',array('onclick' =>"Effect.toggle('period', 'blind');")); because I already have scriptaculous working on my app. On 16 feb, 18:15, edwingt wrote: > Thanks Jhon > > On 16 feb, 10:1

Re: Ajax update without url / Just to show/hide some inputs

2010-02-16 Thread edwingt
Thanks Jhon On 16 feb, 10:11, John Andersen wrote: > What you want to do is not an ajax request, just use ordinary > javascript to hide/show the element. > Enjoy, >    John > > On Feb 16, 5:48 pm, edwingt wrote: > > > I have a questio, > > is posible to create a

Ajax update without url / Just to show/hide some inputs

2010-02-16 Thread edwingt
I have a questio, is posible to create an ajax call just to show and hide some iput fields. Without calling a controller action. Im using $options = array('url' => period,'update' => 'period', 'complete' => "Element.appear('period');"); echo $ajax->observeField('EventoPeriodico',$options); The fi

Re: design suggestion request

2009-12-29 Thread edwingt
You have to includ it in the vendors directory and load it as App::import More info here http://book.cakephp.org/view/538/Loading-Vendor-Files On 29 dic, 10:53, Lorenzo Bettini wrote: > Hi > > I've just started using cakephp and I'm porting an older application. > > I need to use a bibtex parser,

Problem understanding how this model object works

2009-12-29 Thread edwingt
I have a model object called "ImpresorasProducto" that belongs to a NxM relationship table impresoras_productos. When I'm in "ImpresorasProductosController" and debug the model object it prints this: ImpresorasProducto Object ( [name] => ImpresorasProducto [belongsTo] => Array (

Save null or empty datetime fields

2009-03-18 Thread edwingt
Hello, I want to save an empty date field, but I cant. There are some options to tell the date field that can be null? I already check that no rule is defined in the model, for the date field and the database date field accepts nulls. Any advice? --~--~-~--~~~---~--~--

Dynamic Form Field Generation in JavaScript

2008-07-17 Thread edwingt
Hello I have a master detail form where I need to generate dynamic detail form items. I can do it with java script as in this sample http://www.openjs.com/scripts/examples/addfield.php Adding forms fields like in the example is a good cakephp practice, or is another way to do it using the javascr

Call to undefined function cake_conn() in /var/www/cake/cake/libs/model/dbo/dbo_mysql.php on line 102

2008-05-02 Thread edwingt
I have this mesage after configurating the database.php file Call to undefined function cake_conn() in mydir/cake/libs/model/dbo/ dbo_mysql.php on line 102 I already verify the modrewrite and .htaccess files and im sure that mysql cli is configured with extension=mysql.so I surf the web for two