Page 6 of 3,908, showing 100 records out of 390,718 total, starting on record 501, ending on 600
# | Username | Text | |
---|---|---|---|
# | Aug 16th 2008, 15:46 | francky06l | en gros tu veux les dfTeam qui ont des dfWar.status = 2 ... |
# | Aug 16th 2008, 15:47 | foxmask | oui |
# | Aug 16th 2008, 15:47 | foxmask | c exactement ca |
# | Aug 16th 2008, 15:48 | francky06l | alors il te suffit the refaire le bindModel de dfTeam sur dfWar avec hasOne .. donc tu pourra avoir dfWar.status en condition .. Ensuite il suffit de mettre une notion "group" .. 'group' => 'DfTeam.id' |
# | Aug 16th 2008, 15:49 | francky06l | si tu fais paginate, dans le bindModel, oublies pas reset = false, dernier parametre |
# | Aug 16th 2008, 15:49 | foxmask | là tu m'as perdu ;) |
# | Aug 16th 2008, 15:49 | francky06l | attend je trouve un exemple (mais pas avec les meme models) ca te donneras une idee |
# | Aug 16th 2008, 15:49 | foxmask | ok |
# | Aug 16th 2008, 15:52 | francky06l | http://bin.cakephp.org/view/881577601 |
# | Aug 16th 2008, 15:53 | francky06l | bon c'est pas la meme chose, mais ca s'approche ..Normalement j'ai Partner hasMany Center, je filtre sur Center .... |
# | Aug 16th 2008, 15:53 | foxmask | ok ! |
# | Aug 16th 2008, 15:53 | francky06l | si me donnes une definition de tes models, je t'arrange ca |
# | Aug 16th 2008, 15:56 | foxmask | http://bin.cakephp.org/view/340935426 |
# | Aug 16th 2008, 15:58 | foxmask | http://bin.cakephp.org/saved/36228 |
# | Aug 16th 2008, 15:58 | foxmask | jai oublie un model ;) |
# | Aug 16th 2008, 15:58 | foxmask | enfin avec ce que tu m'as mis je m'en sortirai je pense |
# | Aug 16th 2008, 15:59 | francky06l | en fait comme DwFarr belongsTo DfTeam, pkoi tu fais pas la query sur dfWar ? (y a surement une raison mais comme je vois le model ...) |
# | Aug 16th 2008, 15:59 | foxmask | oui je peux |
# | Aug 16th 2008, 15:59 | foxmask | mais |
# | Aug 16th 2008, 15:59 | foxmask | si je fais la query sur dfwar |
# | Aug 16th 2008, 16:00 | foxmask | c'est tordu pour produire ca par equipe |
# | Aug 16th 2008, 16:00 | foxmask | http://www.team-oo.net/index.php/dfss/war/list |
# | Aug 16th 2008, 16:00 | foxmask | j'itere sur les war mais je veux affiche la liste des war par team |
# | Aug 16th 2008, 16:00 | francky06l | foxmask: tu peux mettre une close "group" => 'DfWar.team_id' |
# | Aug 16th 2008, 16:00 | foxmask | dans le paginate ? |
# | Aug 16th 2008, 16:01 | francky06l | oui |
# | Aug 16th 2008, 16:01 | foxmask | je tente |
# | Aug 16th 2008, 16:01 | francky06l | enfin je pense .. a verfiier, mais je crois que je l'ai fait .. |
# | Aug 16th 2008, 16:02 | francky06l | Y a pas de raison, car c'est dans le find ..Y a juste peut etre le count (paginateCount) qui risque de "merder", mais c;est facile a faire |
# | Aug 16th 2008, 16:06 | foxmask | avec ou sans le group c'est pareil http://bin.cakephp.org/view/157177565 |
# | Aug 16th 2008, 16:09 | francky06l | hummm pourtant .... je verifies un truc |
# | Aug 16th 2008, 16:12 | foxmask | sinon ce que j'ai fait pour que ca marche autrement (mais c'est evidement pas optimum) : |
# | Aug 16th 2008, 16:12 | foxmask | $Teams = $this->requestAction('dfss/df_teams/index'); |
# | Aug 16th 2008, 16:12 | foxmask | foreach ($Teams as $team) : |
# | Aug 16th 2008, 16:12 | foxmask | dans le foreach je lis les $war et je test sur team-id |
# | Aug 16th 2008, 16:12 | foxmask | c'est pas gégène mais bon |
# | Aug 16th 2008, 16:13 | foxmask | foreach ($wars as $war): if ($war['DfTeam']['team_id'] == $team['DfTeam']['team_id']) : |
# | Aug 16th 2008, 16:13 | foxmask | ... endforeach ; endif ; endforeach; |
# | Aug 16th 2008, 16:13 | francky06l | http://bin.cakephp.org/view/157177565 |
# | Aug 16th 2008, 16:14 | francky06l | mais j'ai fait une erreur, sors le "group by" au niveau du or .. |
# | Aug 16th 2008, 16:15 | foxmask | ok |
# | Aug 16th 2008, 16:15 | francky06l | en fait non je crois que cest bon .. |
# | Aug 16th 2008, 16:19 | francky06l | pas mieux? |
# | Aug 16th 2008, 16:19 | foxmask | non |
# | Aug 16th 2008, 16:19 | francky06l | bizarre .... |
# | Aug 16th 2008, 16:19 | foxmask | ba je trouve pas ;) |
# | Aug 16th 2008, 16:20 | foxmask | en partant des war on peut pas avoir DfTeam => Array ( DfWar=> ... |
# | Aug 16th 2008, 16:20 | francky06l | il me semble que j'avais resolu ca pourtant ..... mais peut etre ca vient du modele members .. |
# | Aug 16th 2008, 16:20 | francky06l | Avec le group on devrait pouvoir |
# | Aug 16th 2008, 16:20 | foxmask | possible |
# | Aug 16th 2008, 16:22 | francky06l | sinon reste la solutiondu unbind et bind ... mais faudra mettre un paginateCount dans le model, sinon les team qui ont plusieurs War vont etre comptees plusieurs fois |
# | Aug 16th 2008, 16:25 | francky06l | regarde le dernier post ... ca ressemble a ce que tu cherches, juste la conditions a modifier (ceci dit la personne ne dit pas si c'est bon ) .. http://groups.google.com/group/cake-php/browse_thread/thread/119d0fdcb7caa6e7/0530f08d2a5e55d2?lnk=gstandq=paginate+and+group#0530f08d2a5e55d2 |
# | Aug 16th 2008, 16:31 | francky06l | tu peux aussi essayer dans 'fields' => array('DISTINCT DfWar.team_id', 'other fields') .... |
# | Aug 16th 2008, 16:45 | foxmask | on peut pas faire un distinct |
# | Aug 16th 2008, 16:45 | foxmask | ni group by |
# | Aug 16th 2008, 16:46 | foxmask | comme on utilise war_id et team_id ba on a toujours plus d'un record par team |
# | Aug 16th 2008, 16:46 | foxmask | mais te bile pas je m'en sors qd meme ;) |
# | Aug 16th 2008, 16:50 | foxmask | mais lol ; le dernier episode de lost |
# | Aug 16th 2008, 18:00 | foxmask | bn |
# | Aug 17th 2008, 04:40 | foxmask | yo |
# | Aug 17th 2008, 05:07 | foxmask | ACTION se mu en bricole girl |
# | Aug 17th 2008, 05:50 | francky06l | salut Fox |
# | Aug 17th 2008, 05:50 | francky06l | J'ai trouve pour le paginate avec group :-) |
# | Aug 17th 2008, 05:53 | foxmask | francky06l: lol |
# | Aug 17th 2008, 05:53 | foxmask | plus tetu ue moi ;) |
# | Aug 17th 2008, 05:53 | foxmask | francky06l: ca va ? |
# | Aug 17th 2008, 05:53 | francky06l | -) peut etre |
# | Aug 17th 2008, 05:53 | francky06l | ca va oui |
# | Aug 17th 2008, 05:53 | foxmask | j'etais en mode "bricole girl" a pose un rideau filet pour mme fox |
# | Aug 17th 2008, 05:54 | francky06l | Ben je me suis leve y a une heure, et la je traine avec mon cafe ... fait trop chaud dehors deja .. |
# | Aug 17th 2008, 05:54 | foxmask | ma femme est asthmatic et elle me fait poser un truc qui va retenir la poussiere encore plus ... |
# | Aug 17th 2008, 05:54 | foxmask | ah ? |
# | Aug 17th 2008, 05:54 | foxmask | mopi limite il flote |
# | Aug 17th 2008, 05:54 | foxmask | me suit coucher a 3h lever 10h45 :) |
# | Aug 17th 2008, 05:54 | foxmask | vais à la douche |
# | Aug 17th 2008, 05:54 | francky06l | Moi environ 3h00 et leve a 12h00 .. ca fait du bien, demain sera un autre lundi |
# | Aug 17th 2008, 06:13 | foxmask | re |
# | Aug 17th 2008, 06:14 | francky06l | re |
# | Aug 17th 2008, 06:21 | francky06l | T'as fini le bricol girl .. Il tient bien ce rideau :-) |
# | Aug 17th 2008, 06:21 | francky06l | Faut que je passe en mode "Nicolas le jardinier", un citronnier a planter !! |
# | Aug 17th 2008, 06:23 | foxmask | ah :) |
# | Aug 17th 2008, 06:27 | foxmask | francky06l: tu connaitrais un moyen de mettre, comme pour le javascript, une css dans le header html ? et par dessus le marché, ne l'y mettre qu'une seule fois ;) |
# | Aug 17th 2008, 06:27 | foxmask | je pourrais le faire mais pas baker ;) |
# | Aug 17th 2008, 06:28 | francky06l | l'y mettre qu'une seule fois ? dans le layout alors? |
# | Aug 17th 2008, 06:28 | foxmask | oui mais sans pouvoir toucher à celui ci |
# | Aug 17th 2008, 06:28 | francky06l | le scripts_for_layout prend aussi le css je crois ... Mais je comprends pas le 1 seule fois? |
# | Aug 17th 2008, 06:28 | foxmask | en fait |
# | Aug 17th 2008, 06:29 | foxmask | jai des elements |
# | Aug 17th 2008, 06:29 | foxmask | qui utilise cette css |
# | Aug 17th 2008, 06:29 | francky06l | tu veux que cette css ne soit presente que pour ces elements la ? |
# | Aug 17th 2008, 06:29 | foxmask | si je fais $html->css('truc',false) comme pour la javascript (à supposer que ca marche) ; ca va m'ajouter dans le haeder autant de fois que j'ai d'elements |
# | Aug 17th 2008, 06:30 | francky06l | Si tu le cache en file ca n'ajouteras pas |
# | Aug 17th 2008, 06:31 | foxmask | ok je vais regarder de ce coté |
# | Aug 17th 2008, 06:32 | francky06l | regarde dans le blog de Nate (la section 3 ) : https://www.google.com/reader/view/?tab=my#stream/feed%2Fhttp%3A%2F%2Fcake.insertdesignhere.com%2Fposts.rss |
# | Aug 17th 2008, 06:36 | francky06l | par contre je sais pas pour les css, mais ca devrait n'ajouter que le lien en fait ... C'est pas comme le js ... enfin jamais trop creuse ca |
# | Aug 17th 2008, 06:36 | foxmask | ya un pb sur le siute ;) |
# | Aug 17th 2008, 06:36 | foxmask | Warning: require(cake/bootstrap.php) [function.require]: failed to open stream: No such file or directory in /usr/local/web/htdocs/insertdesignhere/cake/webroot/index.php on line 99 |
# | Aug 17th 2008, 06:36 | foxmask | lol |
# | Aug 17th 2008, 06:36 | foxmask | bon bref ;) |
# | Aug 17th 2008, 06:40 | francky06l | Oui c'est pasce que je l'ai recupere avec RSS ... prend insetrdesignhere.com ... |