# |
Jul 18th 2018, 14:51 |
flavius |
+1 for that jquery dependency, just noticed it now |
# |
Jul 18th 2018, 14:51 |
mr.mjsm |
did it, still same problem ;( |
# |
Jul 18th 2018, 14:51 |
josbeir |
also, maybe read up on cakephp basics, and php's compact function first :) |
# |
Jul 18th 2018, 14:50 |
josbeir |
$this->set(compact('company', 'email')); |
# |
Jul 18th 2018, 14:50 |
josbeir |
add 'email' to the compact() function too |
# |
Jul 18th 2018, 14:50 |
mr.mjsm |
File uploaded https://cakesf.slack.com/files/UBN7KUDRA/FBTPT5V39/-.php / https://slack-files.com/T053DPNCM-FBTPT5V39-8a4ae830ee |
# |
Jul 18th 2018, 14:50 |
unclezoot |
could anyone through me a hint on how to create an 'alias' so addShortPluginAliases() doesn't throw an error when i have the same function name in 2 different shells? |
# |
Jul 18th 2018, 14:50 |
mr.mjsm |
@josbeir so i just got home and removed the last else statement. it worked with no errors. However when I try to add into the email model, it results in false. i don't know if my assignments are wrong. look at the code below. at the beginning you will see the Email entity model and I commented the if statement that results in FALSE |
# |
Jul 18th 2018, 14:50 |
dereuromark |
feel free to suggest improvements, I wanted to keep asset overhead minimal for now, focusing on the funciotnal background tasks |
# |
Jul 18th 2018, 14:49 |
josbeir |
i haven't started on the front-end over here so my base cake app is still pristine |
# |
Jul 18th 2018, 14:49 |
flavius |
need to do a new project in order to test your plugin :P |
# |
Jul 18th 2018, 14:49 |
flavius |
i dont have the default layout anymore |
# |
Jul 18th 2018, 14:48 |
josbeir |
tables are so 2.0 |
# |
Jul 18th 2018, 14:48 |
josbeir |
that would be better, also update naming "tables => models" |
# |
Jul 18th 2018, 14:48 |
flavius |
with its own css and js dependencies |
# |
Jul 18th 2018, 14:48 |
flavius |
why dont you give it its own layout? |
# |
Jul 18th 2018, 14:48 |
josbeir |
it looks like it also needs a jquery dependency |
# |
Jul 18th 2018, 14:46 |
dereuromark |
File uploaded https://cakesf.slack.com/files/U052SF4V6/FBU2MRH5L/screenshot_from_2018-07-18_16-45-57.png / https://slack-files.com/T053DPNCM-FBU2MRH5L-82284592dd |
# |
Jul 18th 2018, 14:46 |
dereuromark |
should also work with bs3 |
# |
Jul 18th 2018, 14:45 |
flavius |
yep, default cake bake style |
# |
Jul 18th 2018, 14:45 |
josbeir |
File uploaded https://cakesf.slack.com/files/UAG1HNWKT/FBSJPDCUT/image.png / https://slack-files.com/T053DPNCM-FBSJPDCUT-b5f8abba6c |
# |
Jul 18th 2018, 14:45 |
josbeir |
it looks better here |
# |
Jul 18th 2018, 14:45 |
flavius |
does it use default cake foundation? |
# |
Jul 18th 2018, 14:44 |
dereuromark |
no, what is your layout? |
# |
Jul 18th 2018, 14:44 |
dereuromark |
I feel like plugins should also have an AppView hook |
# |
Jul 18th 2018, 14:44 |
flavius |
File uploaded https://cakesf.slack.com/files/U75U0UMR9/FBSJMUJ5R/image.png / https://slack-files.com/T053DPNCM-FBSJMUJ5R-cf216f59b6 - but is it supposed to be this ugly? :stuck_out_tongue: |
# |
Jul 18th 2018, 14:43 |
dereuromark |
Hm, but that wold need to know the AppView, because of layout, and then that would be a hard convention, people have to name it exactly that :slightly_smiling_face: |
# |
Jul 18th 2018, 14:43 |
josbeir |
extend (or not, maybe better) the app view |
# |
Jul 18th 2018, 14:42 |
josbeir |
@dereuromark create custom view class and use that in your controller? |
# |
Jul 18th 2018, 14:41 |
unclezoot |
afternoon, i have 2 shells with the same function name in each (general). How do I create a shell alias (i.e. solve this error "2018-07-18 15:37:31 Debug: command 'general' in plugin 'Languages' was not aliased, conflicts with 'Uploads'") |
# |
Jul 18th 2018, 14:40 |
dereuromark |
As $helpers shouldnt be used and AppView doesnt have much plugin hooks, does it? |
# |
Jul 18th 2018, 14:40 |
dereuromark |
Do we have a concept that on how to inject helpers here for plugin views without controller (deprecated)? It seems to me we are missing some key concepts here. |
# |
Jul 18th 2018, 14:40 |
dereuromark |
Ah, might need some helper config there |
# |
Jul 18th 2018, 14:39 |
josbeir |
@dereuromark getting when i start a controller test Cake \ View \ Exception \ MissingHelperException (500) Helper class FormatHelper could not be found. |
# |
Jul 18th 2018, 14:37 |
josbeir |
i'll follow |
# |
Jul 18th 2018, 14:37 |
flavius |
@dereuromark i'll try it right now, aint got anything better to do anyway |
# |
Jul 18th 2018, 14:36 |
josbeir |
@deu |
# |
Jul 18th 2018, 14:35 |
inoas |
is there even a sane way to do it? |
# |
Jul 18th 2018, 14:33 |
inoas |
using https://book.cakephp.org/3.0/en/core-libraries/form.html ... I want to validat a list of objects (aka a bunch of devices with fields like manufacturer per device9 |
# |
Jul 18th 2018, 14:32 |
dereuromark |
Did anyone try https://github.com/dereuromark/cakephp-test-helper yet? Generate tests or click-generate coverage etc? If it does work easily for other apps than mine? |
# |
Jul 18th 2018, 14:12 |
admad |
adminer |