# |
Sep 22nd 2011, 09:41 |
dogmatic69 |
!tell diverdude about conventions |
# |
Sep 22nd 2011, 09:41 |
dogmatic69 |
!tell diverdude about convetions |
# |
Sep 22nd 2011, 09:41 |
diverdude |
dogmatic69, what do you mean? profiles and childrenstatuses are both plural no? |
# |
Sep 22nd 2011, 09:41 |
isaqual |
rchavik: Thanks, I think that is the best way in this case. |
# |
Sep 22nd 2011, 09:40 |
dogmatic69 |
diverdude: ^ models are not plural |
# |
Sep 22nd 2011, 09:40 |
dogmatic69 |
http://bin.cakephp.org/view/1270416005 line 197 |
# |
Sep 22nd 2011, 09:40 |
francky06l |
Hi Bakers |
# |
Sep 22nd 2011, 09:40 |
dogmatic69 |
that will do |
# |
Sep 22nd 2011, 09:39 |
diverdude |
dogmatic69, was that what you were asking for? |
# |
Sep 22nd 2011, 09:37 |
diverdude |
Here is generated model http://bin.cakephp.org/view/1270416005 and the other table structure: http://bin.cakephp.org/view/2078923647 |
# |
Sep 22nd 2011, 09:36 |
rchavik |
isaqual, no.. you'll need to Configure::load() it in the shell |
# |
Sep 22nd 2011, 09:35 |
dogmatic69 |
not singular |
# |
Sep 22nd 2011, 09:35 |
dogmatic69 |
bin the table structure for the model*s* |
# |
Sep 22nd 2011, 09:35 |
diverdude |
the php file? |
# |
Sep 22nd 2011, 09:34 |
dogmatic69 |
the other model |
# |
Sep 22nd 2011, 09:34 |
diverdude |
dogmatic69, this is the table structure: http://bin.cakephp.org/view/1055359883 |
# |
Sep 22nd 2011, 09:32 |
dogmatic69 |
bin the table structure for the models |
# |
Sep 22nd 2011, 09:32 |
dogmatic69 |
diverdude: what is the fk |
# |
Sep 22nd 2011, 09:32 |
isaqual |
rchavik: If yes, that should be most natural way.. imho |
# |
Sep 22nd 2011, 09:31 |
isaqual |
rchavik: Settings are stored in db. Does shell tasks get inherited from config file ? |
# |
Sep 22nd 2011, 09:29 |
diverdude |
anyone? |
# |
Sep 22nd 2011, 09:27 |
rchavik |
isaqual, if you don't need vars from the controller, why not make it a config file ? |
# |
Sep 22nd 2011, 09:23 |
isaqual |
rchavik: Maybe youre right |
# |
Sep 22nd 2011, 09:20 |
diverdude |
Is Childrenstatus somehow a reserved property or something? I have baked a model of my table called profiles which has a foreignkey, Childrenstatus. I have also baked controller and views with CRUD actions. When i go to URL /profiles/add i get the error Undefined property: Profile::$Childrenstatus [APP/controllers/profiles_controller.php, line 46] |
# |
Sep 22nd 2011, 09:20 |
rchavik |
imo, you should refactor so that the settings initialization is in a component |
# |
Sep 22nd 2011, 09:18 |
isaqual |
rchavik: Setting i want to use are initialized there. I dont want to repeat same code again.. |
# |
Sep 22nd 2011, 09:17 |
rchavik |
isaqual, why do you need to import app_controller ? |
# |
Sep 22nd 2011, 09:11 |
isaqual |
.. and how to use that ? |
# |
Sep 22nd 2011, 09:11 |
isaqual |
how I can importi app controller in my shell task ? |
# |
Sep 22nd 2011, 09:10 |
diverdude |
hehe |
# |
Sep 22nd 2011, 09:06 |
Section58 |
i was trolling myself |
# |
Sep 22nd 2011, 09:00 |
diverdude |
just didnt understand his following comment :) |
# |
Sep 22nd 2011, 09:00 |
diverdude |
yeah |
# |
Sep 22nd 2011, 09:00 |
rchavik |
diverdude, Section58> an action would look like index() instead of admin_index() |
# |
Sep 22nd 2011, 08:59 |
diverdude |
? |
# |
Sep 22nd 2011, 08:59 |
Section58 |
ACTION can't belieave he wrote that out |
# |
Sep 22nd 2011, 08:59 |
Section58 |
an action would look like index() instead of admin_index() |
# |
Sep 22nd 2011, 08:58 |
Section58 |
public is no prefix |
# |
Sep 22nd 2011, 08:57 |
diverdude |
*prefix |
# |
Sep 22nd 2011, 08:56 |
diverdude |
so public = no prefic or public prefix? |
# |
Sep 22nd 2011, 08:56 |
diverdude |
guessing crud for public :) |