You can use an afterFind to concat the fields together in you model,
you can use myGenerateList for some funky options (though there are
plenty who look upon that method w/ scorn, if would seem), there are
plenty of possibilities.
Search around and you'll discover my troubles and (some)
How do I get more items to display in a list view in a baked app? I
need to extend the list from the default of 10
Thanks!
Beertigger
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post
D'oh!
Right there at the top of the controller...
Must.get.more.sleep.
Beertigger
On Aug 17, 8:37 am, Beertigger [EMAIL PROTECTED] wrote:
How do I get more items to display in a list view in a baked app? I
need to extend the list from the default of 10
Thanks!
Beertigger
with this one!
Beertigger
On Aug 14, 6:34 am, Beertigger [EMAIL PROTECTED] wrote:
Not... enough... caffeine...
Thanks /chagrin
On Aug 14, 4:11 am, Geoff Ford [EMAIL PROTECTED] wrote:
Try $listdata[$data['Team']['team']] = $data['Sport']['sport'] . '-' .
$data['Team']['team
, $teamsportlist);
Not tested but should work.
Geoff
--http://lemoncake.wordpress.com
On 8/10/07, Beertigger [EMAIL PROTECTED] wrote:
Still trying to concat data from two models into a select list in a
third.
Thanks for the help thus far, Geoff. Taking your advice, and some
input
Found this one earlier. What myGenerateList does, it does very well,
much easier than using an afterFind to concat things. But, from what I
can tell thus far, it has the same limitation, in that it can't
combine data across two models and display it in a third.
On Aug 13, 2:58 pm, cdomigan
no smiles from heaven for this one
Beertigger
On Aug 13, 7:30 pm, Geoff Ford [EMAIL PROTECTED] wrote:
You've got a error in the getListData function - remove the curly barce
between the end of the query and $listdata = array();
Geoff
On 8/14/07, Beertigger [EMAIL PROTECTED] wrote:
Found
'];
}
and later, in the 'add' function:
$this-set('listdata', $this-Model-getListData());
In the view:
echo $html-selectTag(Player/team, $teamsportlist, $selectedItems);
None of this seems to be working, no matter how I jigger things about.
Aargh!
--Beertigger
On Aug 8, 6:59 pm, Geoff Ford [EMAIL
it can be too hard to make it Cakeish and it is easier and
simpler to do the old php way. :)
Geoff
--http://lemoncake.wordpress.com
On Aug 8, 4:37 pm, Beertigger [EMAIL PROTECTED] wrote:
I must be far more retarded than the average bear, b/c this is
something I just can't get working
of the
ordinary it can be too hard to make it Cakeish and it is easier and
simpler to do the old php way. :)
Geoff
--http://lemoncake.wordpress.com
On Aug 8, 4:37 pm, Beertigger [EMAIL PROTECTED] wrote:
I must be far more retarded than the average bear, b/c this is
something I just can't
Somehow, this seems on the right track, but I couldn't get things to
work. Played around with a lot of different variations, but
*something* is not quite kosher, yet.
Thanks much for the guidance thus far.
Should the entire
$data = $this-Model-getListData(); // a function in your model that
Moving this one along a bit
I've tried every which way to get this one to work, and I'm stumped.
Using afterFind on info from one table works just fine; putting this
in the Player model:
function afterFind($results) {
foreach ($results as $key = $val) {
the same with query() and
pass those results to generateList(), but I've not tried that method
so can't say it would work, just thinking out loud. Hope that is
helpful.
On Jul 27, 11:17 pm,Beertigger[EMAIL PROTECTED] wrote:
Is there any way to get values from multiple fields into a select
Anyone? I'm pulling my hair out here. This is something that should be
basic, shouldn't it? I'll freely admit I'm an idiot, but I'm just not
understanding this ; (
Thanks to anyone willing to point me in the right direction.
On Aug 1, 9:38 am, Beertigger [EMAIL PROTECTED] wrote:
Multiple
You've got $taklist_data and (later) $tasklist_data
On Jul 31, 2:17 pm, rtanz [EMAIL PROTECTED] wrote:
why is it a typo?
function beforeSave() {
$taklist_data = $this-Tasklist-query(SELECT
`memberships`.`module_id`, `memberships`.`user_id`, `tasks`.`id`as
task_id
Is there any way to get values from multiple fields into a select box?
After much searching, I've come to the conclusion I'm not going to
find the answer without appealing to those far wiser than myself...
Here's an old thread for reference, which discusses, w/o resolution,
exactly what I'm
16 matches
Mail list logo