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: Issue with Form Helper array('type' => 'file')

2012-02-25 Thread Kro
Couldn't have done it without you...cheers... On Feb 25, 8:17 pm, jeremyharris wrote: > Awesome, glad you figured it out! > > > > > > > > On Saturday, February 25, 2012 10:48:59 AM UTC-8, Kro wrote: > > > Thank you so much, it's working now! You were spot on, it was the > > Couplers beforesave th

Issues with join

2012-02-25 Thread bbowler86
I have written a function that joins together two fields, the query that gets outputted for some reason has the ' instead of the ` symbols. The following code: $conditions = array('Formula.formulasId' => $id); $fields = array( 'materials.des

Re: Issue with Form Helper array('type' => 'file')

2012-02-25 Thread jeremyharris
Awesome, glad you figured it out! On Saturday, February 25, 2012 10:48:59 AM UTC-8, Kro wrote: > > Thank you so much, it's working now! You were spot on, it was the > Couplers beforesave that was unsetting the data. I have stopped it > doing that now and I can't see why that would cause any othe

Re: Issue with Form Helper array('type' => 'file')

2012-02-25 Thread Kro
Thank you so much, it's working now! You were spot on, it was the Couplers beforesave that was unsetting the data. I have stopped it doing that now and I can't see why that would cause any other issues. The change I have made is as follows: function beforeSave(&$Model) { if (!$M

Re: Custom model association column

2012-02-25 Thread jeremyharris
Cake will automatically build that condition based off of the current model's primary key and the foreignKey you specify in the $hasMany relationship. You can supply additional conditions using the 'conditions' key on that relationship. $hasMany = array( 'Content' => array( 'foreignKey' => 'sub

Re: Custom model association column

2012-02-25 Thread djogo
Hello all, Your suggestions would work, however I`m trying to get a shortcut here => eliminating the Subject. is there any way that we could specify a join condition, like 'hasMany' => array( 'model' => 'Contents', 'join' => 'Contents.subject_id = HospitalAdmission.subject_id' ... )

Re: How to retrieve all records from related tables?

2012-02-25 Thread reynie...@gmail.com
Read which part of the manual? All or just Conventions related? I'm having a lot of headaches with this Ing. Reynier Pérez Mira http://reynierpm.site90.com/ On Sat, Feb 25, 2012 at 10:22 AM, Tilen Majerle wrote: > foreign keys in http://pastebin.com/RdWzfria (this tables) are > incorrect. in

Re: How to retrieve all records from related tables?

2012-02-25 Thread Tilen Majerle
i looked at ur code again...you have completely failed all conventions from cake...read manual again :) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/2/25 Tilen Majerle > foreign keys in http://pastebin.com/RdWzfria (this tables) are > incorrect. in all three tables you have " informat

Re: How to retrieve all records from related tables?

2012-02-25 Thread Tilen Majerle
foreign keys in http://pastebin.com/RdWzfria (this tables) are incorrect. in all three tables you have " informations_id ", it should be "information_id" http://book.cakephp.org/2.0/en/models/associations-linking-models-together.html

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

Moneybookers payment gateway

2012-02-25 Thread Sebastian
Hello everybody!! I have problem with moneybookers payment gateway, i need your help. My problem is no received post data in the status_url. If anyone has any idea and can help me with my problem, of course thank you very much. Sebastian -- Our newest site for the community: CakePHP Video Tutori

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

2012-02-25 Thread crazymus
Thanks,i'm new to Cake in China~ On Feb 24, 6:36 am, Tilen Majerle wrote: > $this->From->create('Information', array('class' => 'yourclassname')); > -- > Lep pozdrav, Tilen Majerlehttp://majerle.eu > > 2012/2/23 reynie...@gmail.com > > > > > > > > > Hi: > > I was reading the doc for Form Helper

Re: problems with belongsTo and hasMany...

2012-02-25 Thread Miguel Ángel Moreno Armenteros
PS: This happens with Cake 2.0 I "installed" cake 1.3 and this error doesnt happen. There is any change of convention? Any bug about it? On 24 feb, 09:36, Miguel Ángel Moreno Armenteros wrote: > I also did :-( it is so frustrating... because the amount of code is > absurd! > > i also tried with

Re: Form input selected

2012-02-25 Thread heohni
Hi Mark! What do you mean by "passing it on to the view via $this->request- >data"? Can you please give me an example? On 25 Feb., 01:10, euromark wrote: > yes you should never use those named params without checking for them > first > > and - I would put the logic in the controller > passing it