# |
Sep 21st 2011, 13:25 |
daVinciWanaB |
frank: but you'll still need a login.ctp (or users/login.ctp) - if that's where the browse is directin |
# |
Sep 21st 2011, 13:24 |
daVinciWanaB |
franki: shouldn't have to, no |
# |
Sep 21st 2011, 13:24 |
daVinciWanaB |
dogmatic69: i also said "to replace textareas" |
# |
Sep 21st 2011, 13:24 |
franki |
do i have to delete the previous file? |
# |
Sep 21st 2011, 13:24 |
franki |
and moved the login.ctp to the element dir |
# |
Sep 21st 2011, 13:24 |
franki |
so i added $this->element('login') |
# |
Sep 21st 2011, 13:24 |
dogmatic69 |
daVinciWanaB: you asked for a text editor, not a wysiyg |
# |
Sep 21st 2011, 13:24 |
daVinciWanaB |
franki: you can just save it in the views/elements folder, then include it like: echo $this->element('whatever'); |
# |
Sep 21st 2011, 13:23 |
franki |
i wanted to use it as element |
# |
Sep 21st 2011, 13:23 |
daVinciWanaB |
dogmatic69: i assume you're joking |
# |
Sep 21st 2011, 13:23 |
franki |
i made a login module |
# |
Sep 21st 2011, 13:23 |
daVinciWanaB |
fraki: what do you mean "how to use"? |
# |
Sep 21st 2011, 13:23 |
dogmatic69 |
daVinciWanaB: $this->Form->input('foo', array('type' => 'textarea')); is about as simple as it gets |
# |
Sep 21st 2011, 13:23 |
franki |
and they work if taken singularly |
# |
Sep 21st 2011, 13:23 |
TehTreag |
wysiwyg? tinymce https://github.com/CakeDC/TinyMCE |
# |
Sep 21st 2011, 13:22 |
franki |
anyone have some good guide on how to use elements?i've added few modules that i wanted into a single page but they dont work there |
# |
Sep 21st 2011, 13:22 |
daVinciWanaB |
any thoughts on the best simple text editor (to replace textareas) |
# |
Sep 21st 2011, 13:22 |
dogmatic69 |
yes |
# |
Sep 21st 2011, 13:22 |
asmerkin |
is a good practice to override the pages_controller with my own logic? |
# |
Sep 21st 2011, 13:21 |
dogmatic69 |
!tell asmerkin about apilookup controller layout |
# |
Sep 21st 2011, 13:21 |
pur3forlyphe |
working tehtreag cheers |
# |
Sep 21st 2011, 13:20 |
asmerkin |
dogmatic69: i know html, thanks! |
# |
Sep 21st 2011, 13:20 |
asmerkin |
layout and that stuff |
# |
Sep 21st 2011, 13:20 |
asmerkin |
i mean, to setup certain parameters to static pages |
# |
Sep 21st 2011, 13:20 |
dogmatic69 |
!tell asmerkin about google html |
# |
Sep 21st 2011, 13:20 |
TehTreag |
asmerkin: What do you mean? |
# |
Sep 21st 2011, 13:19 |
asmerkin |
is there a way of customizing static pages ? |
# |
Sep 21st 2011, 13:19 |
pur3forlyphe |
ty will try now |
# |
Sep 21st 2011, 13:19 |
TehTreag |
$this->data['User']['group_id'] = 1; |
# |
Sep 21st 2011, 13:18 |
pur3forlyphe |
was just wandering how would i manually set a user group in the controller when it creates a new user i.e. is it something like $this->Group->User->set('id' => 1); before the $this->User->create(); |
# |
Sep 21st 2011, 13:04 |
DidItAgain |
~bin |
# |
Sep 21st 2011, 13:01 |
rchavik |
it works now, so i don't bother modifying it.. |
# |
Sep 21st 2011, 13:01 |
rchavik |
Ox2Oh, you might even be able to reuse the $CORE variable.. i'm not sure why i didn't use that.. |
# |
Sep 21st 2011, 12:58 |
Section58 |
then no |
# |
Sep 21st 2011, 12:58 |
Section58 |
if you wanted to use 1.3 or 2.0 then yes, if you wanted to use 1.3.7, 1.3.11 2.0beta etc |
# |
Sep 21st 2011, 12:57 |
Section58 |
cause of the uppercased C in cake it doesn't override old versions |
# |
Sep 21st 2011, 12:57 |
Section58 |
Ox2Oh: thats the only change |
# |
Sep 21st 2011, 12:56 |
Ox2Oh |
rchavik: thx. Looking at the cake script I think you only need a version for 1.x and 2.x because of the changed CORE dir. What do you think? |
# |
Sep 21st 2011, 12:56 |
rchavik |
one day :) |
# |
Sep 21st 2011, 12:56 |
Section58 |
rchavik: you should blog that |
# |
Sep 21st 2011, 12:55 |
rchavik |
Ox2Oh ^ |