# |
Feb 3rd 2018, 21:56 |
ahmed_bodi |
wanted to avoid coding it up until i knew the structure worked for what i wanted |
# |
Feb 3rd 2018, 21:56 |
jason001 |
so should I just copy-paste my apology from above? thank you hmic |
# |
Feb 3rd 2018, 21:56 |
hmic |
there is a method to do so (regenerate from either lft/rgt or parent_id) |
# |
Feb 3rd 2018, 21:56 |
hmic |
hint: it will be enough to populate the parent_id and let cake fix the tree |
# |
Feb 3rd 2018, 21:55 |
hmic |
ahmed_bodi, you dont need to manually populate them. you should read the docs on how the tree works |
# |
Feb 3rd 2018, 21:55 |
hmic |
jason001, yes, you do, usually... which makes that not so much a cake question :P |
# |
Feb 3rd 2018, 21:55 |
ahmed_bodi |
@hmic i'm trying to get the tree table going with some sample data and im confused as to what to put for left and right any clues? |
# |
Feb 3rd 2018, 21:54 |
jason001 |
@hmic - there are alot of parameters at play... one of which is my webhost. I have a few things to look at, thank you for your time |
# |
Feb 3rd 2018, 21:54 |
ahmed_bodi |
instead of false put what you want |
# |
Feb 3rd 2018, 21:54 |
ahmed_bodi |
<?= $this->Form->input('first_name', ['class' => 'form-control', 'placeholder' => 'First Name', 'label' => false]); ?> |
# |
Feb 3rd 2018, 21:54 |
hmic |
greenjam94: add 'label' => 'Name' to the options array |
# |
Feb 3rd 2018, 21:53 |
ahmed_bodi |
one sec |
# |
Feb 3rd 2018, 21:53 |
ahmed_bodi |
with the label option |
# |
Feb 3rd 2018, 21:53 |
ahmed_bodi |
@greenjam94 yes |
# |
Feb 3rd 2018, 21:53 |
hmic |
it does work, i'm using a solution of the 5th hit, so you dont need to look further |
# |
Feb 3rd 2018, 21:53 |
greenjam94 |
for a select statement, can you set the label of the drop downs? I have the following: ``` echo $this->Form->control('listing_id', ['options' => $listings]); ``` but it's listing options with the labels being "title" which is incorrect, I need it to be "name" |
# |
Feb 3rd 2018, 21:52 |
hmic |
- or learn apache and understand how mod_rewrite works better - which is hard! |
# |
Feb 3rd 2018, 21:52 |
jason001 |
none of which work.... thank you hmic. |
# |
Feb 3rd 2018, 21:52 |
hmic |
you tried one that failed - keep on trying! |
# |
Feb 3rd 2018, 21:52 |
hmic |
like 20 different solutions on the first google results page |
# |
Feb 3rd 2018, 21:52 |
hmic |
and google still is your friend |
# |
Feb 3rd 2018, 21:52 |
hmic |
you were but looking for apache help, not cake really... |
# |
Feb 3rd 2018, 21:51 |
jason001 |
again, I apologize |
# |
Feb 3rd 2018, 21:51 |
jason001 |
thank you. I'll accept my question was under-googled. but I felt it relevant to still consult cake experts, since 1) cake is sensitive to incorrect .htaccess changes and 2) this is one of the forums cakephp points you to when looking for help |
# |
Feb 3rd 2018, 21:49 |
hmic |
http://lmgtfy.com/?q=htaccess+force+https |
# |
Feb 3rd 2018, 21:46 |
jason001 |
back to the drawing board!, thank you |
# |
Feb 3rd 2018, 21:46 |
jason001 |
got it |
# |
Feb 3rd 2018, 21:46 |
hmic |
it's not its not working at all |
# |
Feb 3rd 2018, 21:46 |
hmic |
it is just not the right thing your redirect does |
# |
Feb 3rd 2018, 21:45 |
jason001 |
just one nagging detail tho. if Htaccess wasn't working, then why does it redirect to https if i browse to http://sitename.com/users/login? |
# |
Feb 3rd 2018, 21:44 |
jason001 |
ok, you know what. you're right |
# |
Feb 3rd 2018, 21:44 |
hmic |
so you got the wrong recipe |
# |
Feb 3rd 2018, 21:44 |
jason001 |
but i copy-pasted, and modified the domain |
# |
Feb 3rd 2018, 21:43 |
hmic |
no, not like you did |
# |
Feb 3rd 2018, 21:43 |
jason001 |
well here's the thing - google says modify my htaccess, like I did |
# |
Feb 3rd 2018, 21:43 |
hmic |
there are like a quadrillion hits on this specific question |
# |
Feb 3rd 2018, 21:43 |
hmic |
i'm not going to google that for you |
# |
Feb 3rd 2018, 21:42 |
jason001 |
goddamnit, ok how do i fix that? |
# |
Feb 3rd 2018, 21:42 |
hmic |
:D |
# |
Feb 3rd 2018, 21:42 |
hmic |
go fix it! |
# |
Feb 3rd 2018, 21:42 |
hmic |
because you messed it up probably |