# |
Sep 21st 2011, 12:17 |
bioiq |
there's no folder console... what is the right one to use? |
# |
Sep 21st 2011, 11:55 |
bioiq |
ok |
# |
Sep 21st 2011, 11:55 |
rchavik |
eg: export PATH=$PATH:~/cake/console |
# |
Sep 21st 2011, 11:54 |
rchavik |
yes, as long as you have them on your path |
# |
Sep 21st 2011, 11:53 |
bioiq |
ok, i'll dl 2.0... but do i have cake bake commands with the package? do I have to configure them on ubuntu? |
# |
Sep 21st 2011, 11:51 |
rchavik |
1.3 is considered stable, but 2.0 would be out soon. if you're creating new project, might be a good idea to use 2.0 straight away |
# |
Sep 21st 2011, 11:51 |
bioiq |
it is better to download the version 1.3 or 2.0? |
# |
Sep 21st 2011, 11:46 |
rchavik |
it does.. i've done the same thing.. perhaps you've unbind somewhere |
# |
Sep 21st 2011, 11:43 |
Tykling |
yeah, that's what I assumed |
# |
Sep 21st 2011, 11:42 |
rchavik |
okay.. even so, the related models should be available in behavior.. |
# |
Sep 21st 2011, 11:42 |
Tykling |
rchavik: I got it working by using ClassRegistry::init to load the missing models, thanks anyway! |
# |
Sep 21st 2011, 11:41 |
Tykling |
could've been the wastebin you were referring to ;) |
# |
Sep 21st 2011, 11:41 |
Tykling |
haha sorry, brainfart |
# |
Sep 21st 2011, 11:41 |
rchavik |
~tell Tykling about bin |
# |
Sep 21st 2011, 11:41 |
Tykling |
oh lol you mean pastebin |
# |
Sep 21st 2011, 11:41 |
Tykling |
rchavik: I don't follow, do you mean throw it away ? |
# |
Sep 21st 2011, 11:40 |
bioiq |
yes |
# |
Sep 21st 2011, 11:40 |
rchavik |
bioiq, ^ |
# |
Sep 21st 2011, 11:40 |
rchavik |
~downloads |
# |
Sep 21st 2011, 11:40 |
rchavik |
~download |
# |
Sep 21st 2011, 11:39 |
bioiq |
tnx rchavik, and can u tell me how to get the latest version? is there a way with apt-get? |
# |
Sep 21st 2011, 11:38 |
rchavik |
Tykling, you should bin your behavior code |
# |
Sep 21st 2011, 11:27 |
Tykling |
which leads me to believe that related models are either not available in behaviors, or that I should do it another way :) |
# |
Sep 21st 2011, 11:26 |
Tykling |
$Model->Profile->find gives me error "Undefined property" |
# |
Sep 21st 2011, 11:26 |
rchavik |
perhaps $Model->Profile, where $Model is passed as the first argument for behavior's method |
# |
Sep 21st 2011, 11:24 |
Tykling |
how do I access a related model inside a behavior ? say User actas mybehavior, and User hasone profile, how would I access the profile model inside mybehavior ? |
# |
Sep 21st 2011, 11:23 |
rchavik |
bioiq, no... you'll be better off getting latest from repo |
# |
Sep 21st 2011, 11:04 |
bioiq |
right at the start i got errors running 'cake bake all' |
# |
Sep 21st 2011, 11:04 |
bioiq |
i just got cake via apt-get repositories. The version is 1.2.4. Is it ok to follow the 1.3 tutorial cookbook? |
# |
Sep 21st 2011, 10:43 |
Section58 |
i asume that fixed ? |
# |
Sep 21st 2011, 10:37 |
DidItAgain |
ok will do |
# |
Sep 21st 2011, 10:37 |
Section58 |
if the naming is slightly wrong, cake will search for linkage relations that don't exsist |
# |
Sep 21st 2011, 10:36 |
Section58 |
also look at your $name vars inside your models/controllers |
# |
Sep 21st 2011, 10:36 |
Section58 |
so yeah, rename model file, it might just work (tm) |
# |
Sep 21st 2011, 10:35 |
Section58 |
InstalledBase.php is the correct version for cake 2.0 if your controller was Installed Base, but its not, its Installedbase |
# |
Sep 21st 2011, 10:35 |
Section58 |
for 1.3 in the naming convention of how your controller is |
# |
Sep 21st 2011, 10:35 |
DidItAgain |
okay, what am I doing wrong |
# |
Sep 21st 2011, 10:35 |
Section58 |
your model should look like installedbase.php |
# |
Sep 21st 2011, 10:35 |
DidItAgain |
o_O |
# |
Sep 21st 2011, 10:34 |
Section58 |
the naming is like 1/3 meets 2.0 |
# |
Sep 21st 2011, 10:34 |
Section58 |
so |