# |
Jul 2nd 2019, 09:23 |
challgren |
Weird, I’d suggest opening an issue at https://github.com/cakephp/migrations |
# |
Jul 2nd 2019, 09:22 |
conehead |
Errm actually before those 2 migrations, there are 3 more that are executed correctly |
# |
Jul 2nd 2019, 09:21 |
challgren |
My guess is the first table creates with the defaults and then something resets the collation and it defaults the to the db |
# |
Jul 2nd 2019, 09:21 |
conehead |
Yep I will. Still wondering why this is happening at all |
# |
Jul 2nd 2019, 09:21 |
challgren |
Set the db to utf8 and try again |
# |
Jul 2nd 2019, 09:19 |
conehead |
second is swedish |
# |
Jul 2nd 2019, 09:19 |
conehead |
First is utf8 |
# |
Jul 2nd 2019, 09:19 |
conehead |
strange thing is... I created 2 Migrations. Just ``` Migration1: $this->table('a') ->create(); Migration2: $this->table('b') ->create(); ``` |
# |
Jul 2nd 2019, 09:18 |
challgren |
I personally use utf8mb4 as my default and in my app.conf |
# |
Jul 2nd 2019, 09:18 |
conehead |
well or incorrect |
# |
Jul 2nd 2019, 09:18 |
conehead |
its swedish_ci thats correct |
# |
Jul 2nd 2019, 09:17 |
conehead |
Yep I know |
# |
Jul 2nd 2019, 09:16 |
challgren |
And by default I mean on the db itself not in app.php |
# |
Jul 2nd 2019, 09:16 |
conehead |
One second. Trying to nail it down |
# |
Jul 2nd 2019, 09:14 |
challgren |
Whats your database default? |
# |
Jul 2nd 2019, 09:12 |
conehead |
Yes, I am trying to find out why it switches at some point. but it does only switch for some forms |
# |
Jul 2nd 2019, 09:12 |
challgren |
http://docs.phinx.org/en/latest/migrations.html#creating-a-table |
# |
Jul 2nd 2019, 09:11 |
challgren |
PHinx defaults to utf8_general_ci |
# |
Jul 2nd 2019, 09:11 |
conehead |
This seems totally random |
# |
Jul 2nd 2019, 09:08 |
challgren |
@conehead try setting the ‘collation’ in the migration file |
# |
Jul 2nd 2019, 09:00 |
conehead |
what the? Some migrations create `latin1_swedish_ci` tables and some create `utf8_general_ci` tables. It is not hardcoded anywhere |
# |
Jul 2nd 2019, 08:17 |
mlllllllllllllll |
. |
# |
Jul 2nd 2019, 06:02 |
conehead |
Got it, sorry. My mistake |
# |
Jul 2nd 2019, 05:44 |
conehead |
Ah |
# |
Jul 2nd 2019, 05:41 |
conehead |
I have a single page with multiple forms to edit/delete entities with ajax. I am able to delete a first entity (no matter which one), but when I try to delete the second one, I get csrf token mismatch |
# |
Jul 2nd 2019, 05:34 |
admad |
@conehead same csrf token is used throughout the session |
# |
Jul 2nd 2019, 05:04 |
conehead |
Is it not possible to have multiple forms on a single page? Each form has the same csrf token, but it seems like only the last one is valid |
# |
Jul 2nd 2019, 05:00 |
ra7bi |
Thanks , i found just now need to pass `$this->render('ctp')` to my own function |
# |
Jul 2nd 2019, 04:59 |
conehead |
@ra7bi Can't you just perform an internal GET request to that URI? |
# |
Jul 2nd 2019, 04:47 |
ra7bi |
to be more clear i want to pass html output of my action to other function . |
# |
Jul 2nd 2019, 04:46 |
ra7bi |
what function can return entire html response as 'html/text' i need the html text in my controller |
# |
Jul 2nd 2019, 04:21 |
conehead |
@dereuromark Sounds like the problem I had? https://cakesf.slack.com/archives/C053DPNGT/p1560404154449000 Unfortunately I did not find any solution. Did you find one? |
# |
Jul 2nd 2019, 02:50 |
waspinator |
in `Crud.beforeFind` how would you set the id if not provided in the url? |
# |
Jul 1st 2019, 21:36 |
challgren |
@khalid I dont think it adds the limit and page because when resorting the page number will display a different data set than the current page |
# |
Jul 1st 2019, 21:09 |
khalid |
is it possible to get it? |
# |
Jul 1st 2019, 21:09 |
khalid |
It is not adding limit and page parameter from query string |
# |
Jul 1st 2019, 21:09 |
khalid |
when I am calling this on my view: $this->Paginator->sort('account_name', __('Account')) |
# |
Jul 1st 2019, 21:09 |
khalid |
Hi everyone, I have a quick question |
# |
Jul 1st 2019, 20:45 |
mdotobie |
I was trying to avoid continuing to pass the variable to each nested element. I went the route of creating a property on a `Helper` class and setting and getting that. |
# |
Jul 1st 2019, 20:19 |
mdotobie |
and then try to access this in an element later. I get the empty array value. |
# |
Jul 1st 2019, 20:18 |
mdotobie |
I have been trying `$this->set('nested', [])` within a few. And then when I enter a loop try to set `$nested['products'] = $index` |