# |
Apr 26th 2017, 13:50 |
Neon1024 |
Hm, I should fix that heading |
# |
Apr 26th 2017, 13:49 |
Neon1024 |
Because it uses the routing directly. You’ll have to set it’s options before calling it to form the correct urls. http://jedistirfry.co.uk/blog/2015-04/paginating-multiple-types-of-list-in-the-same-controller/ |
# |
Apr 26th 2017, 13:46 |
doug__ |
Does anyone know why $this->Paginator->numbers() returns mis-formatted URLS? For exampe, ../en-us/articles turns into ../articles/index/en-us |
# |
Apr 26th 2017, 13:39 |
spriz |
I just remembered somebody raging about a php lib where you'd do that - wanted to be sure it's not hybridaauth ,:) |
# |
Apr 26th 2017, 13:38 |
spriz |
no @dereuromark - I know that but didn't see "oauth" anywhere |
# |
Apr 26th 2017, 13:36 |
admad |
if you use an iframe it would surely seem so to the naive user :P |
# |
Apr 26th 2017, 13:36 |
dereuromark |
thats not how oauth works |
# |
Apr 26th 2017, 13:35 |
dereuromark |
LOL |
# |
Apr 26th 2017, 13:34 |
spriz |
in your case you enter your email/password for github on your web app? :P |
# |
Apr 26th 2017, 13:33 |
admad |
as long as the hybridauth devs don't break the lib :P |
# |
Apr 26th 2017, 13:32 |
admad |
my hyridauth plugin is as plug-n-play as it gets |
# |
Apr 26th 2017, 13:31 |
spriz |
that's why I wanted to use https://github.com/thephpleague/oauth2-client :) |
# |
Apr 26th 2017, 13:31 |
spriz |
I wanted something that could plug'n'play different Oauth2 providers :S |
# |
Apr 26th 2017, 13:31 |
admad |
@spriz if you are feeling brave you can try out https://github.com/ADmad/cakephp-social-auth :slightly_smiling_face: |
# |
Apr 26th 2017, 13:16 |
dereuromark |
I use hybridauth to login with github |
# |
Apr 26th 2017, 13:15 |
spriz |
Does anyone have example of this running: https://github.com/UseMuffin/OAuth2 ? :thinking_face: |
# |
Apr 26th 2017, 13:11 |
inoas |
test runs |
# |
Apr 26th 2017, 13:08 |
inoas |
let me run it locally |
# |
Apr 26th 2017, 13:08 |
inoas |
while not optimal this is what I can help with https://github.com/dereuromark/cakephp-tools/pull/187/files |
# |
Apr 26th 2017, 13:05 |
dereuromark |
or rather on the specific file if you want to safe time ;) |
# |
Apr 26th 2017, 13:05 |
dereuromark |
well, adding a test and running php phpunit.phar on the plugin after composer udpate |
# |
Apr 26th 2017, 13:05 |
inoas |
mom |
# |
Apr 26th 2017, 13:05 |
inoas |
I have your plugin cloned, is there a very fast way to do it? |
# |
Apr 26th 2017, 13:05 |
dereuromark |
I will take care then otherwise |
# |
Apr 26th 2017, 13:04 |
inoas |
and I don't have a dev setup here... |
# |
Apr 26th 2017, 13:04 |
dereuromark |
thx, now I understand ;) |
# |
Apr 26th 2017, 13:04 |
cjohnson |
I forced the version number |
# |
Apr 26th 2017, 13:04 |
cjohnson |
one of my deps pulled a newer PHPUnit |
# |
Apr 26th 2017, 13:04 |
inoas |
should just be $languages[$match[2]][] = $match[1]; |
# |
Apr 26th 2017, 13:04 |
cjohnson |
got it |
# |
Apr 26th 2017, 13:04 |
inoas |
but because of BC ... |
# |
Apr 26th 2017, 13:04 |
inoas |
strtolower($match[1]); shouldn't be there in the first place |
# |
Apr 26th 2017, 13:03 |
inoas |
yes |
# |
Apr 26th 2017, 13:03 |
dereuromark |
I thought de_DE is the standard, uppercase for the country part. |
# |
Apr 26th 2017, 13:02 |
dereuromark |
inoas: would you mind adding a small test case for the lowercasing? why do you need it? |
# |
Apr 26th 2017, 12:59 |
cjohnson |
I clobbered it into the dir structure it expects but now I have incompatible declarations of CakeTestRunner::doRun with PHPUnit_TextUI_TestRunner::doRun |
# |
Apr 26th 2017, 12:57 |
cjohnson |
I think I see the problem, cake is looking for PHPUnit but composer installed it as phpunit |
# |
Apr 26th 2017, 12:55 |
cjohnson |
with phar, or with composer install |
# |
Apr 26th 2017, 12:55 |
cjohnson |
require_once(PHPUnit/TextUI/Command.php): failed to open stream: No such file or directory i…. |
# |
Apr 26th 2017, 12:55 |
cjohnson |
I’m reading here (https://book.cakephp.org/2.0/en/development/testing.html) and it suggests that I can just put the phar file from phpunit’s site into the vendor dir but I still get complaints |
# |
Apr 26th 2017, 12:54 |
cjohnson |
but I’m having trouble getting cake Test to find the phpunit files |