# |
Jul 5th 2018, 19:57 |
itmpls |
the read is in plugin/Sites/src/Model/Table/SitesTable.php* |
# |
Jul 5th 2018, 19:57 |
itmpls |
how come Configure::read('Sites.config'); doesnt read what I put in my plugins/Sites/config/bootstrap.php, Configure::write('Sites.config'); ? |
# |
Jul 5th 2018, 19:57 |
saeideng |
loadHelper('plugin.helper')` |
# |
Jul 5th 2018, 19:56 |
saeideng |
`plugin.helper` |
# |
Jul 5th 2018, 19:56 |
rrd564 |
How can I load form helper with a template coming from a plugin? |
# |
Jul 5th 2018, 19:52 |
bravo-kernel |
:face_palm: |
# |
Jul 5th 2018, 19:52 |
bravo-kernel |
(now) |
# |
Jul 5th 2018, 19:52 |
bravo-kernel |
and makes perfect sense too |
# |
Jul 5th 2018, 19:52 |
bravo-kernel |
over and over again, all 200s now |
# |
Jul 5th 2018, 19:52 |
bravo-kernel |
mr. @admad you are truly my virtual savior |
# |
Jul 5th 2018, 19:52 |
admad |
then your error is expected :slightly_smiling_face: |
# |
Jul 5th 2018, 19:51 |
bravo-kernel |
no AssetMiddleware in my `Application.php` yet if that is what you mean |
# |
Jul 5th 2018, 19:50 |
bravo-kernel |
the page at `http://my.api/alt3/swagger/` loads |
# |
Jul 5th 2018, 19:50 |
bravo-kernel |
the asset url is at least what I expect.. `http://my.api/alt3/swagger/css/screen.css` |
# |
Jul 5th 2018, 19:49 |
admad |
to debug first symlink/copy then under webroot using `cake plugin symlink` |
# |
Jul 5th 2018, 19:48 |
admad |
plugin asset urls are handled by AssetMiddleware |
# |
Jul 5th 2018, 19:48 |
admad |
Are you sure you plugin asset url is correct and the asset exists in plugin? |
# |
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 |