How to update but if field is empty not

2012-02-26 Thread reynie...@gmail.com
I need to run a save/update query but only update those fields that aren't empty. My form contains a FILE field and if I don't upload any file then when the save() is executed this field goes blank even if previous data is presented so how can I save/updated but onlye the fields with content to upd

How to wrap the active "number" link in tags at Paginator Helper

2012-02-25 Thread reynie...@gmail.com
Hi every: Because I'm using Bootstrap from Twitter and want to prettify my page ;) I need to set a {number} to the active element in Paginator Helper. Right now my code looks as follow: Paginator->prev('<< ', array('tag' => 'li'), null, array('class' => 'prev disabled', 'tag' => 'li'));

It's possible to use Uploader plugin in this case .... ???

2012-02-25 Thread reynie...@gmail.com
Hi every: After a lot of Google hours and finally I found a plugin for handle multiple files uploads. The address for this plugin is this one: http://milesj.me/code/cakephp/uploader#installation. Because I'm newbie with Cake I need your help on some parts. I have a table called "Records" and other

Re: How to retrieve all records from related tables?

2012-02-25 Thread reynie...@gmail.com
gsto> > -- > Lep pozdrav, Tilen Majerle > http://majerle.eu > > > > 2012/2/25 reynie...@gmail.com > >> Hi: >> I have a table called "*informations*" (http://pastebin.com/h3UiUhpx) >> and also have this associated tables "educations"

How to retrieve all records from related tables?

2012-02-25 Thread reynie...@gmail.com
Hi: I have a table called "*informations*" (http://pastebin.com/h3UiUhpx) and also have this associated tables "educations", "attachments" and "experiences" (http://pastebin.com/RdWzfria) (please see pastebin URLs I put the code there to not ugly the post). As you may notice all this tables have a

How to handle FILE input type when saving form information?

2012-02-24 Thread reynie...@gmail.com
Hi: I'm having some problems handling file uploads and database saving. I have a table where I need to store the route where uploaded files are saved but not know how to achieve this. I found this http://cakebaker.42dh.com/2006/04/15/file-upload-with-cakephp/ and I'm trying to adjust my code to fi

Re: How I can set "class" atributte for a Form?

2012-02-23 Thread reynie...@gmail.com
Thanks it works !! Ing. Reynier Pérez Mira http://reynierpm.site90.com/ On Thu, Feb 23, 2012 at 6:06 PM, Tilen Majerle wrote: > $this->From->create('Information', array('class' => 'yourclassname')); > -- > Lep pozdrav, Tilen Majerle > http

How I can set "class" atributte for a Form?

2012-02-23 Thread reynie...@gmail.com
Hi: I was reading the doc for Form Helper finding how to add "class" attribute to a tag but can't find how, can any point me in the right direction? I'm generating the form with this code: "echo $this->Form->create('Information');" Ing. Reynier Pérez Mira http://reynierpm.site90.com/ -- Our new

Re: The classic "Fatal error: Call to a member function find() on a non-object" for newbie

2012-02-23 Thread reynie...@gmail.com
Ohhh thanks I miss this part now it works. Ing. Reynier Pérez Mira http://reynierpm.site90.com/ On Thu, Feb 23, 2012 at 5:48 PM, jeremyharris wrote: > It's because the item Country does not exist on Information. Models are > always singular, so where you have Countries defined in your Informa

Re: Error while trying to bake model for specific table

2012-02-23 Thread reynie...@gmail.com
And? What's the solution for this problem? How I can fix this? Ing. Reynier Pérez Mira http://reynierpm.site90.com/ On Thu, Feb 23, 2012 at 5:30 PM, jeremyharris wrote: > The model it is probably looking for is Person, which in english is the > singular of People. > > So PeopleController uses

Problems with cake bake

2012-02-23 Thread reynie...@gmail.com
Hi: I'm trying to bake one of my DB tables and this is what I'm doing: 1) Create (M)odel for TblInformations table 2) Create (M)odel for TblInformationTypes table 3) Create (V)iew for TblInformationTypes table but at this step I get stucked and this error appear: Error: Database table information

Re: Styles and JS not loaded

2012-02-23 Thread reynie...@gmail.com
Ok sorry for that my bad I'm using ->script when should be ->css miss this mail :-( Ing. Reynier Pérez Mira http://reynierpm.site90.com/ On Thu, Feb 23, 2012 at 9:19 AM, reynie...@gmail.com wrote: > Hi: > I'm trying to use Twitter Bootstrap for the look & feel of m

Re: Why data isn't showed?

2012-02-23 Thread reynie...@gmail.com
llers are > CountriesController (pluralized)) > -- > Lep pozdrav, Tilen Majerle > http://majerle.eu > > > > 2012/2/23 reynie...@gmail.com > >> OK, I made some changes to my DB structure and also to my code but still >> getting errors, see below what I'm doing now.

Styles and JS not loaded

2012-02-23 Thread reynie...@gmail.com
Hi: I'm trying to use Twitter Bootstrap for the look & feel of my application but I must doing something wrong because does not work :-(. I've created a file called default.ctp under View/Layouts folder and in this file I use this code for styles: Html->script('bootstrap.min.css'); ?> B

Re: Why data isn't showed?

2012-02-23 Thread reynie...@gmail.com
n' => 'index')); } else { $this->Session->setFlash(__('Unable to update the country.')); } } } But I get this error: Missing Database Table Error: Database table countries for model Country was not found. Why? Ing. Reynier Pérez Mira http://reynierpm.site90

Re: Why data isn't showed?

2012-02-23 Thread reynie...@gmail.com
eb 23, 2012 at 7:40 AM, Tilen Majerle wrote: > http://book.cakephp.org/2.0/en/getting-started/cakephp-conventions.html > > look here, cakephp conventions > -- > Lep pozdrav, Tilen Majerle > http://majerle.eu > > > > 2012/2/23 reynie...@gmail.com > >> Hi Tilen, I

Re: Why data isn't showed?

2012-02-23 Thread reynie...@gmail.com
should use camelized and singularized name, so $this->Country->id = > $id and it will work > > > > VIEW: > Form::create(); here you should have the same model name as you pass data, > "Country" and not CountryFrm > -- > Lep pozdrav, Tilen Majerle > http://m

Using $content_for_layout how :-(

2012-02-23 Thread reynie...@gmail.com
Hi every, I'm newbie using CakePHP and have several doubts and here I come with two of them. I'm trying to use Twitter Bootstrap to build my application Layout, now: - I've created the file View/Layouts/default.ctp and inside in the code I need to use $content_for_layout ($this->fetch it's o

Re: I can find() but can't save(), why?

2011-10-05 Thread reynie...@gmail.com
What you mean with debug the save function? This debug($this->Modalidad->save()); or you mean using a IDE like Netbeans? Ing. Reynier Pérez Mira Cel: +58 416.921.7406 Correo: reynie...@gmail.com / reynie...@hotmail.com On Sun, Oct 2, 2011 at 5:31 PM, AD7six wrote: > > > On

Re: I can find() but can't save(), why?

2011-10-02 Thread reynie...@gmail.com
e them and try to > save. > > > On Sun, Oct 2, 2011 at 6:14 PM, CrotchFrog wrote: > >> Just wondering if this issue has been resolved? I'm having the same >> problem with 2.0 RC2. >> >> On Sep 30, 4:46 am, "reynie...@gmail.com" wrote: >>

Re: I can find() but can't save(), why?

2011-10-02 Thread reynie...@gmail.com
Well I'm using 1.3.12 so I didn't know where it fails On Oct 2, 2011 11:45 AM, "CrotchFrog" wrote: > Just wondering if this issue has been resolved? I'm having the same > problem with 2.0 RC2. > > On Sep 30, 4:46 am, "reynie...@gmail.com" wrote: &g

Re: I can find() but can't save(), why?

2011-09-30 Thread reynie...@gmail.com
Return "Entro" so it goes trough (!empty($this->data)) :-( Ing. Reynier Pérez Mira Cel: +58 416.921.7406 Correo: reynie...@gmail.com / reynie...@hotmail.com On Fri, Sep 30, 2011 at 4:10 AM, Jeremy Burns | Class Outfit < jeremybu...@classoutfit.com> wrote: > Try this

Re: I can find() but can't save(), why?

2011-09-30 Thread reynie...@gmail.com
ing to me Ing. Reynier Pérez Mira Cel: +58 416.921.7406 Correo: reynie...@gmail.com / reynie...@hotmail.com On Thu, Sep 29, 2011 at 12:33 PM, Toby G wrote: > I think we'll need some more info... > > I woud suggest inspecting your validation erros to see if that's > prevent

Re: I can find() but can't save(), why?

2011-09-30 Thread reynie...@gmail.com
; fsdfsdfd ) )* So there is data and no errors :-( Ing. Reynier Pérez Mira Cel: +58 416.921.7406 Correo: reynie...@gmail.com / reynie...@hotmail.com On Fri, Sep 30, 2011 at 4:02 AM, reynie...@gmail.com wrote: > Well the DB isn't MySQL it's SQLite3 ;) I debug $this->data

Re: I can find() but can't save(), why?

2011-09-30 Thread reynie...@gmail.com
Didn't work either and not, I not change the structure of the table or database :-( Ing. Reynier Pérez Mira Cel: +58 416.921.7406 Correo: reynie...@gmail.com / reynie...@hotmail.com On Fri, Sep 30, 2011 at 2:52 AM, abhimanyu bv wrote: > check this: > http://pastebin.com/MKT4RVkK &

Re: I can find() but can't save(), why?

2011-09-29 Thread reynie...@gmail.com
You mean this: http://pastebin.com/6UsGga4k, didn't work either but it die "Entro" ,what I'm doing wrong? Need the SQLite3 DB specials permissions? I'm in Win7 x64 with XAMPP. Ing. Reynier Pérez Mira Cel: +58 416.921.7406 Correo: reynie...@gmail.com / reynie...@hotmail.co

I can find() but can't save(), why?

2011-09-29 Thread reynie...@gmail.com
orreo: reynie...@gmail.com / reynie...@hotmail.com -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send ema

Error while trying to connect to SQLite3 database

2011-09-28 Thread reynie...@gmail.com
ny tell me why or where it fails? Cheers and thx in advance Ing. Reynier Pérez Mira Cel: +58 416.921.7406 Correo: reynie...@gmail.com / reynie...@hotmail.com -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.c