# |
Apr 19th 2017, 21:39 |
joop |
yes AdminController.php must be exist |
# |
Apr 19th 2017, 21:39 |
Erik180487 |
Should be Admin |
# |
Apr 19th 2017, 21:39 |
Erik180487 |
AdmiMcontroller |
# |
Apr 19th 2017, 21:37 |
joop |
how do you mean? |
# |
Apr 19th 2017, 21:37 |
Erik180487 |
lol, that should be it I guess |
# |
Apr 19th 2017, 21:37 |
Erik180487 |
I see there's Admim |
# |
Apr 19th 2017, 21:36 |
Erik180487 |
No I don't, but I made a route |
# |
Apr 19th 2017, 21:36 |
Erik180487 |
I followed these steps http://stackoverflow.com/questions/28773205/administration-with-cake-3-prefix |
# |
Apr 19th 2017, 21:36 |
joop |
do you have such a file? |
# |
Apr 19th 2017, 21:35 |
Erik180487 |
anyone know why I get this message: Error: AdmimController could not be found. |
# |
Apr 19th 2017, 21:20 |
joop |
if($roles->Roles->name=='admin'){echo 'Hello Admin';} //this does not work in the controller |
# |
Apr 19th 2017, 21:19 |
joop |
thats my result how can i make an if statement with roles->name ? |
# |
Apr 19th 2017, 21:18 |
joop |
https://pastebin.com/t670wcPT |
# |
Apr 19th 2017, 21:17 |
joop |
i dont know how can i working in the controller with the datas |
# |
Apr 19th 2017, 21:17 |
joop |
but since i didnt sent to the view by compact(.... |
# |
Apr 19th 2017, 21:16 |
joop |
i made an associated query which returns correctly as i debuged |
# |
Apr 19th 2017, 21:16 |
joop |
i've just realized my issue which i asked today, |
# |
Apr 19th 2017, 21:15 |
joop |
hello guys |
# |
Apr 19th 2017, 21:12 |
dereuromark |
Feel free to contribute whatevers missing :slightly_smiling_face: |
# |
Apr 19th 2017, 21:09 |
bigdaddygee |
Thanks @dereuromark ! I'll use it for sure ! And thanks for the job you do on that exact same plugin ;) |
# |
Apr 19th 2017, 21:05 |
slackebot5 |
!tell bigdaddygee about awesome |
# |
Apr 19th 2017, 21:05 |
slackebot5 |
Command sent from Slack by dereuromark: |
# |
Apr 19th 2017, 21:05 |
bigdaddygee |
Oh |
# |
Apr 19th 2017, 21:05 |
dereuromark |
in 3.x using a nice custom finder |
# |
Apr 19th 2017, 21:04 |
dereuromark |
it exists for 6+ years wrapping exactly that for you |
# |
Apr 19th 2017, 21:04 |
dereuromark |
;) using the geo plugin maybe? |
# |
Apr 19th 2017, 21:02 |
bigdaddygee |
What would be the best approach, to do this with CakePHP 3 ORM ? ```select name, ( 3959 * acos( cos( radians(42.290763) ) * cos( radians( locations.lat ) ) * cos( radians( locations.lng ) - radians(-71.35368) ) + sin( radians(42.290763) ) * sin( radians( locations.lat ) ) ) ) AS distance``` |
# |
Apr 19th 2017, 20:42 |
jojomartius |
that works only for exact one request :S |
# |
Apr 19th 2017, 20:42 |
jojomartius |
i've a session of my cake 2 app in /pages and want to access it in /capacities in cake 3 |
# |
Apr 19th 2017, 20:38 |
jojomartius |
hi, anyone who really understands cake's sessions? :slightly_smiling_face: always got logged out |
# |
Apr 19th 2017, 18:40 |
obinoob |
hmic ok |
# |
Apr 19th 2017, 18:39 |
hmic |
but my advice it clearly: use wkhtmltopdf! |
# |
Apr 19th 2017, 18:39 |
obinoob |
I mean the default view.ctp |
# |
Apr 19th 2017, 18:39 |
obinoob |
I need to make it smaller |
# |
Apr 19th 2017, 18:39 |
hmic |
you can check what the other do on their respective project pages |
# |
Apr 19th 2017, 18:38 |
obinoob |
because it is fetching so many files etc |
# |
Apr 19th 2017, 18:38 |
hmic |
the by far best one is wkhtmltopdf |
# |
Apr 19th 2017, 18:38 |
hmic |
cakepdf supports multiple pdf "renderers" |
# |
Apr 19th 2017, 18:38 |
obinoob |
but it takes ages to render |
# |
Apr 19th 2017, 18:38 |
obinoob |
hmic: it is working |
# |
Apr 19th 2017, 18:38 |
hmic |
obinoob, use wkhtmltopdf |