# |
May 31st 2016, 07:28 |
admad |
mazba: https://github.com/UseMuffin/Obfuscate |
# |
May 31st 2016, 07:21 |
unorthodox |
Morning alan |
# |
May 31st 2016, 07:20 |
alanderouen |
morning bakers |
# |
May 31st 2016, 07:01 |
mazba |
"url parameter" like- user/edit/1 to user/edit/fas1df33 |
# |
May 31st 2016, 06:58 |
voycey |
what do you mean decrypt URL? |
# |
May 31st 2016, 06:26 |
mazba |
without Hashids is there any way to encrypt/decrypt URL in cake3? |
# |
May 31st 2016, 05:27 |
unorthodox |
Morning everyone. |
# |
May 31st 2016, 04:41 |
tlmarker |
Thank you I will look into those options. |
# |
May 31st 2016, 04:40 |
voycey |
or even running HTML tidy in beforeRender |
# |
May 31st 2016, 04:40 |
voycey |
output filters or something |
# |
May 31st 2016, 04:39 |
voycey |
Im pretty sure there is a nicer way to do it |
# |
May 31st 2016, 04:39 |
voycey |
I got it working, just needed to do a little more research. Thank you. The $crlf is there so I can format to page source code. A little excessive, I know, but I am very particular about how my source code looks in the browser. |
# |
May 31st 2016, 03:26 |
voycey |
It should work though assuming its in a table header |
# |
May 31st 2016, 03:24 |
voycey |
$crlf seems excessive |
# |
May 31st 2016, 02:52 |
tlmarker |
will this line work, if not what is wrong: echo $tab8.'<th>'.$this->Paginator->sort('username',$this->Html->image('UsernameHeader.png'),['escape' => false]).'</th>'.$crlf; |
# |
May 31st 2016, 01:20 |
royalty |
yeah that sounds nice |
# |
May 31st 2016, 01:19 |
flashios09 |
it will generate the html code for me |
# |
May 31st 2016, 01:19 |
flashios09 |
$this->Form->datepicker($params) |
# |
May 31st 2016, 01:19 |
flashios09 |
after that i just use it: |
# |
May 31st 2016, 01:19 |
flashios09 |
and i do all the test and the convert inside |
# |
May 31st 2016, 01:19 |
royalty |
I see |
# |
May 31st 2016, 01:18 |
flashios09 |
MyFormHelper::datepicker |
# |
May 31st 2016, 01:18 |
royalty |
i wish it could just hydrate automatically though |
# |
May 31st 2016, 01:18 |
royalty |
i suppose i can just do that |
# |
May 31st 2016, 01:18 |
royalty |
i see |
# |
May 31st 2016, 01:18 |
flashios09 |
i create a custom method inside MyFormHelper |
# |
May 31st 2016, 01:17 |
flashios09 |
btw i don't use widget |
# |
May 31st 2016, 01:17 |
flashios09 |
<input type="text" name="{{name}}" class="form-control" value="{{value}}"> |
# |
May 31st 2016, 01:16 |
flashios09 |
then in the widget |
# |
May 31st 2016, 01:16 |
flashios09 |
$this->Form->input('expense_date',['templateVars'=>['name'=>'expense_date', 'value' => $expense->date_var->i18nFormat(...)]]); |
# |
May 31st 2016, 01:16 |
flashios09 |
did you try something like this : |
# |
May 31st 2016, 01:14 |
royalty |
and of course i have js stuff to get this going as well |
# |
May 31st 2016, 01:13 |
royalty |
which is kind of dumb, but i just wanted to get something working |
# |
May 31st 2016, 01:13 |
royalty |
the name thing doesn't really work, i have to feed it the name |
# |
May 31st 2016, 01:12 |
royalty |
pretty much the app_form is the datepicker |
# |
May 31st 2016, 01:11 |
royalty |
here you go, heh https://gist.github.com/Modicrumb/397c6a73fd197df162213cbeac6a15ea |
# |
May 31st 2016, 01:09 |
flashios09 |
.ctp that has the datepicker |
# |
May 31st 2016, 01:09 |
royalty |
okay, you mean the view class or the template or both? |
# |
May 31st 2016, 01:08 |
flashios09 |
gist the view file |
# |
May 31st 2016, 01:08 |
royalty |
I only want one format I think, and will update based on locale I suppose |
# |
May 31st 2016, 01:08 |
flashios09 |
and if you want another format you have to create two methods |