# |
Jul 7th 2018, 19:57 |
saeideng |
cake uses `/:controller/:action, ........` in fallbacks |
# |
Jul 7th 2018, 19:56 |
itmpls |
i guess maybe i use setDefaultRoute? |
# |
Jul 7th 2018, 19:56 |
saeideng |
see cake's default fallbacks |
# |
Jul 7th 2018, 19:55 |
saeideng |
how cake can detect your mean ? |
# |
Jul 7th 2018, 19:55 |
itmpls |
well.. i mean i want it global. not just /foo, but /bar, /baz, etc |
# |
Jul 7th 2018, 19:55 |
saeideng |
are you have `SubdomainRoute` class ? |
# |
Jul 7th 2018, 19:54 |
saeideng |
^^ first check with this |
# |
Jul 7th 2018, 19:54 |
saeideng |
``` Router::scope('/', function($routes) { $routes->connect('/foo`,........); $routes->fallbacks('SubdomainRoute'); }); ``` |
# |
Jul 7th 2018, 19:54 |
itmpls |
https://github.com/cakephp/cakephp/issues/11689 ? |
# |
Jul 7th 2018, 19:53 |
itmpls |
how can I make it reach/apply SubdomainRoute in /foo and anywhere, though? where there's a subdomain |
# |
Jul 7th 2018, 19:52 |
saeideng |
check `SubdomainRoute` |
# |
Jul 7th 2018, 19:52 |
saeideng |
this is your code |
# |
Jul 7th 2018, 19:52 |
saeideng |
``` Router::scope('/', function($routes) { $routes->fallbacks('SubdomainRoute'); }); ``` |
# |
Jul 7th 2018, 19:51 |
saeideng |
sorry it is `Router::scope('/',` |
# |
Jul 7th 2018, 19:51 |
itmpls |
so how can i make it a wildcard then? |
# |
Jul 7th 2018, 19:50 |
saeideng |
yes |
# |
Jul 7th 2018, 19:42 |
itmpls |
is it because of the leading / ? which is still confusing to me |
# |
Jul 7th 2018, 19:42 |
itmpls |
anyone know why with Router::scope('/', function($routes) { $routes->fallbacks('SubdomainRoute'); }); it doesn't reach SubdomainRoute::parse() via subdomain.blah.domain.com/foo but only at subdomain.blah.domain.com/ (home) |
# |
Jul 7th 2018, 19:36 |
slackebot4 |
~ask |
# |
Jul 7th 2018, 19:36 |
slackebot4 |
Command sent from Slack by savant: |
# |
Jul 7th 2018, 17:54 |
itmpls |
and push to master |
# |
Jul 7th 2018, 17:54 |
itmpls |
then make your edits, then commit |
# |
Jul 7th 2018, 17:54 |
itmpls |
@joopm - git clone the repo |
# |
Jul 7th 2018, 17:38 |
joopm |
i have a repository in the github and i have a local cakeproject |
# |
Jul 7th 2018, 17:37 |
joopm |
can you tell me how do you use github with cakephp? |
# |
Jul 7th 2018, 17:37 |
joopm |
hello |
# |
Jul 7th 2018, 14:27 |
admad |
do what the ORM does yourself :slightly_smiling_face: |
# |
Jul 7th 2018, 14:26 |
drgn |
I am moving towards migrating all my hard-coded sql into ORM, but in the meantime, what is the recommended solution to hydrating the timestamps into FrozenTime? The sql is quite complex an only this last piece remains. |
# |
Jul 7th 2018, 14:17 |
admad |
use the ORM methods, not lower level database query methods |
# |
Jul 7th 2018, 14:08 |
drgn |
when using ->execute, the timestamps in my table return as strings, and not FrozenTime. How do I return FrozenTime instead of string? |
# |
Jul 7th 2018, 13:10 |
braeden |
That's unusual, has nothing to do with Cake though, unless someone slipped in a sleep(21); into the repo |
# |
Jul 7th 2018, 11:21 |
joopm |
in the config/app.php i setup the exact database server address 127.0.0.1 |
# |
Jul 7th 2018, 11:20 |
joopm |
i setup a new cake project on my localhost,but its extremely slow its takes 21s to load a page(with one single query) |
# |
Jul 7th 2018, 11:19 |
joopm |
hello |
# |
Jul 7th 2018, 11:11 |
bravo-kernel |
I will not look into it but if you do manage to whoop something up... please do share so we can document it. A single example would be more than enough. |
# |
Jul 7th 2018, 11:11 |
bravo-kernel |
@james.phillips it seems that displaying the correct JSON API examples using the SWG annotations is very possible, one just needs to define the full "envelope" |
# |
Jul 7th 2018, 10:56 |
bravo-kernel |
@joopm you may use any tool/editor you like but starting with notepad might not be the most productive/effective editor so perhaps better to start with something good but free like Visual Studio Code |
# |
Jul 7th 2018, 09:44 |
joopm |
does git shell console and notepad++ enough?or should i use complex editor like eclipse |
# |
Jul 7th 2018, 09:43 |
joopm |
may i ask you how do you use github with own cake projects |
# |
Jul 7th 2018, 09:42 |
joopm |
hello all |
# |
Jul 7th 2018, 02:47 |
cpierce |
it's 3 i just haven't updated that part yet |