# |
Jul 1st 2017, 05:23 |
loganstrob |
now I have to make a transition to cakephp...and completely rebuild the entire website again using cakephp...What is a the best practice for a migration like this |
# |
Jul 1st 2017, 05:22 |
loganstrob |
php |
# |
Jul 1st 2017, 05:22 |
loganstrob |
I have this website which was ompletely developed using core ph |
# |
Jul 1st 2017, 05:22 |
loganstrob |
i was wondering if i could get some help |
# |
Jul 1st 2017, 05:21 |
loganstrob |
hello |
# |
Jul 1st 2017, 02:06 |
aproapedelune |
thank you! |
# |
Jul 1st 2017, 02:05 |
markstory |
I would |
# |
Jul 1st 2017, 02:05 |
aproapedelune |
so I should have the "roles" column on the Users table.. |
# |
Jul 1st 2017, 02:04 |
markstory |
having multiples can get wonky |
# |
Jul 1st 2017, 02:03 |
markstory |
you should try to have only one auth component configuration |
# |
Jul 1st 2017, 01:55 |
aproapedelune |
could someone please advise? |
# |
Jul 1st 2017, 01:54 |
slackebot |
array ( 'controller' => 'Analize', 'action' => 'login', ), 'authError' => NULL, 'unauthorizedRedirect' => true, 'storage' => 'Session', 'checkAuthIn' => 'Controller.startup', ) which differs from array ( 'loginRedirect' => array ( 'controller' => 'posts', 'action' => 'index', ), 'logoutRedirect' => array ( 'controller' => 'pages', 'action' => 'display', 0 => 'home', ), ) |
# |
Jul 1st 2017, 01:54 |
aproapedelune |
I got this error :The "Auth" alias has already been loaded with the following config: array ( 'authenticate' => array ( 'Form' => array ( 'fields' => array ( 'username' => 'username', 'password' => 'password', ), ), ), 'authorize' => NULL, 'ajaxLogin' => NULL, 'flash' => NULL, 'loginAction' => array ( 'controller' => 'Analize', 'action' => 'login', ), 'loginRedirect' => array ( 'controller' => 'Analize', 'action' => 'admin', ), 'logoutR |
# |
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 |