# |
Jun 26th 2018, 19:46 |
mdunham |
cool howdy I had a question but answered it myself before i asked |
# |
Jun 26th 2018, 19:46 |
HumanG33k |
yep mdunham |
# |
Jun 26th 2018, 19:35 |
mdunham |
hey anyone active? |
# |
Jun 26th 2018, 15:53 |
nedvajz |
well true .. damned .. thank you and sorry for your time ;) |
# |
Jun 26th 2018, 15:52 |
josbeir |
its entirly up to your .htaccess / webserver configuration |
# |
Jun 26th 2018, 15:52 |
josbeir |
has nothing to do with cake tho |
# |
Jun 26th 2018, 15:51 |
josbeir |
it should be possible |
# |
Jun 26th 2018, 15:48 |
nedvajz |
Is it possible to run some project in cakephp 3 webroot like it was in cakephp 2? Not sure if I have wrong settings or if there is something required - google is not pretty helpful :-( |
# |
Jun 26th 2018, 15:47 |
nedvajz |
Hi there |
# |
Jun 26th 2018, 15:15 |
josbeir |
its true that templates are a bit moe verbose compared to 2.x but it works well |
# |
Jun 26th 2018, 15:13 |
lubos |
Thanks, for my case I will use templates option at input level now, even it makes the options bit larger though |
# |
Jun 26th 2018, 15:12 |
lubos |
:+1: |
# |
Jun 26th 2018, 15:11 |
josbeir |
and takes a Money\Money object |
# |
Jun 26th 2018, 15:11 |
josbeir |
its just an example about the widget stuff, i used it in many situations, just created a 'money' widget that contains an amount(txt) and currency(select) field |
# |
Jun 26th 2018, 15:10 |
josbeir |
or at the helper configuration level |
# |
Jun 26th 2018, 15:10 |
josbeir |
or ath the form:create options level |
# |
Jun 26th 2018, 15:10 |
lubos |
OK. sounds good :slightly_smiling_face: Good to know about widgets and multiple select boxes case :slightly_smiling_face: |
# |
Jun 26th 2018, 15:09 |
josbeir |
you could add the 'templates' option to only the input you want to change |
# |
Jun 26th 2018, 15:09 |
josbeir |
where you need for instance multiple select boxes |
# |
Jun 26th 2018, 15:09 |
josbeir |
widgets are for more complex situations |
# |
Jun 26th 2018, 15:09 |
lubos |
But maybe I should learn widgets :slightly_smiling_face: There is elegant way to do? |
# |
Jun 26th 2018, 15:08 |
lubos |
It feels bit odd to add template just because I need to adjust inputContainer class for one field - I may end up with many templates :slightly_smiling_face: |
# |
Jun 26th 2018, 15:07 |
lubos |
Thought so :slightly_smiling_face: Perfect - thanks |
# |
Jun 26th 2018, 15:06 |
josbeir |
templates and/or widgets |
# |
Jun 26th 2018, 15:06 |
josbeir |
yes |
# |
Jun 26th 2018, 15:06 |
lubos |
with Cake2 I remember FormHelper had div option which make it possible to adjust inputContainer options, e.g. class. Is this gone now and I should use templates only at Cake3? |
# |
Jun 26th 2018, 13:52 |
neon1024 |
Just some nice syntactic sugar |
# |
Jun 26th 2018, 13:49 |
LubosR |
neon1024 you are right, minutes are better. Thing is just that everything is usually in seconds and you then do convert to what suits you |
# |
Jun 26th 2018, 13:27 |
jbehling |
yes |
# |
Jun 26th 2018, 13:27 |
neon1024 |
If you want to see you can always use `bin/cake routes` |
# |
Jun 26th 2018, 13:27 |
neon1024 |
So your Html link should be that right? |
# |
Jun 26th 2018, 13:26 |
jbehling |
in my `routes.php` is `Router::connect('/my-plugin', [ 'plugin' => 'MyPlugin', 'controller' => 'Requests', 'action' => 'index']);` |
# |
Jun 26th 2018, 13:25 |
neon1024 |
Or create a PluginsController, with an index action which takes the name of the plugin as a param |
# |
Jun 26th 2018, 13:24 |
neon1024 |
You will need to redirect to a controller action |
# |
Jun 26th 2018, 13:24 |
neon1024 |
Plugin prefixes do not have any routing |
# |
Jun 26th 2018, 13:24 |
neon1024 |
This is expected behavior |
# |
Jun 26th 2018, 13:05 |
slackebot4 |
browsing `myapp.local/my-plugin/edit/12345` and clicking the plugin name, it redirects to `myapp.local/my-plugin/edit` Can someone help me? |
# |
Jun 26th 2018, 13:05 |
jbehling |
I created a side menu in my application, where it has the name of the plugin that the client is accessing. By clicking the plugin name it redirects to a main screen (defined in the routes.php of each plugin). My plugin link is like this `<?= $this->Html->link($this->plugin, ['plugin' => $this->plugin, 'controller' => null, 'action' => null])?>` should this redirect to `myapp.local/my-plugin` exact? However, in some cases, when I'm |
# |
Jun 26th 2018, 12:26 |
saeideng |
cake 3 ^^ |
# |
Jun 26th 2018, 12:17 |
saeideng |
for setting the composite primary ``` setPrimaryKey(['id', 'other_id']); ``` |
# |
Jun 26th 2018, 12:14 |
saeideng |
@ghasem ^^ |