# |
Jul 1st 2017, 01:21 |
aproapedelune |
And how to search the username and pass from database? |
# |
Jul 1st 2017, 01:20 |
aproapedelune |
Could someone advise me, please? Should I rename the login method for users? |
# |
Jul 1st 2017, 01:19 |
aproapedelune |
https://gist.github.com/anonymous/b21d44719759b5cb57857bc4d1bd0d2d |
# |
Jul 1st 2017, 01:18 |
aproapedelune |
https://gist.github.com/anonymous/514eea3d6c6ea743fa7aa02dffbee12e |
# |
Jul 1st 2017, 01:17 |
aproapedelune |
https://gist.github.com/anonymous/a1425f0d6cac4bd33b11c2f0b5694c42 |
# |
Jul 1st 2017, 01:16 |
aproapedelune |
I have a login method both in the first controller (AnalizeController) - used for logging in the admin, and in my UsersController |
# |
Jul 1st 2017, 01:14 |
aproapedelune |
I need some help with my project, I m trying to add a login form for basic users (I also have an admin page, implemented in a very basic way).. |
# |
Jul 1st 2017, 01:12 |
aproapedelune |
hey guys! how are you? |
# |
Jul 1st 2017, 00:04 |
royalty |
thought it was small enough |
# |
Jul 1st 2017, 00:04 |
royalty |
sorry should have gisted |
# |
Jul 1st 2017, 00:03 |
royalty |
); |
# |
Jul 1st 2017, 00:03 |
royalty |
'A new user logged in with username: ' . $user['username'] |
# |
Jul 1st 2017, 00:03 |
royalty |
'info', |
# |
Jul 1st 2017, 00:03 |
royalty |
Log::write( |
# |
Jul 1st 2017, 00:03 |
royalty |
use Cake\Log\Log; |
# |
Jul 1st 2017, 00:02 |
royalty |
why not use the Log Class? |
# |
Jun 30th 2017, 23:37 |
andrej |
regardless if shell gets executed successfully or no |
# |
Jun 30th 2017, 23:36 |
andrej |
tried this way, the files do appear, but they're empty |
# |
Jun 30th 2017, 23:36 |
andrej |
$io = new ConsoleIo(new ConsoleOutput(LOGS . 'console_std.txt'), new ConsoleOutput(LOGS . 'console_err.txt')); (new Shell($io))->dispatchShell(implode(' ', $args)); |
# |
Jun 30th 2017, 22:33 |
andrej |
any way to capture shell output when running dispatchShell from controller? |
# |
Jun 30th 2017, 21:24 |
gutts |
ty |
# |
Jun 30th 2017, 21:23 |
savant |
set the escape option to false. |
# |
Jun 30th 2017, 21:20 |
gutts |
or doesnt* |
# |
Jun 30th 2017, 21:20 |
gutts |
currently it escapes it I think, so I see the literal span html string |
# |
Jun 30th 2017, 21:20 |
gutts |
for the Html->link helper, how do I pass the first argument (text) if I want to specify HTML? ( glyphicon span element ) |
# |
Jun 30th 2017, 19:00 |
royalty |
whatever tickles your giblets i'd say |
# |
Jun 30th 2017, 18:53 |
flashios09 |
if a method return `$this`, what should i put in the `@return` doc block ? the full namespace or just **this** ? |
# |
Jun 30th 2017, 18:49 |
flashios09 |
hi |
# |
Jun 30th 2017, 18:47 |
savant |
https://github.com/FriendsOfCake/cakephp-upload/releases/tag/3.7.0 |
# |
Jun 30th 2017, 18:47 |
savant |
has quite a few other changes as well |
# |
Jun 30th 2017, 18:47 |
savant |
3.7.0 |
# |
Jun 30th 2017, 18:45 |
cpierce |
thank you sir! |
# |
Jun 30th 2017, 18:28 |
savant |
@cpierce its been released |
# |
Jun 30th 2017, 16:52 |
megan |
aaronc - great to have you on board! definitely interesting (and I think beneficial) feedback! :slightly_smiling_face: And happy to hear you will be doing some PR's which will help other users! |
# |
Jun 30th 2017, 16:45 |
admad |
:+1: |
# |
Jun 30th 2017, 16:38 |
aaronc |
But I didn't know they were derived from the PHP timezones. I googled "CakePHP timezones" and nothing came up. Django has them referenced in their docs, for example. My PR will probably just be "For valid timezones, refer to the PHP timezones here [link]". |
# |
Jun 30th 2017, 16:36 |
admad |
Googling "php timezones" isn't too difficult |
# |
Jun 30th 2017, 16:34 |
aaronc |
True, but a link to them would be nice since there already is an entire page for "bootstrap.php" configuration. If there is StackOverflow questions on the subject then things can be clarified. https://stackoverflow.com/questions/22625181/how-do-i-set-default-timezone-in-cakephp And that's not even up to date bc that config is no longer in core.php |
# |
Jun 30th 2017, 16:30 |
admad |
Can't expect us to include php docs too in our manual |
# |
Jun 30th 2017, 16:29 |
admad |
Well assuming someone using a PHP framework knows basic PHP isn't out of the ordinary. |
# |
Jun 30th 2017, 16:22 |
aaronc |
Hmm... I'm gonna have a ton of pull requests in the docs for you guys soon. I'm using CakePHP for an internship, never used PHP before, so I'm finding tons of stuff you've left out on assumed knowledge. But thanks. |