# |
Apr 15th 2019, 13:46 |
ricksaccous |
to make it dynamic |
# |
Apr 15th 2019, 13:46 |
ricksaccous |
seems like you just return a string |
# |
Apr 15th 2019, 13:46 |
birdy247 |
https://book.cakephp.org/3.0/en/core-libraries/validation.html#conditional-dynamic-error-messages |
# |
Apr 15th 2019, 13:45 |
birdy247 |
similar to this |
# |
Apr 15th 2019, 13:45 |
birdy247 |
Can i make the "message" dyanmic |
# |
Apr 15th 2019, 13:45 |
birdy247 |
I have made a custom reuseable rule |
# |
Apr 15th 2019, 13:42 |
ricksaccous |
does anyone have experience using queryBuilder to put cases in order statement? |
# |
Apr 15th 2019, 13:05 |
J98hasjd |
Can I disable i18n merges for one specific finder? |
# |
Apr 15th 2019, 13:04 |
J98hasjd |
hi |
# |
Apr 15th 2019, 12:20 |
martin |
how can I use the mysql replace function in cakephp? I tried `$query->where([$query->func()->replace(['tel', '-', '']) => '21312312]);` but that does not work :S |
# |
Apr 15th 2019, 08:59 |
dereuromark |
I wrote a tool in https://github.com/dereuromark/cakephp-test-helper to detect which classes are completely missing tests yet (no test file for it) and to quickly generate it via 1 click in GUI. I am sure the tooling here could be further enhanced. |
# |
Apr 15th 2019, 08:57 |
neon1024 |
Morning :wave: |
# |
Apr 15th 2019, 08:46 |
dereuromark |
or IDE "rightlick + detect usage" |
# |
Apr 15th 2019, 08:46 |
dereuromark |
its called code coverage usually |
# |
Apr 15th 2019, 08:42 |
val |
Is there an easy way to detect whether a class in Lib folder was called by a unit test if that class has no reference to any model? |
# |
Apr 15th 2019, 08:39 |
challgren |
Ohhhhhh Im not sure on Cake 2. I push that version out of my memory months ago |
# |
Apr 15th 2019, 08:39 |
val |
@challgren we use cake 2 version. something wrong with routes. the request to `/DebugKit/ToolbarAccess/history_state/1` failed with "Controller class DebugKitController could not be found." now |
# |
Apr 15th 2019, 08:32 |
challgren |
You can also configure the DebugKit database to use Mysql https://book.cakephp.org/3.0/en/debug-kit.html#database-configuration |
# |
Apr 15th 2019, 08:31 |
challgren |
Then you'll be able to debug the request history |
# |
Apr 15th 2019, 08:30 |
challgren |
Install it and it will work |
# |
Apr 15th 2019, 08:07 |
val |
@challgren nope |
# |
Apr 15th 2019, 08:02 |
challgren |
You have sqlite installed? |
# |
Apr 15th 2019, 07:50 |
val |
@challgren I got "History retrieval failed" error :( |
# |
Apr 15th 2019, 03:25 |
drailanjohn.gss |
@challgren thanks! I’ll give it a try! |
# |
Apr 15th 2019, 03:20 |
challgren |
If your executing it as a XHR you’ll see the history count go up with each request |
# |
Apr 15th 2019, 03:19 |
challgren |
Then click it and all the vars will change |
# |
Apr 15th 2019, 03:19 |
challgren |
Execute the json and then in the DebugKit window go to history and locate the json request |
# |
Apr 15th 2019, 03:16 |
drailanjohn.gss |
Hello, I have a question, How do you guys do a debugging on cakephp if the page output page is in json? |
# |
Apr 14th 2019, 20:25 |
noel |
And the reason is the BasicWidget ignores the `value` attribute.. I’ve created an issue here: https://github.com/cakephp/cakephp/issues/13116 |
# |
Apr 14th 2019, 19:28 |
noel |
I’ve added the question on stackoverflow: https://stackoverflow.com/questions/55679209/how-can-i-change-the-formhelpers-input-template-for-text-input |
# |
Apr 14th 2019, 19:24 |
noel |
I change the FormHelper template from `'input' => '<input type="{{type}}" name="{{name}}"{{attrs}}/>',` to `'input' => '<q-input type="{{type}}" name="{{name}}"{{attrs}}></q-input',` but it doesn’t get the ‘value’ attribute then. |
# |
Apr 14th 2019, 19:23 |
noel |
So the problem I’m having is that I’m trying to change the template for `<input type=text/>` elements. But when I do it loses the value when in edit context. |
# |
Apr 14th 2019, 19:04 |
noel |
ok it’s using `function __call` to handle missing methods. Took a while to figure that out. |
# |
Apr 14th 2019, 18:57 |
noel |
greetz! I’m trying to figure out FormHelper. It seems to be able to call `FormHelper::email` method but that method is not defined anywhere that I can see! Any ideas? |
# |
Apr 14th 2019, 18:30 |
challgren |
Thanks I’m mainly looking for a RFID Library that decodes GS1 user memory. I got all the backend code done now just need to implement the app\ |
# |
Apr 14th 2019, 16:22 |
snake-venom |
Query caching,, :( i wasted my 4 hours.. solved now. thanks |
# |
Apr 14th 2019, 16:19 |
snake-venom |
hi. i am working on cakephp 2 (old project) , in this i am executing a core mysql query in Loop ., strange Query everytime giving same result but when i am running core query in MySql console then results are different.. |
# |
Apr 14th 2019, 14:53 |
hollistergraham123 |
@challgren I use to repair the antennas a lot. All I know about programming them is they use UHF protocol and from a quick google search looks like there is a library to standardize the handling https://github.com/lapavila/RFIDScannerPlugin. Hope that helps |
# |
Apr 14th 2019, 08:05 |
challgren |
Anyone play/work with RFID (Just throwing it out there) |
# |
Apr 14th 2019, 05:06 |
waspinator |
hmm, turns out even though when I `console.log()`ed from `A` and `B`, even though the message from `B` came first, I still had access to variables set in `A` in `B`. strange... but it seems to work for now |
# |
Apr 14th 2019, 02:49 |
challgren |
@waspinator something like https://book.cakephp.org/3.0/en/views.html#displaying-blocks |