# |
Feb 19th 2020, 09:38 |
val |
@admad https://github.com/cakephp/authorization/commit/fb894a0e163a37c91347b5603002ef9ec615062a#diff-b5d0ee8c97c7abd7e3fa29b9a27d1780L12 was it a error that "cakephp/core" was changed to "cakephp/cakephp"? |
# |
Feb 19th 2020, 09:34 |
javier.villanueva |
@conehead thanks! now works with update() |
# |
Feb 19th 2020, 09:23 |
conehead |
Hm just wondering...is there a general "most common" file encoding to use when coding? Should files be UTF-8 with LF? I mean for pretty much every language? |
# |
Feb 19th 2020, 09:13 |
dereuromark |
again, depends on the packages (namespaces) used inside the plugin. check this and check if you can resolve it to split packages as well |
# |
Feb 19th 2020, 09:12 |
val |
https://github.com/cakephp/authorization/blob/1.x/composer.json has dependency to "cakephp/core" but https://github.com/cakephp/authorization/blob/master/composer.json has dependency to "cakephp/cakephp". Why is that? |
# |
Feb 19th 2020, 09:05 |
conehead |
@javier.villanueva you called save or update afterwards? |
# |
Feb 19th 2020, 09:04 |
val |
I got the impression that the idea of authentication and authorization plugins was to decouple it from controllers layer |
# |
Feb 19th 2020, 09:00 |
dereuromark |
find out the packages needed, maybe it is. |
# |
Feb 19th 2020, 09:00 |
val |
Hi, shouldn't it be possible to install https://github.com/cakephp/authorization/tree/master without dependency to "cakephp/cakephp" but to "cakephp/core" like? |
# |
Feb 19th 2020, 08:35 |
javier.villanueva |
last version 0.11.1 ? |
# |
Feb 19th 2020, 08:25 |
kaliel |
@javier.villanueva which version of phinx ? |
# |
Feb 19th 2020, 08:24 |
javier.villanueva |
Im using migrations... and drop table not works... somebody with the same problem? |
# |
Feb 19th 2020, 08:24 |
javier.villanueva |
morning all |
# |
Feb 19th 2020, 08:15 |
peppejaripappalardo |
Hello guys, no one know something about this? |
# |
Feb 19th 2020, 07:33 |
admad |
well FrozenTime fields actually which extends Chronos |
# |
Feb 19th 2020, 07:32 |
admad |
> can I force the Entity to use Chronos for all datetime That's already by the ORM for actual db fields |
# |
Feb 19th 2020, 07:20 |
turkles |
Hi all, I'm trying to create a virtual field which relies on if a datetime is in the past, can I force the Entity to use Chronos for all datetime? Or do I have to create a Chronos instance? Or should I just be using somethign to compare the FrozenTime it already uses (this is cake 3.8) |
# |
Feb 18th 2020, 23:59 |
rightscoreanalysis |
I solved it - thanks :) |
# |
Feb 18th 2020, 23:52 |
rightscoreanalysis |
namespace App\Controller\Admin; |
# |
Feb 18th 2020, 23:51 |
challgren |
And if your namespace on the PurchaseController correct |
# |
Feb 18th 2020, 23:51 |
rightscoreanalysis |
I have admin routes set up |
# |
Feb 18th 2020, 23:51 |
challgren |
Is your controller in /src/Controller/Admin/PurchasesController |
# |
Feb 18th 2020, 23:51 |
rightscoreanalysis |
but buyer in this case is a param not action |
# |
Feb 18th 2020, 23:51 |
rightscoreanalysis |
I am getting an error: Action PurchasesController::buyer() could not be found |
# |
Feb 18th 2020, 23:50 |
rightscoreanalysis |
admin/purchases/buyer |
# |
Feb 18th 2020, 23:50 |
rightscoreanalysis |
on another note I have this url: |
# |
Feb 18th 2020, 23:48 |
challgren |
you could try curl verbose to see if its redirecting correctly |
# |
Feb 18th 2020, 23:47 |
rightscoreanalysis |
I am not auth'd so should be redirected to login |
# |
Feb 18th 2020, 23:47 |
rightscoreanalysis |
sorry - login |
# |
Feb 18th 2020, 23:47 |
rightscoreanalysis |
logout |
# |
Feb 18th 2020, 23:46 |
challgren |
login or out? |
# |
Feb 18th 2020, 23:45 |
rightscoreanalysis |
I tried an incognito browser sesssion and still not redirected to the correct logout url |
# |
Feb 18th 2020, 23:36 |
challgren |
@dereuromark cant sleep? |
# |
Feb 18th 2020, 23:29 |
rightscoreanalysis |
ok will try - btw I had plugin in my array alreafy, I switched that out for prefix - didn't think to try them both! |
# |
Feb 18th 2020, 23:28 |
challgren |
your redirect maybe cached in your browser |
# |
Feb 18th 2020, 23:28 |
rightscoreanalysis |
hi @dereuromark btw |
# |
Feb 18th 2020, 23:28 |
rightscoreanalysis |
but still redirected to admin/ |
# |
Feb 18th 2020, 23:27 |
slackebot |
<rightscoreanalysis> |
# |
Feb 18th 2020, 23:27 |
rightscoreanalysis |
so my array is now |
# |
Feb 18th 2020, 23:21 |
dereuromark |
@rightscoreanalysis https://github.com/dereuromark/cakephp-tools/blob/master/src/View/Helper/UrlHelper.php#L86 is the reason I use such helper methods a lot inside layouts as well. in your case you need it for the Auth config array URLs. |
# |
Feb 18th 2020, 23:20 |
MrEm |
Well, I think my perspective is less about finding a trick, but more about thinking of collections as a whole - rather than a sum of parts, i fthat makes sense |