# |
Aug 8th 2008, 14:26 |
TommyO |
and the key is in the phrase "best known practices" |
# |
Aug 8th 2008, 14:26 |
TommyO |
*very |
# |
Aug 8th 2008, 14:25 |
TommyO |
CrazyTux[m]: the "why?" means "why deviate from best known practices?" "why not?" therefore would mean "why not deviate?" which has a ver obvious answer to it. |
# |
Aug 8th 2008, 14:24 |
TommyO |
and here you wouldn't need more than 1 model in it |
# |
Aug 8th 2008, 14:24 |
teknoid |
CrazyTux[m]: because you are bending rules, loading extra objects and setting yourself for problems down the road (if you don't do things correctly to begin with) |
# |
Aug 8th 2008, 14:24 |
TommyO |
CrazyTux[m]: in any case $uses is an override. you wouldn't need it if you used one of the real controllers |
# |
Aug 8th 2008, 14:24 |
CrazyTux[m] |
TommyO, ok now your confusing me :) |
# |
Aug 8th 2008, 14:23 |
TommyO |
why not is not as good a question as why? |
# |
Aug 8th 2008, 14:23 |
CrazyTux[m] |
teknoid, why does this matter? |
# |
Aug 8th 2008, 14:23 |
CrazyTux[m] |
teknoid, why not make it any other? |
# |
Aug 8th 2008, 14:23 |
teknoid |
CrazyTux[m]: and? |
# |
Aug 8th 2008, 14:22 |
CrazyTux[m] |
teknoid, this is the homepage. |
# |
Aug 8th 2008, 14:22 |
teknoid |
CrazyTux[m]: you probably need only one model there if the other two are related to it... still why not make a main page in TherapiesController? |
# |
Aug 8th 2008, 14:21 |
CrazyTux[m] |
TommyO, those two controllers exists, however this is the "main page" default, and I'm trying to show some info on it |
# |
Aug 8th 2008, 14:21 |
TommyO |
or a ConitionsController |
# |
Aug 8th 2008, 14:21 |
TommyO |
CrazyTux[m]: why not have this in a TherapiesController? |
# |
Aug 8th 2008, 14:20 |
CrazyTux[m] |
Why is it when I remove the $uses = array('Therapy') bit it is no longer "included" yet you guys say I do not need to reference it? |
# |
Aug 8th 2008, 14:20 |
TommyO |
what are you indexing here? |
# |
Aug 8th 2008, 14:20 |
TommyO |
CrazyTux[m]: this controller is riddled with problems |
# |
Aug 8th 2008, 14:20 |
CrazyTux[m] |
? |
# |
Aug 8th 2008, 14:19 |
teknoid |
^^^ indeed |
# |
Aug 8th 2008, 14:19 |
TommyO |
I'm afraid to ask what a MainController does exactly... |
# |
Aug 8th 2008, 14:19 |
teknoid |
CrazyTux[m]: take a look at the manual |
# |
Aug 8th 2008, 14:19 |
teknoid |
CrazyTux[m]: and also you don't need $uses (or at least not all of it), if you are using containable and have related models ther |
# |
Aug 8th 2008, 14:19 |
CrazyTux[m] |
teknoid, I changed referencing it from Model.property, to just property, and same issue, any more references/documents on Containable, I'm looking at the API. |
# |
Aug 8th 2008, 14:18 |
teknoid |
CrazyTux[m]: i told you earlier, that you are not using Containable correctly |
# |
Aug 8th 2008, 14:18 |
CrazyTux[m] |
Model B: http://pastebin.com/d73d5bd5d |
# |
Aug 8th 2008, 14:18 |
CrazyTux[m] |
Model A: http://pastebin.com/d6107e476 |
# |
Aug 8th 2008, 14:18 |
CrazyTux[m] |
Controller: http://pastebin.com/d3142a30c |
# |
Aug 8th 2008, 14:18 |
CrazyTux[m] |
teknoid, AD7six any ideas on why I'd get Model "Therapy" is not associated with model "id" when using ContainableBehavior? |
# |
Aug 8th 2008, 14:17 |
freebox2 |
TommyO: findBySlug() have $recursive? |
# |
Aug 8th 2008, 14:15 |
linked_ |
teknoid: hmmm..ok, i'll check it out. thanks. |
# |
Aug 8th 2008, 14:14 |
TommyO |
haha! |
# |
Aug 8th 2008, 14:13 |
AD7six |
how about as the answer to this TommyO "what happens if I unplug this cable?" |
# |
Aug 8th 2008, 14:12 |
TommyO |
don't say "try" if the U.S. President calls you and asks: "What happens if I press this red button?" |
# |
Aug 8th 2008, 14:11 |
AD7six |
TommyO: :). I have two answers "what's your best guess" and "try" |
# |
Aug 8th 2008, 14:11 |
TommyO |
freebox2: did you properly get that info in your find() ? |
# |
Aug 8th 2008, 14:11 |
teknoid |
linked_: have you looked at test cases? |
# |
Aug 8th 2008, 14:09 |
freebox2 |
I need some help: http://bin.cakephp.org/view/1972408233 at line 50 i need to do something like $comentario['Usuario']['nome']; but dosent work |
# |
Aug 8th 2008, 14:08 |
TommyO |
and assume that your understanding of Brian is solid |
# |
Aug 8th 2008, 14:08 |
TommyO |
AD7six: haha. if you asked me that my answer(of course) would be: "if you had to guess, what would your guess be?" |