# |
Dec 27th 2018, 16:26 |
dereuromark |
not sure what wipe out means in this case. but feel free to make a PR if there is sth to be improved |
# |
Dec 27th 2018, 16:20 |
dereuromark |
yep, has been designed as very simple, secure and easy to understand/use approach for most basic use cases :slightly_smiling_face: nothing beyond that. depends also if authent or author, the first is just adding into whitelist, so that shouldnt be conflicting. the 2nd might. |
# |
Dec 27th 2018, 16:18 |
mikesmoniker |
@dereuromark - I admittedly haven’t played with TinyAuth much, but it seems like it’s not meant to co-exist with other auth components (i.e. we also already extend `Cake\Auth\BaseAuthenticate` to build 2FA on top of Cake’s standard auth, and enabling the plugin wipes that out. Am I missing something obvious? |
# |
Dec 27th 2018, 12:57 |
dereuromark |
PR it against that one and I can merge |
# |
Dec 27th 2018, 12:57 |
birdy247 |
:+1: |
# |
Dec 27th 2018, 12:55 |
dereuromark |
You can provide a test case for https://github.com/cakephp/cakephp/pull/12849 - maybe that speeds it up. |
# |
Dec 27th 2018, 12:49 |
dereuromark |
normal urls have _host and _scheme option, so should asset ones IMO |
# |
Dec 27th 2018, 12:47 |
dereuromark |
maybe you can provide a PR to enhance the core here? |
# |
Dec 27th 2018, 12:47 |
birdy247 |
and then revert it |
# |
Dec 27th 2018, 12:46 |
dereuromark |
4 years ago I already did that for similar reasons ( https://www.dereuromark.de/2014/04/08/generating-pdfs-with-cakephp/#urls-and-paths ) its not supercool to exchange this at runtime for each url, but it would work. |
# |
Dec 27th 2018, 12:46 |
birdy247 |
For now, I will set the fullBaseUrl |
# |
Dec 27th 2018, 12:45 |
dereuromark |
did you look into the url helper source code? doing that reveals that there is no other option so far. unless you extend the UrlHelper and assetUrl() method for this |
# |
Dec 27th 2018, 12:45 |
birdy247 |
Yes |
# |
Dec 27th 2018, 12:43 |
dereuromark |
how do you generate the URL? inside the helper in the email? |
# |
Dec 27th 2018, 12:40 |
birdy247 |
I can only think to solve it by setting Router::setFull.... before and after sending the email |
# |
Dec 27th 2018, 12:39 |
birdy247 |
My issue is rending an image from an email sent from a queue task |
# |
Dec 27th 2018, 12:39 |
birdy247 |
but host or _host doesnt |
# |
Dec 27th 2018, 12:39 |
birdy247 |
fullBase works |
# |
Dec 27th 2018, 12:33 |
dereuromark |
as cdn is a common thing |
# |
Dec 27th 2018, 12:33 |
dereuromark |
pretty sure it is |
# |
Dec 27th 2018, 12:31 |
birdy247 |
similar to links? |
# |
Dec 27th 2018, 12:31 |
birdy247 |
Is it possible to set a host for images |
# |
Dec 27th 2018, 12:31 |
birdy247 |
Hi |
# |
Dec 27th 2018, 10:40 |
doomsday_ |
okie dokie. |
# |
Dec 27th 2018, 10:40 |
challgren |
But hold off on the plugins until you get a bit familiar |
# |
Dec 27th 2018, 10:39 |
challgren |
There are also a lot of awesome plugins that can be found at https://github.com/FriendsOfCake/awesome-cakephp |
# |
Dec 27th 2018, 10:38 |
challgren |
I would recommend focusing on 3.7 as your base version |
# |
Dec 27th 2018, 10:38 |
doomsday_ |
Thanks. Am on it. |
# |
Dec 27th 2018, 10:37 |
challgren |
https://book.cakephp.org/3.0/en/quickstart.html has a CMS example that could help you learn |
# |
Dec 27th 2018, 10:37 |
doomsday_ |
Thanks challgren |
# |
Dec 27th 2018, 10:37 |
challgren |
They are a bit outdated |
# |
Dec 27th 2018, 10:36 |
doomsday_ |
Are these tutorials good: https://hackr.io/tutorials/learn-cakephp? |
# |
Dec 27th 2018, 10:36 |
challgren |
That would be the best spot to start |
# |
Dec 27th 2018, 10:36 |
challgren |
https://book.cakephp.org/3.0/en/index.html |
# |
Dec 27th 2018, 10:36 |
doomsday_ |
How and where to start? |
# |
Dec 27th 2018, 10:36 |
doomsday_ |
I know CodeIgniter and looking to learn CakePHP |
# |
Dec 27th 2018, 10:36 |
challgren |
Hi CakePHP newbie |
# |
Dec 27th 2018, 10:35 |
doomsday_ |
Hello, CakePHP newbie here |
# |
Dec 27th 2018, 09:42 |
challgren |
No worries good luck! |
# |
Dec 27th 2018, 09:42 |
chan |
@challgren oh.. now, i understand your explain. code is working now. thanks you. |
# |
Dec 27th 2018, 09:32 |
challgren |
After your `$this->ModelName->save($data);` |