# |
Jul 10th 2017, 20:58 |
savant |
@backstageel well thats certainly not a cakephp issue |
# |
Jul 10th 2017, 20:57 |
backstageel |
@savant maybe... i will research |
# |
Jul 10th 2017, 20:56 |
durbster |
@savant https://gist.github.com/anonymous/18fdbe991178d3bfae5e8a57f2fe7d47 |
# |
Jul 10th 2017, 20:56 |
savant |
sounds like a php bug? |
# |
Jul 10th 2017, 20:55 |
backstageel |
PHP 7.1 is returning 9.3000000000000007 :( |
# |
Jul 10th 2017, 20:54 |
backstageel |
Having this: $returnValue = round(9.3, 1); |
# |
Jul 10th 2017, 20:53 |
savant |
gist the output |
# |
Jul 10th 2017, 20:53 |
savant |
ls -lah plugins |
# |
Jul 10th 2017, 20:52 |
durbster |
ok, it's a clean install so I've just added that one line, but here you go: https://gist.github.com/anonymous/2cd108a74ee92d4f4863eb3894cad0e5 |
# |
Jul 10th 2017, 20:49 |
slackebot |
~tell durbster about gist |
# |
Jul 10th 2017, 20:49 |
slackebot |
Command sent from Slack by savant: |
# |
Jul 10th 2017, 20:48 |
savant |
can you gist your `config/bootstrap.php` ? |
# |
Jul 10th 2017, 20:46 |
durbster |
I've tried with/without the options too |
# |
Jul 10th 2017, 20:45 |
durbster |
that's set up as per the cakedc instructions i.e. has this line: ```Plugin::load('CakeDC/Users', ['routes' => true, 'bootstrap' => true]);``` |
# |
Jul 10th 2017, 20:45 |
saeideng |
in `/config` |
# |
Jul 10th 2017, 20:45 |
saeideng |
see bootstrap.php file |
# |
Jul 10th 2017, 20:44 |
durbster |
sorry, where would this be, in the plugin folder itself? |
# |
Jul 10th 2017, 20:34 |
saeideng |
i o using this plugin but check your `login::load()` |
# |
Jul 10th 2017, 20:33 |
durbster |
and /register returns ```Error: RegisterController could not be found.``` |
# |
Jul 10th 2017, 20:33 |
durbster |
e.g. /users/register returns ```Error: CakeDC/Users.RegisterController could not be found.``` |
# |
Jul 10th 2017, 20:31 |
durbster |
I assume it's a routing issue and can hack it to get it working, but that it doesn't work out of the box suggests I've not set it up correctly. |
# |
Jul 10th 2017, 20:28 |
durbster |
OK, thanks. Short version: I can't seem to get cakedc/users working, even on a clean install. I can login and out, but most links (e.g. /register) throws a missing controller error |
# |
Jul 10th 2017, 20:23 |
savant |
@durbster just ask your question and maybe someone can help |
# |
Jul 10th 2017, 19:59 |
durbster |
Hello all. Anyone from CakeDC about? I could do with a hand setting up the users plugin. |
# |
Jul 10th 2017, 19:43 |
siran |
its maybe my server... cause there's no other apparent reason |
# |
Jul 10th 2017, 19:35 |
siran |
in the test method, there are two $this->get('/')... if I leave one the test passes... but two succesive ->get('/') fail... |
# |
Jul 10th 2017, 19:34 |
siran |
running phpunit I have a failing 'testMultipleGet' in a PagesControllerTest... has someone any idea why this is happening? |
# |
Jul 10th 2017, 19:34 |
theskillwithin |
json_encode |
# |
Jul 10th 2017, 19:34 |
cleptric |
Hi :slightly_smiling_face: |
# |
Jul 10th 2017, 19:33 |
siran |
hi all |
# |
Jul 10th 2017, 19:21 |
jarard01 |
should I set this: $this->autoRender = false; |
# |
Jul 10th 2017, 19:19 |
jarard01 |
but I cannot see the data in my reply |
# |
Jul 10th 2017, 19:19 |
jarard01 |
$this->set('_serialize', ['reply']); |
# |
Jul 10th 2017, 19:19 |
jarard01 |
I have the request handler set then a the bottom of my method: $this->set('reply', $reply); |
# |
Jul 10th 2017, 19:18 |
jarard01 |
I am unable to return json form my controller |
# |
Jul 10th 2017, 19:05 |
jarard01 |
how can i return json in my method? |
# |
Jul 10th 2017, 17:58 |
pedroseco |
I think the equivalent of what I’m trying to do would be a afterFind (if wI was on Cake2) |
# |
Jul 10th 2017, 17:56 |
chris-andre |
@pedroseco You could use beforeFind() or create a custom finder |
# |
Jul 10th 2017, 17:52 |
pedroseco |
If I want to filter a model queries, independent of the method in controller, what should I use? A behavior? |
# |
Jul 10th 2017, 17:51 |
pedroseco |
Hi guys. |
# |
Jul 10th 2017, 17:39 |
admad |
Brian___: yes |