Re: generateList for unused items only?

2007-02-27 Thread Cynthia
Yes! That works! Sometimes I'm trying to think in a cake way and think there is a function or method somewhere, lol On Feb 24, 5:52 pm, Mariano Iglesias [EMAIL PROTECTED] wrote: If you have Number - belongsTo - Person, have you tried:

generateList for unused items only?

2007-02-24 Thread Cynthia
*sight* this framework is great but makes me feel very blonde :) I have: numbers BELONGS TO persons In the Add Person I have $this-Person-Number-generateList(); Now I get *all* telephone numbers of course. I only want to list the ones which aren't assigned yet. Feeding it additional conditions

Re: pagination issue in 1.2

2007-02-23 Thread Cynthia
Have you tried another nightly build? Try getting this to work in a completely clean view. There has go to be something else intefering. On Feb 22, 12:54 pm, isk [EMAIL PROTECTED] wrote: CAN ANYBODY HELP? --~--~-~--~~~---~--~~ You received this message

$html-link : add a class or style?

2007-02-23 Thread Cynthia
(Using 1.2) From digging around in the API and looking over the function link and the function _parseAttributes there seems to be no way to add a class or an inline style to a link? Any other way to accomplish this the Cake way? --~--~-~--~~~---~--~~ You

Re: 1.2 Pagination forgetting conditions?

2007-02-23 Thread Cynthia
I like using the session to carry over some parameters paginate would otherwise forget about :) On Feb 23, 7:27 pm, NOSLOW [EMAIL PROTECTED] wrote: I found that if you have other params set (field sort, direction, order), then you need to also unset those as well:

Re: $html-link : add a class or style?

2007-02-23 Thread Cynthia
Argh... strike that guys... NEVER change code at place A and do a view source of place B. Never. On Feb 23, 11:24 pm, Cynthia [EMAIL PROTECTED] wrote: (Using 1.2) From digging around in the API and looking over the function link and the function _parseAttributes there seems to be no way

Re: Populate select field from a db?

2007-02-21 Thread Cynthia
If those tables and your models are properly related you can do something like this: $one = $this-Whatever-Oneofyourtable-generateList(); $two = $this-Whatever-Othertable-generateList(); $this-set(compact('one', 'two')); On Feb 21, 4:38 pm, MickeU [EMAIL PROTECTED] wrote: Hi there, my first

Re: 1.2: Can I use new validation class in a component?

2007-02-21 Thread Cynthia
: For the most part, the methods of the Validation class can be accessed statically, i.e. to validate a date, you can just do Validation::date($date). There's also an optional $format parameter which defaults to 'ymd'. On Feb 21, 2:09 pm, Cynthia [EMAIL PROTECTED] wrote: I'm writing a component which

Re: pagination issue in 1.2

2007-02-21 Thread Cynthia
Try it with: var $paginate = array( 'limit' = 2); I don't set any page value and it works *great* for me :) On Feb 21, 3:34 pm, isk [EMAIL PROTECTED] wrote: thanks Preloader, I saw your trick in the groups - but it does not work for me (I use 1.2.0.4451alpha), parameters stay repeated even

Re: 1.2: Can I use new validation class in a component?

2007-02-21 Thread Cynthia
Looking at the new test file I think I have it. On top: uses('Validation'); then before use: $Validation = new Validation(); Then it works :-) On Feb 21, 6:07 pm, Cynthia [EMAIL PROTECTED] wrote: Hi Nate :-) After just having learned about using the Inflector statically I hoped

Re: 1.2: pagination related data in scaffolding-type baked views

2007-02-18 Thread Cynthia
these points, if nothing exchanges post here the DB structure and the Model code and we will try to figure it out! Good luck On Feb 17, 6:41 pm, Cynthia [EMAIL PROTECTED] wrote: I have a list of topics and each topics hasMany issues. After scaffolding I have used bake.php to create the MVC's

1.2: pagination related data in scaffolding-type baked views

2007-02-17 Thread Cynthia
I have a list of topics and each topics hasMany issues. After scaffolding I have used bake.php to create the MVC's. When I view the issues they paginate. When I view the topics they paginate. But when I view a single issue, I get this *huge* list of issues on the page. I've found one mention