# |
Sep 2nd 2019, 11:11 |
javier.villanueva |
If I use |
# |
Sep 2nd 2019, 11:10 |
alexdd55976 |
so its a subfolder... did you check in your app.php if it helps to make adjustments there= |
# |
Sep 2nd 2019, 11:08 |
javier.villanueva |
localhost/mycake |
# |
Sep 2nd 2019, 11:08 |
alexdd55976 |
when you call your URL to open the webseite is localhost/mycake or localhost? |
# |
Sep 2nd 2019, 11:04 |
javier.villanueva |
if I use Router::url in another place works perfectly |
# |
Sep 2nd 2019, 11:01 |
alexdd55976 |
yeah.. this sounds weird... |
# |
Sep 2nd 2019, 11:01 |
javier.villanueva |
is very strange |
# |
Sep 2nd 2019, 11:01 |
javier.villanueva |
:( I have no problems for example in links with Html helper... |
# |
Sep 2nd 2019, 11:00 |
alexdd55976 |
@javier.villanueva not really.. seems to be some bad configuration on document root / webroot |
# |
Sep 2nd 2019, 11:00 |
javier.villanueva |
@alexdd55976 do you have this problem by default? |
# |
Sep 2nd 2019, 10:57 |
challgren |
Damm https://github.com/dereuromark/cakephp-ide-helper/compare/master-template-vars#diff-da39e95c314b0a2df7a246f825724b58R158 |
# |
Sep 2nd 2019, 10:55 |
dereuromark |
template variable demo: https://github.com/dereuromark/cakephp-ide-helper/compare/master-template-vars#diff-a012aacf661dec40587c1c68f9e5dd4dR41 looks promising :slightly_smiling_face: |
# |
Sep 2nd 2019, 10:54 |
challgren |
:thinking_face: |
# |
Sep 2nd 2019, 10:54 |
dereuromark |
jep, probably. |
# |
Sep 2nd 2019, 10:54 |
challgren |
Would be better to maybe have a shell that shows whats accessible and whats not |
# |
Sep 2nd 2019, 10:54 |
dereuromark |
Check that branch, i committed current status if you wanna take a look. The Extractor now returns the variables and some context. If excludeReason is given we should not annotate If type is given use that, otherwise default. The `_getEntityAnnotations()` etc could now be based on this, rather than using some regex :slightly_smiling_face: or at least a combination. |
# |
Sep 2nd 2019, 10:53 |
challgren |
NM doesnt make sense really |
# |
Sep 2nd 2019, 10:52 |
dereuromark |
@challgren how? |
# |
Sep 2nd 2019, 10:51 |
javier.villanueva |
and redirect to localhost/users/login instead /localhost/mycake/users/login |
# |
Sep 2nd 2019, 10:49 |
javier.villanueva |
in this way I have another problem, no respect my folder /mycake/ |
# |
Sep 2nd 2019, 10:48 |
javier.villanueva |
yes |
# |
Sep 2nd 2019, 10:48 |
alexdd55976 |
just fyi |
# |
Sep 2nd 2019, 10:48 |
alexdd55976 |
`Router::url('users:login'),` has to be `Router::url('users/login'),` |
# |
Sep 2nd 2019, 10:48 |
challgren |
@dereuromark does your plugin annote and update $_accessible? |
# |
Sep 2nd 2019, 10:48 |
alexdd55976 |
yeah... found it ... a min go |
# |
Sep 2nd 2019, 10:46 |
jotpe |
Cool ;) I was on holidays and now I have to catch up some work. I'll have a look! |
# |
Sep 2nd 2019, 10:46 |
javier.villanueva |
$authentication = new AuthenticationMiddleware($this, [ 'unauthenticatedRedirect' => Router::url('users:login'), 'queryParam' => 'redirect', ]); |
# |
Sep 2nd 2019, 10:46 |
javier.villanueva |
in middleware |
# |
Sep 2nd 2019, 10:41 |
alexdd55976 |
still no solution.. any idea? |
# |
Sep 2nd 2019, 10:39 |
dereuromark |
@jotpe hey hey :slightly_smiling_face: I started a bit on template variable collection. Have quite promising results already. |
# |
Sep 2nd 2019, 10:37 |
jotpe |
Hey :wave: |
# |
Sep 2nd 2019, 10:36 |
challgren |
You could also use `duplicateEntity` and do your magic and then save manually |
# |
Sep 2nd 2019, 10:32 |
challgren |
If you change the options of Duplicatable to have _`footprint` in its `saveOptions` https://github.com/riesenia/cakephp-duplicatable/blob/master/src/Model/Behavior/DuplicatableBehavior.php#L38 |
# |
Sep 2nd 2019, 10:31 |
neon1024 |
..as part of the save from Duplicatable |
# |
Sep 2nd 2019, 10:31 |
neon1024 |
Perhaps I’ll leave it blank and see if the FootprintBehaviour will write it for me automagically |
# |
Sep 2nd 2019, 10:30 |
neon1024 |
Maintaining the user_id code away from the duplication feels like it would lead to maintenance headaches |
# |
Sep 2nd 2019, 10:30 |
neon1024 |
Then I have to write a beforeSave, away from my duplication config, and catch what is a save and what is a duplication |
# |
Sep 2nd 2019, 10:29 |
challgren |
Which is actually good for me to figure out cause I’ll have the same issue coming up sounds like |
# |
Sep 2nd 2019, 10:29 |
challgren |
So maybe raise it up |
# |
Sep 2nd 2019, 10:28 |
challgren |
I know the footprint priority is -100 |
# |
Sep 2nd 2019, 10:28 |
challgren |
instead it would be $options[‘_footprint’] |