# |
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 ^^ |
# |
Jun 26th 2018, 12:13 |
saeideng |
{ id , f2_id,f1_id } |
# |
Jun 26th 2018, 12:13 |
saeideng |
you can have 1 field as primary key , and 2 others as unique key |
# |
Jun 26th 2018, 12:12 |
saeideng |
I think composite primary no needed in cake 3 |
# |
Jun 26th 2018, 11:58 |
adriencs |
File uploaded https://cakesf.slack.com/files/U5WD6SWR2/FBDEC2H6U/image.png / https://slack-files.com/T053DPNCM-FBDEC2H6U-0d2141c27c |
# |
Jun 26th 2018, 11:11 |
neon1024 |
Especially as there are significant changes in the ORM between the two releases! :slightly_smiling_face: |
# |
Jun 26th 2018, 11:11 |
neon1024 |
Can you be any more specific? Ideally a specific use-case and a certain major release of the framework? |
# |
Jun 26th 2018, 10:54 |
ghasem |
Hello my friends. How to use composite primary key on model in Cakekphp3 or Cakephp2? |
# |
Jun 26th 2018, 10:50 |
neon1024 |
I guess you’d just end up with `$minutes / 60` for your setting ;) |
# |
Jun 26th 2018, 10:49 |
neon1024 |
Perhaps 15 minutes though? Can you tell me 15 minutes in seconds off-hand? |
# |
Jun 26th 2018, 10:49 |
neon1024 |
I can’t imagine that my session would time out in say 120 seconds |
# |
Jun 26th 2018, 10:49 |
neon1024 |
Plus, I find it easier to think in minutes than seconds |
# |
Jun 26th 2018, 10:48 |
neon1024 |
Translating between the two isn’t really hard |
# |
Jun 26th 2018, 10:44 |
LubosR |
it also says it should not be more than php.ini session.gc_maxlifetime, which is set in seconds. isnt that wrong we deal with same thing in minutes / seconds? |
# |
Jun 26th 2018, 10:43 |
LubosR |
app.php says session timeout is in minutes, is that correct? |
# |
Jun 26th 2018, 10:11 |
rudy1976s |
I fixed by getting out from the select whose fields which can’t be grouped |
# |
Jun 26th 2018, 10:05 |
rudy1976s |
is the query “formally” correct ? |
# |
Jun 26th 2018, 10:04 |
rudy1976s |
I think this is not the correct way of using association because grouping won’t work |
# |
Jun 26th 2018, 10:03 |
rudy1976s |
https://gist.github.com/rudy1976s/6f36b3b09f57cef3082db586a664a4cd |
# |
Jun 26th 2018, 10:03 |
rudy1976s |
I have a query like the following |
# |
Jun 26th 2018, 10:02 |
rudy1976s |
Since you need to group by all the “non aggregated” fields in the select |
# |
Jun 26th 2018, 10:01 |
rudy1976s |
between mysql and mssql |
# |
Jun 26th 2018, 10:01 |
rudy1976s |
but I have different results using ORM |
# |
Jun 26th 2018, 10:01 |
neon1024 |
Setting the mode should work I think :slightly_smiling_face: |