# |
Jul 5th 2018, 19:42 |
bravo-kernel |
f**, hitting those 404s again :exploding_head: |
# |
Jul 5th 2018, 19:21 |
rightscoreanalysis |
how can i set the calculated on an object and return to the view |
# |
Jul 5th 2018, 19:21 |
rightscoreanalysis |
File uploaded https://cakesf.slack.com/files/U8TPM938F/FBK4CT0JV/-.php / https://slack-files.com/T053DPNCM-FBK4CT0JV-fb73046121 |
# |
Jul 5th 2018, 19:21 |
rightscoreanalysis |
in my get method I query my model and then callculate the sum and average of a column as follows: |
# |
Jul 5th 2018, 18:48 |
bravo-kernel |
deleted the release as well so all looks good again now |
# |
Jul 5th 2018, 18:48 |
bravo-kernel |
thanks a lot man, this was silly |
# |
Jul 5th 2018, 18:46 |
saeideng |
:+1: |
# |
Jul 5th 2018, 18:46 |
bravo-kernel |
I saw that too but I prefer the namespace |
# |
Jul 5th 2018, 18:46 |
saeideng |
or `$this->addPlugin(Swagger::class)` |
# |
Jul 5th 2018, 18:45 |
bravo-kernel |
aha, I will change that |
# |
Jul 5th 2018, 18:45 |
saeideng |
just `$this->addPlugin('Alt3/Swagger')` is enough |
# |
Jul 5th 2018, 18:45 |
saeideng |
`$this->addPlugin(Swagger::class, ['routes' => true, 'bootstrap' => true]);` no |
# |
Jul 5th 2018, 18:45 |
bravo-kernel |
now all I need to is figure out how to undo my Github release |
# |
Jul 5th 2018, 18:44 |
bravo-kernel |
@saeideng right |
# |
Jul 5th 2018, 18:44 |
saeideng |
and `Plugin::load` will deprecate since 3.7 |
# |
Jul 5th 2018, 18:44 |
bravo-kernel |
yes, we have that |
# |
Jul 5th 2018, 18:44 |
saeideng |
you can now use `$this->addPlugin('Alt3/Swagger')` in application |
# |
Jul 5th 2018, 18:43 |
saeideng |
also instead of `Plugin::load('Alt3/Swagger', ['routes' => true, 'bootstrap' => true]);` |
# |
Jul 5th 2018, 18:42 |
saeideng |
good to hear :heart_eyes: |
# |
Jul 5th 2018, 18:41 |
bravo-kernel |
thanks again my friend, works like a charm :dancer: |
# |
Jul 5th 2018, 18:41 |
bravo-kernel |
I totally missed that |
# |
Jul 5th 2018, 18:40 |
bravo-kernel |
aha, that explains |
# |
Jul 5th 2018, 18:40 |
saeideng |
for using plugins with application use 3.6.6 at least |
# |
Jul 5th 2018, 18:40 |
bravo-kernel |
good point |
# |
Jul 5th 2018, 18:39 |
bravo-kernel |
:ballot_box_with_check: |
# |
Jul 5th 2018, 18:39 |
bravo-kernel |
yes, I will upgrade now first |
# |
Jul 5th 2018, 18:39 |
bravo-kernel |
3.6.4 |
# |
Jul 5th 2018, 18:38 |
saeideng |
3.6.6? |
# |
Jul 5th 2018, 18:38 |
saeideng |
cake version ? |
# |
Jul 5th 2018, 18:37 |
bravo-kernel |
but they 404 with the `missing route` message |
# |
Jul 5th 2018, 18:37 |
bravo-kernel |
all asset links look good to |
# |
Jul 5th 2018, 18:37 |
bravo-kernel |
page produced by the Controller looks goodf |
# |
Jul 5th 2018, 18:37 |
bravo-kernel |
@saeideng I am testing cakephp-swagger using the middleware setup with `bootstrap()` method in `Application.php` |
# |
Jul 5th 2018, 18:36 |
bravo-kernel |
@dwms good to hear :thumbsup: |
# |
Jul 5th 2018, 18:35 |
dwms |
work |
# |
Jul 5th 2018, 18:35 |
dwms |
thankyou |
# |
Jul 5th 2018, 18:35 |
dwms |
@bravo-kernel trankyoy |
# |
Jul 5th 2018, 18:29 |
saeideng |
explain more |
# |
Jul 5th 2018, 18:28 |
bravo-kernel |
using 3.6 |
# |
Jul 5th 2018, 18:26 |
bravo-kernel |
Any pointers to what might prevent plugin assets 404'ing due to missing route? |
# |
Jul 5th 2018, 17:58 |
dwms |
with T |