# |
Jul 20th 2017, 11:32 |
neon1024 |
Hey @birdy247 are you here? This is the PR I keep referring to - about timezones - https://github.com/cakephp/cakephp/pull/8588 |
# |
Jul 20th 2017, 11:28 |
Ecorce |
(there's only Config.time in session, no more Auth.User) |
# |
Jul 20th 2017, 11:28 |
Ecorce |
Just, $this->Auth->user() returns empty |
# |
Jul 20th 2017, 11:28 |
Ecorce |
However, $this->Auth->allow doesn't throw an exception, so I guess Auth is loaded |
# |
Jul 20th 2017, 11:26 |
Ecorce |
There was no problem before, when Auth was loaded in the basic AppController (not the one I created for the prefix) |
# |
Jul 20th 2017, 11:25 |
Ecorce |
And I don't understand why |
# |
Jul 20th 2017, 11:25 |
Ecorce |
after login, any action returns null when I get $this->Auth->user() |
# |
Jul 20th 2017, 11:24 |
Ecorce |
Finally I was wrong, my Auth session disappears when calling an action (after login, which succeeds and create a session, that I can get with $this->Auth->user()) |
# |
Jul 20th 2017, 11:24 |
hmic |
you have checked the namespaces of all files involved? |
# |
Jul 20th 2017, 11:23 |
hmic |
do tell |
# |
Jul 20th 2017, 11:21 |
Ecorce |
Still in trouble with the AuthComponent, loaded in the AppController of my prefix folder |
# |
Jul 20th 2017, 11:20 |
Ecorce |
Hello, I'm back again |
# |
Jul 20th 2017, 10:52 |
andri_ |
i have only one rule in buildRules.... $rules->add($rules->isUnique(['id'])) |
# |
Jul 20th 2017, 10:52 |
mirec |
take a look on generated queries in your sql log |
# |
Jul 20th 2017, 10:52 |
mirec |
or not.. I guess there is some null check in existsin rule... would be silly not to check null values |
# |
Jul 20th 2017, 10:51 |
mirec |
seems like thing with buildRules. rule existsIn ? |
# |
Jul 20th 2017, 10:50 |
andri_ |
but once i enter an existing id for it. it gives me that error. |
# |
Jul 20th 2017, 10:49 |
andri_ |
the entity can be saved if foreign_key_id == NULL |
# |
Jul 20th 2017, 10:49 |
mirec |
what SQL query is generated? |
# |
Jul 20th 2017, 10:48 |
andri_ |
yes |
# |
Jul 20th 2017, 10:47 |
mirec |
is your association have configured as 'joinType' => 'left' ? |
# |
Jul 20th 2017, 10:46 |
andri_ |
the error says record not found in table ... with primary key [NULL] |
# |
Jul 20th 2017, 10:46 |
andri_ |
i can't save my entity that has a belongsTo association and its foreign_key previously set to null in database. |
# |
Jul 20th 2017, 10:25 |
dinosaur |
I have this on plugin::router.php Router::plugin( 'ContatoHandler', function (RouteBuilder $routes) { Router::connect('/ContatoHandler/Contato' , ['controller' => 'Contato', 'action' => 'index', 'plugin'=>'Aplicar/ContatoHandler']); } ); |
# |
Jul 20th 2017, 10:24 |
dinosaur |
I have a route issue to a plugin. If I call http://localhost/ContatoHandler/Contato/1> I got an error saying that that is no route to this and show the valid routes. There /ContatoHandler/Contato [ 'controller' => 'Contato', 'action' => 'index', 'plugin' => 'Aplicar/ContatoHandler' ] is shown. But when I call, <http://localhost/ContatoHandler/Contato a redirect to "/" occurs |
# |
Jul 20th 2017, 10:22 |
dinosaur |
Good Morning |
# |
Jul 20th 2017, 10:21 |
rogerpro |
thank you |
# |
Jul 20th 2017, 10:21 |
rogerpro |
from phinxlog table. great! it works :slightly_smiling_face: |
# |
Jul 20th 2017, 10:09 |
dereuromark |
delete it from the DB table |
# |
Jul 20th 2017, 09:59 |
rogerpro |
and restoring old file schema-dump-default.lock doesn’t work |
# |
Jul 20th 2017, 09:57 |
rogerpro |
If `$ bin/cake migrations status` says ```up 20170719154742 Foo ** MISSING **``` how can I remove this 20170719154742 ? is it on the cache? I deleted the file while testing but it remains something somewhere… :thinking_face: |
# |
Jul 20th 2017, 09:55 |
ldsign |
Hi. Is it possible to render the (viewClass) layout, but not the (method-specific) template? |
# |
Jul 20th 2017, 09:54 |
ZoeB |
Thank you very much! |
# |
Jul 20th 2017, 09:54 |
ZoeB |
Thanks, that's working! 'id' => 'BarFake', 'name' => 'data[Bar][fake]', |
# |
Jul 20th 2017, 09:52 |
hmic |
i actually thought cake would *not* add the current scopes alias to a qualified form field (this is Bar.fake instead of fake)... I might be wrong |
# |
Jul 20th 2017, 09:51 |
hmic |
ZoeB, you can provide the name in the options array if cakes guess iss wrong |
# |
Jul 20th 2017, 09:50 |
ZoeB |
I realise I could just call it $this->Form->input('Foo.fake_column'), but that's semantically less accurate. Is there some kind of $this->Form->input('Misc.fake_column') I should be using for form inputs that don't correspond directly to what's in the database? |
# |
Jul 20th 2017, 09:44 |
josexato |
Ok I understand |
# |
Jul 20th 2017, 09:44 |
dereuromark |
the main idea of the plugin is to have the same code in actions for both ajax and non ajax, so you basically get some ajax on top for free. in that light @hmic approach is usually overkill ;) If you just need a few small ajax enhancements here and there |
# |
Jul 20th 2017, 09:43 |
hmic |
angular(1/2/4) is the prime example(s) i think. |
# |
Jul 20th 2017, 09:43 |
ZoeB |
Hi! I'm (belatedly) upgrading from 1.3 to 2.0. Regarding the form helper, $this->Form->input('Foo.real_column') works, and $this->Form->input('Bar.real_column') works, but $this->Form->input('Bar.fake_column') gets rendered as Foo.Bar.fake_column. Is there a way around this? |