# |
Sep 13th 2009, 09:11 |
winegoddess |
i am viewing cake files in eclipse, and its saying there is an error in the views/scaffolds/view.ctp file - should i be concerned about this? |
# |
Sep 13th 2009, 09:10 |
winegoddess |
Hello everyone. Today is the day Im going to finish a simple cake example. I hope! |
# |
Sep 13th 2009, 09:10 |
nini |
NoReGreT: normally you should use Auth component for that. If you wont, i would recommend to create a login action in your users controller |
# |
Sep 13th 2009, 09:10 |
NoReGreT |
which is best |
# |
Sep 13th 2009, 09:10 |
NoReGreT |
or just add a "login" action to the posts controller ? |
# |
Sep 13th 2009, 09:09 |
NoReGreT |
nini: I do, let's stay with the blog tutorial for instance. If i want to add a login system, i should create a controller for tha ? |
# |
Sep 13th 2009, 09:08 |
nini |
NoReGreT: did you already checked out the cakephp book? do you understand MVC patterns? |
# |
Sep 13th 2009, 09:07 |
NoReGreT |
if i want to create a login system that when a user logs in, he gets for instance a patient view. In this case, I should create two controllers, one for patients and one for the login system ? |
# |
Sep 13th 2009, 09:05 |
nini |
GustavoRamos: what do you mean? |
# |
Sep 13th 2009, 09:04 |
Miroslav_Vojtu |
h |
# |
Sep 13th 2009, 09:04 |
Miroslav_Vojtu |
and THX so muc :-) |
# |
Sep 13th 2009, 09:04 |
GustavoRamos |
ru staff, nini? |
# |
Sep 13th 2009, 09:04 |
nini |
GustavoRamos: nice to hear that you liked it |
# |
Sep 13th 2009, 09:03 |
GustavoRamos |
to have that done with simple php i'd take 10 times what i lasted lol |
# |
Sep 13th 2009, 09:03 |
GustavoRamos |
already did the blog thing and works like a charm :) |
# |
Sep 13th 2009, 09:02 |
GustavoRamos |
with the Packt book |
# |
Sep 13th 2009, 09:02 |
GustavoRamos |
i'm studying the framework a bit |
# |
Sep 13th 2009, 09:02 |
GustavoRamos |
thanks nini |
# |
Sep 13th 2009, 09:00 |
nini |
GustavoRamos: http://book.cakephp.org/view/854/The-Pages-Controller |
# |
Sep 13th 2009, 08:59 |
GustavoRamos |
lol |
# |
Sep 13th 2009, 08:59 |
nini |
i love this bot |
# |
Sep 13th 2009, 08:59 |
nini |
~tell GustavoRamos about pages |
# |
Sep 13th 2009, 08:59 |
nini |
~tell GustavoRamos about pages_controller |
# |
Sep 13th 2009, 08:59 |
nini |
~tell GustavoRamos about pages controller |
# |
Sep 13th 2009, 08:59 |
GustavoRamos |
thx, nini! |
# |
Sep 13th 2009, 08:59 |
nini |
GustavoRamos: that are static pages, open http://yourapp/pages/yourPage |
# |
Sep 13th 2009, 08:57 |
GustavoRamos |
hey peeps! can anybody tell me whats that page on 1.2 ? /app/views/pages |
# |
Sep 13th 2009, 08:56 |
nini |
its ok ;) |
# |
Sep 13th 2009, 08:55 |
Miroslav_Vojtu |
sry i forget that i set contain => false :-).... really sorry |
# |
Sep 13th 2009, 08:54 |
nini |
then check your model relations |
# |
Sep 13th 2009, 08:54 |
Miroslav_Vojtu |
i thought but when i try it i get "Unknown column 'CatsColor.value' in 'where clause'" |
# |
Sep 13th 2009, 08:52 |
nini |
))) |
# |
Sep 13th 2009, 08:52 |
nini |
'CatsColor.value' => 'blue' |
# |
Sep 13th 2009, 08:52 |
nini |
$this->Cat->find('all', array('conditions'=>array( |
# |
Sep 13th 2009, 08:51 |
Miroslav_Vojtu |
please how can i to add find conditions to associated model..... f.e. i hav two models Cat and CatsColor and i need to find only cats with CatsColor.value = blue |
# |
Sep 13th 2009, 08:48 |
nini |
HardPhuck: Hmm. why not to save firm data to another variable, unset all $this->data[Firm] but it's id, then save user, then save firm with viariable created before? |
# |
Sep 13th 2009, 08:47 |
HardPhuck |
relation |
# |
Sep 13th 2009, 08:47 |
HardPhuck |
i would first unbind models, save user data, save firm data, bind models, save relatio |
# |
Sep 13th 2009, 08:46 |
nini |
HardPhuck: ? |
# |
Sep 13th 2009, 08:43 |
nini |
why would you do that? |
# |
Sep 13th 2009, 08:42 |
HardPhuck |
to destroy association while saving Firm data |