# |
Feb 5th 2018, 21:50 |
saeideng |
https://book.cakephp.org/3.0/en/views/themes.html |
# |
Feb 5th 2018, 21:50 |
saeideng |
night |
# |
Feb 5th 2018, 21:48 |
saeideng |
see more here https://github.com/FriendsOfCake/awesome-cakephp#authentication-and-authorization |
# |
Feb 5th 2018, 21:48 |
night_wulfe |
Let me ask a different way; How can a Plugin replace an application's view file? I have control of both the application code and the plugin code. |
# |
Feb 5th 2018, 21:47 |
saeideng |
Dovev , maybe https://github.com/ADmad/cakephp-social-auth |
# |
Feb 5th 2018, 21:45 |
saeideng |
if you use Csrf component .... |
# |
Feb 5th 2018, 21:45 |
saeideng |
because that inserted by ajax |
# |
Feb 5th 2018, 21:44 |
saeideng |
in this case you can not use Csrf for city input(s) |
# |
Feb 5th 2018, 21:44 |
Dovev |
hey there, i am kind of new to cakephp. I would like to use OAuth2 to let users login with Discord Accounts. Would somebody help me to find out how to do this? |
# |
Feb 5th 2018, 21:43 |
saeideng |
just |
# |
Feb 5th 2018, 21:40 |
inoas |
HTTP POST, not sure why |
# |
Feb 5th 2018, 21:40 |
inoas |
well not sure if that is still state of the art content type handling ... and you want to rewrite the finders in cakephp3 style - it will be easier that way anyway |
# |
Feb 5th 2018, 21:40 |
quecosa |
:D |
# |
Feb 5th 2018, 21:40 |
quecosa |
ill try it |
# |
Feb 5th 2018, 21:39 |
saeideng |
:) |
# |
Feb 5th 2018, 21:39 |
saeideng |
mentioned like is not full example |
# |
Feb 5th 2018, 21:38 |
quecosa |
if it works ill love you forever! |
# |
Feb 5th 2018, 21:38 |
saeideng |
that is very easy |
# |
Feb 5th 2018, 21:38 |
quecosa |
? |
# |
Feb 5th 2018, 21:38 |
quecosa |
oh saedeng that cannot be that easy, really |
# |
Feb 5th 2018, 21:38 |
saeideng |
cake 3 and 2 is same in this case |
# |
Feb 5th 2018, 21:37 |
saeideng |
https://stackoverflow.com/a/28185392/8016450 |
# |
Feb 5th 2018, 21:37 |
quecosa |
i tough i could skip the php mysqli select part of the normal jquery ajax way to do it |
# |
Feb 5th 2018, 21:37 |
inoas |
you just need two very dead simple cakephp actions - one that fetches all states and one that fetches all cities filtered by a given state |
# |
Feb 5th 2018, 21:37 |
quecosa |
thanks ill look for it then |
# |
Feb 5th 2018, 21:36 |
inoas |
chain select jquery ajax xhr |
# |
Feb 5th 2018, 21:36 |
inoas |
look for chain select jquery or something |
# |
Feb 5th 2018, 21:36 |
inoas |
the tricky part is not cakephp but javascript |
# |
Feb 5th 2018, 21:36 |
quecosa |
ive seen tutorials, but those tutorials are for old cakephp versions |
# |
Feb 5th 2018, 21:35 |
quecosa |
or a tutorial for cakephp 3 plz |
# |
Feb 5th 2018, 21:35 |
quecosa |
Is there anybody who could help me with a simple state, city ajax select populate? |
# |
Feb 5th 2018, 21:33 |
quecosa |
hi |
# |
Feb 5th 2018, 21:32 |
inoas |
cause cake/bake is really of less imporance |
# |
Feb 5th 2018, 21:32 |
inoas |
now what I do is using 4.x and fixing cake/bake to an old version so I can run both alongside |
# |
Feb 5th 2018, 21:32 |
inoas |
instead of saying: cake/bake only runs on 7.x ... |
# |
Feb 5th 2018, 21:31 |
inoas |
Hmm ok anyway, when supporting twig 1.x and 2.x bake won't run unto issues with older PHP versions as well. <= yes but that's the reason TwigView supporting php 5.6 was used by cake/bake in the first place |
# |
Feb 5th 2018, 21:29 |
night_wulfe |
Unless I'm misreading the documentation, I mean |
# |
Feb 5th 2018, 21:29 |
slackebot |
application's themed folder? |
# |
Feb 5th 2018, 21:29 |
night_wulfe |
I'm trying to override theme paths in a CakePHP 2.x application to search a Plugin's View\Themed. This is to allow the theme to override the application's view files. Presently the only way to do this is to put the theme files into the App's View\Themed\ThemName\PluginName folder, which to me breaks the idea of encapsulating plugins from the application. How can I tell CakePHP to search my plugin's themed folder rather than the |
# |
Feb 5th 2018, 21:28 |
WyriHaximus |
Hmm ok anyway, when supporting twig 1.x and 2.x bake won't run unto issues with older PHP versions as well. I'll look into moving that way later this week, got some things planned =D |
# |
Feb 5th 2018, 21:27 |
inoas |
I have been using twig to render xml |