# |
Jun 14th 2018, 08:54 |
roel |
Hello everyone :slightly_smiling_face:, If I want to load another table within a controller do I use `$this->loadModel();` or `TableRegistry::get();` |
# |
Jun 14th 2018, 08:52 |
tim |
Show us some code? |
# |
Jun 14th 2018, 08:52 |
javier_rodri1989 |
The problem is the getter |
# |
Jun 14th 2018, 08:51 |
tim |
What are you using to save it to the entity? |
# |
Jun 14th 2018, 08:50 |
javier_rodri1989 |
I have a problem, I am adding data with a form, I have getter in the entity and it tells me that value string cannot convert it. So I don't getter them but of course.... getter is for reading and I would be writing when I send them. Thank you |
# |
Jun 14th 2018, 08:46 |
josbeir |
:rolling_on_the_floor_laughing: |
# |
Jun 14th 2018, 08:46 |
neon1024 |
@josbeir Can help you :P |
# |
Jun 14th 2018, 08:46 |
neon1024 |
@javier_rodri1989 What’s the question? |
# |
Jun 14th 2018, 08:45 |
neon1024 |
It’s not impolite. It’s impossible to guarantee help if you don’t know what the issue is ;) |
# |
Jun 14th 2018, 08:44 |
slackebot |
!ask |
# |
Jun 14th 2018, 08:44 |
slackebot |
Command sent from Slack by neon1024: |
# |
Jun 14th 2018, 08:35 |
tim |
I'm just saying :P |
# |
Jun 14th 2018, 08:34 |
josbeir |
now now @tim the man is polite! :slightly_smiling_face: |
# |
Jun 14th 2018, 08:34 |
tim |
Just ask, dont ask to ask |
# |
Jun 14th 2018, 08:22 |
javier_rodri1989 |
You can help me with a problem? |
# |
Jun 14th 2018, 08:21 |
javier_rodri1989 |
hello |
# |
Jun 14th 2018, 08:20 |
neon1024 |
@itamer I’ve never seen that method in the request object |
# |
Jun 14th 2018, 08:19 |
neon1024 |
@tylergel Set a specific selector on the HTML you want to style, probably a unique id attribute. |
# |
Jun 14th 2018, 08:01 |
narendravaghela |
:thumbsup: |
# |
Jun 14th 2018, 08:01 |
birdy247 |
Yea, its done a grand job |
# |
Jun 14th 2018, 08:00 |
birdy247 |
in between it crashing :) |
# |
Jun 14th 2018, 08:00 |
neon1024 |
It will draw your database for you, providing you have correct foreign key constraints setup |
# |
Jun 14th 2018, 08:00 |
birdy247 |
@neon1024 thanks, using it now |
# |
Jun 14th 2018, 08:00 |
neon1024 |
@birdy247 I use MySQL Workbench, which has a reverse engineer function |
# |
Jun 14th 2018, 07:37 |
tylergel |
How do I use a css file in only my template content page, not the element header? |
# |
Jun 14th 2018, 07:31 |
narendravaghela |
I haven't tried it though |
# |
Jun 14th 2018, 07:30 |
narendravaghela |
@birdy247 Check this - http://www.vertabelo.com/ |
# |
Jun 14th 2018, 07:13 |
birdy247 |
any tips on generating an er diagram from an existing DB? |
# |
Jun 14th 2018, 04:15 |
itamer |
cakephp2 - any reason why this fails to pick up webhook data from mandrill? $data = $this->request->input('json_decode'); |
# |
Jun 13th 2018, 22:18 |
itmpls |
nevermind :slightly_smiling_face: needed an inner use |
# |
Jun 13th 2018, 22:00 |
itmpls |
http://dpaste.com/3TZD7KF what am I doing off that would cause an incomplete query? |
# |
Jun 13th 2018, 21:56 |
hippo |
@jb360 Turns out I was using an old version of Bake :slightly_smiling_face: |
# |
Jun 13th 2018, 20:58 |
jb360 |
Usage: cake bake test [options] [<Entity|Table|Controller|Component|Behavior|Helper|Shell|Task|ShellHelper|Cell|Form|Mailer|Command|entity|table|controller|component|behavior|helper|shell|task|shell_helper|cell|form|mailer|command>] [<name>] |
# |
Jun 13th 2018, 20:58 |
jb360 |
@hippo check the command order |
# |
Jun 13th 2018, 20:49 |
slackebot |
`/var/www/digital2go/d2go_cms/app/tests/TestCase/Controller/ApplicationsControllerTest.php` ``` |
# |
Jun 13th 2018, 20:49 |
slackebot |
`/var/www/digital2go/d2go_cms/app/tests/TestCase/Controller/ApplicationsControllerTest.php` bin/cake bake test Controller --prefix Customer Applications Baking test case for App\Controller\ApplicationsController ... File `/var/www/digital2go/d2go_cms/app/tests/TestCase/Controller/ApplicationsControllerTest.php` exists Do you want to overwrite? (y/n/a/q) [n] > y Wrote |
# |
Jun 13th 2018, 20:49 |
hippo |
Trying to generate controller tests with prefixes but both generate the exact same file.. ``` bin/cake bake test Controller --prefix Admin Applications Baking test case for App\Controller\ApplicationsController ... File `/var/www/digital2go/d2go_cms/app/tests/TestCase/Controller/ApplicationsControllerTest.php` exists Do you want to overwrite? (y/n/a/q) [n] > y Wrote |
# |
Jun 13th 2018, 20:00 |
sdevore |
Ok, just wanted to check. So I’ll dig into thing to see if I can figure out why I am doing this to myself |
# |
Jun 13th 2018, 19:59 |
lorenzo |
right, they should not mess with the ones in the main view |
# |
Jun 13th 2018, 19:58 |
sdevore |
I agree with the design BTW ;) |
# |
Jun 13th 2018, 19:57 |
sdevore |
but they shouldn’t null the main view blocks right? |