# |
May 27th 2016, 21:39 |
phpcoder |
when ? |
# |
May 27th 2016, 21:38 |
ionas |
are you? |
# |
May 27th 2016, 21:38 |
ionas |
phpcoder: how come you are not at cakefest |
# |
May 27th 2016, 21:38 |
phpcoder |
thanksù |
# |
May 27th 2016, 21:38 |
phpcoder |
ok! |
# |
May 27th 2016, 21:38 |
phpcoder |
yes |
# |
May 27th 2016, 21:38 |
ionas |
however Iâ??d probabably build a finder and then put hydrate false and formatresults into another method that is non-chainable (no finder) because stuff stops there ;) |
# |
May 27th 2016, 21:37 |
ionas |
to transform the result to just one single number |
# |
May 27th 2016, 21:37 |
phpcoder |
i got it! thanks!! |
# |
May 27th 2016, 21:37 |
ionas |
you can probably also use formatresults |
# |
May 27th 2016, 21:37 |
phpcoder |
aah ok |
# |
May 27th 2016, 21:36 |
phpcoder |
let me see |
# |
May 27th 2016, 21:36 |
ionas |
and then donâ??t use ->count() |
# |
May 27th 2016, 21:36 |
ionas |
http://book.cakephp.org/3.0/en/orm/query-builder.html#using-sql-functions |
# |
May 27th 2016, 21:35 |
ionas |
http://book.cakephp.org/3.0/en/orm/query-builder.html#getting-arrays-instead-of-entities |
# |
May 27th 2016, 21:34 |
phpcoder |
(tested on workbench) |
# |
May 27th 2016, 21:34 |
phpcoder |
i will post you the query that works |
# |
May 27th 2016, 21:34 |
phpcoder |
one moment |
# |
May 27th 2016, 21:32 |
ionas |
like whats the php code |
# |
May 27th 2016, 21:31 |
ionas |
is that the query you already have? or the query you get when running â??countâ?? |
# |
May 27th 2016, 21:30 |
phpcoder |
ionas, if i add -count() it execytes the query...i have to find how to disable this execution |
# |
May 27th 2016, 21:29 |
ionas |
count on a subquery :)? |
# |
May 27th 2016, 21:28 |
ionas |
Iâ??d check if you can disable auto-execution on first, all, count etc |
# |
May 27th 2016, 21:28 |
phpcoder |
ionas https://gist.github.com/anonymous/08a079d90a3fcf85f58705c1aca298a2#file-gistfile1-txt-L4-L9 |
# |
May 27th 2016, 21:28 |
ionas |
(later on) |
# |
May 27th 2016, 21:28 |
ionas |
phpcoder: SELECT count(*) FROM fooâ?¦ maybe you can use select() with a custom expression and use hydrate(false) |
# |
May 27th 2016, 21:22 |
phpcoder |
i read ->count() execute the query and returns the number of records |
# |
May 27th 2016, 21:21 |
phpcoder |
without executing the quesry? |
# |
May 27th 2016, 21:21 |
phpcoder |
how can i get the query object with COUNT |
# |
May 27th 2016, 21:21 |
phpcoder |
hello |
# |
May 27th 2016, 20:15 |
Axel___ |
is there a way to bake test with a prefix if it wasn't done the right way at the start? |
# |
May 27th 2016, 20:03 |
rohan__ |
ok let me do this |
# |
May 27th 2016, 20:02 |
ionas |
like webroot/plugins/PLUGINNAME/js/jquery.min.js |
# |
May 27th 2016, 20:01 |
ionas |
rohan__: symbolic link your plugin to your webroot |
# |
May 27th 2016, 19:57 |
rohan__ |
Yes in AppControllers beforeRender |
# |
May 27th 2016, 19:56 |
graziel |
rohan_ did you loadPlugin in bootstrap.php and added $this->ViewBuilder()->theme('mytheme') somewhere in the code before render? |
# |
May 27th 2016, 19:52 |
rohan__ |
so in plugins directory I have created Front/webroot/js/jquery.min.js file ... The theme is loading properly but the js and css associated to the theme is not loading |
# |
May 27th 2016, 19:51 |
rohan__ |
I am trying to learn Themes in cakephp |
# |
May 27th 2016, 19:51 |
rohan__ |
Hello all, I am trying to setup a project in cakephp 3 on nginx ... the project is working but all the css and js is not showing up, and in browser console .. the links to js and css file are showing 404.. what could be the issue in this. |
# |
May 27th 2016, 19:37 |
ionas |
^^ |
# |
May 27th 2016, 19:37 |
YamakasY |
ionas: joking mate, I don't see what you want |