# |
Feb 10th 2020, 09:34 |
tersmitten |
We recently started using friendsofcake/crud-json-api. We're trying the prevent "data" loading for "relationships". what we want is: ```json "relationships": { "domain": { "links": { "self": "\/api\/v1\/domains\/1" }, "data": {} } }, instead of ```json "relationships": { "domain": { "links": { "self": "\/api\/v1\/domains\/1" }, "data": { |
# |
Feb 10th 2020, 09:32 |
challgren |
Ok next question is how do I add a default class to labels created via form helper |
# |
Feb 10th 2020, 09:27 |
javier.villanueva |
ajam, ok, thanks |
# |
Feb 10th 2020, 09:26 |
challgren |
I create the entity and then check the db |
# |
Feb 10th 2020, 09:24 |
javier.villanueva |
to test a validation default? |
# |
Feb 10th 2020, 09:24 |
javier.villanueva |
why is the best way to assert if entity is created without errors? |
# |
Feb 10th 2020, 09:20 |
javier.villanueva |
yes :S |
# |
Feb 10th 2020, 09:20 |
challgren |
weird |
# |
Feb 10th 2020, 09:19 |
javier.villanueva |
I use $this->assertResponseEmpty() |
# |
Feb 10th 2020, 09:18 |
challgren |
$this->assertResponseEmpty() |
# |
Feb 10th 2020, 09:18 |
challgren |
static access on non static object |
# |
Feb 10th 2020, 09:17 |
javier.villanueva |
why can this happen? |
# |
Feb 10th 2020, 09:17 |
javier.villanueva |
Call to undefined method App\Test\TestCase\Model\Table\UsersTableTest::assertResponseEmpty() |
# |
Feb 10th 2020, 09:16 |
javier.villanueva |
morning all |
# |
Feb 10th 2020, 09:14 |
challgren |
Ahh ok so it cant be set in a template that is extended or a layout |
# |
Feb 10th 2020, 09:11 |
challgren |
Does $this->Form->setTemplates() need to be called before the $this->Form->create() or after? |
# |
Feb 10th 2020, 08:50 |
neon1024 |
:thumbsup: |
# |
Feb 10th 2020, 08:45 |
challgren |
That's how I have it cut up, sidebar is an element and topbar is an element too, using knumenu to build the sidebar |
# |
Feb 10th 2020, 08:40 |
neon1024 |
Let me check my code |
# |
Feb 10th 2020, 08:38 |
neon1024 |
I just make it an element and started a view block |
# |
Feb 10th 2020, 08:38 |
challgren |
Can you share? |
# |
Feb 10th 2020, 08:38 |
neon1024 |
It’s a block too, so I can append extra nav items to it |
# |
Feb 10th 2020, 08:37 |
challgren |
O_o I like your topbar |
# |
Feb 10th 2020, 08:37 |
challgren |
Ohh you didnt go to indepth with it then |
# |
Feb 10th 2020, 08:36 |
slackebot |
<neon1024> |
# |
Feb 10th 2020, 08:36 |
challgren |
Ahh so basic form |
# |
Feb 10th 2020, 08:36 |
neon1024 |
Oh, I have my labels above |
# |
Feb 10th 2020, 08:35 |
challgren |
What I got so far. |
# |
Feb 10th 2020, 08:35 |
challgren |
Checkboxes I cant even get to line up |
# |
Feb 10th 2020, 08:34 |
neon1024 |
Well, radio and checkbox, I don’t implement the JS parts |
# |
Feb 10th 2020, 08:34 |
challgren |
Maybe cause im using 2.9.3 |
# |
Feb 10th 2020, 08:34 |
challgren |
All Form Elements is what Im trying |
# |
Feb 10th 2020, 08:34 |
neon1024 |
That should just work |
# |
Feb 10th 2020, 08:34 |
challgren |
http://webapplayers.com/inspinia_admin-v2.9.3/form_basic.html |
# |
Feb 10th 2020, 08:33 |
challgren |
Forms that match the look and feel |
# |
Feb 10th 2020, 08:33 |
neon1024 |
What are you trying to generate? |
# |
Feb 10th 2020, 08:32 |
neon1024 |
I haven’t had any issues :) |
# |
Feb 10th 2020, 08:32 |
challgren |
Ahh ok yeah thats what I use but the templates dont quite match up |
# |
Feb 10th 2020, 08:32 |
challgren |
I seem to be fighting formhelper to do what I want it to do |
# |
Feb 10th 2020, 08:32 |
neon1024 |
Nope, I use the friendsofcake/bootstrap-ui |
# |
Feb 10th 2020, 08:31 |
challgren |
You dont happen to have a custom form helper for it? |