# |
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 |
# |
Jul 7th 2018, 02:45 |
braeden |
What version of Cake is that? 2? |
# |
Jul 7th 2018, 02:44 |
braeden |
QueryExpression perhaps? |
# |
Jul 7th 2018, 02:43 |
cpierce |
with CONTAIN ... should i use something else? |
# |
Jul 7th 2018, 02:43 |
cpierce |
but the last one isn't working for me because it isn't joining the CrewMember to employeeid |
# |
Jul 7th 2018, 02:43 |
cpierce |
i wanna do this inside a paginate query |
# |
Jul 7th 2018, 02:43 |
cpierce |
``` $conditions['OR']['Employees.EMPLOYEENAME LIKE'] = '%' . $this->request->data['search_field'] . '%'; $conditions['OR']['Employees.EMPLOYEEID'] = $this->request->data['search_field']; $conditions['OR']['CrewMembers.CREWKEY'] = $this->request->data['search_field']; ``` |
# |
Jul 7th 2018, 02:38 |
cpierce |
can I do a where on a field in a contain table in paginage? |
# |
Jul 7th 2018, 00:43 |
braeden |
Belgiummmmmmmmmm! |
# |
Jul 6th 2018, 21:23 |
itmpls |
ah ok |
# |
Jul 6th 2018, 21:23 |
saeideng |
I mean no need to have empty class , if you no want to use it |
# |
Jul 6th 2018, 21:22 |
itmpls |
so don't bother with it then |
# |
Jul 6th 2018, 21:22 |
saeideng |
since 3.6.6 having `src/Plugin.php` in not necessary |
# |
Jul 6th 2018, 21:21 |
saeideng |
no problem |