# |
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 |
# |
Apr 14th 2019, 01:29 |
waspinator |
is there a way to append to a display block that's started in an `extend` file? I have some script I want to start in a file (call it A), then keep on using those variables in the next file from which I extend from A |
# |
Apr 14th 2019, 00:08 |
challgren |
Fusion Tables was actually something useful |
# |
Apr 13th 2019, 16:27 |
admad |
https://gcemetery.co/ |
# |
Apr 13th 2019, 13:29 |
markstory |
It is a method on Controller. It loads components based on their name. |
# |
Apr 13th 2019, 11:25 |
om.axisweb |
and how it work ? |
# |
Apr 13th 2019, 11:23 |
om.axisweb |
what is cakephp 3 in $this->loadComponent('Csrf'); ? |
# |
Apr 13th 2019, 10:54 |
biesbjerg |
Nevermind, wrong primaryKey in my GymsTable :-/ |
# |
Apr 13th 2019, 10:40 |
biesbjerg |
Any idea what's going on? |
# |
Apr 13th 2019, 10:40 |
biesbjerg |
https://gist.github.com/biesbjerg/6d7985ec3b2a3ddeb580abf9aeb39b3e |
# |
Apr 13th 2019, 10:39 |
biesbjerg |
(`id`) ON DELETE NO ACTION ON UPDATE NO ACTION) |
# |
Apr 13th 2019, 10:39 |
biesbjerg |
I'm trying to save an entity (Event) with associated data (Gym). I have database constraint on events.gym_id -> gyms.id. When I try to save the data I get an error (I'm guessing Cake saves the event before the gym exists?): Error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`cfc`.`events`, CONSTRAINT `events_ibfk_1` FOREIGN KEY (`gym_id`) REFERENCES `gyms` |
# |
Apr 13th 2019, 07:55 |
slackebot |
<adithya> |
# |
Apr 13th 2019, 07:51 |
adithya |
Hi, I have a MainController even and i have the auth allow set i the before filter method , i'm being redirected to login , how do i allow accessing this without the user having to login |
# |
Apr 13th 2019, 00:52 |
waspinator |
I'm trying to get crud jsonapi to work, but I'm not sure how to actually make the request. it doesn't use extension routing right? In postman I just put in the regular url (localhost:8765/users) and added a Headers `Accept` key with value `application/vnd.api+json`, but all I get back is the regular view template. |
# |
Apr 13th 2019, 00:24 |
waspinator |
is the crud plugin required to use the crud jsonapi? |
# |
Apr 12th 2019, 22:06 |
ricksaccous |
https://stackoverflow.com/questions/18725941/mysql-order-by-best-match |
# |
Apr 12th 2019, 22:06 |
ricksaccous |
I think I found an answer to my second question |
# |
Apr 12th 2019, 22:03 |
ricksaccous |
ex WAGE is more similar to WAGE rather than WAGEING or something |
# |
Apr 12th 2019, 22:03 |
ricksaccous |
also let's say that I wanted to order like query based on similarity |
# |
Apr 12th 2019, 22:02 |
ricksaccous |
how would i end up doing that |
# |
Apr 12th 2019, 22:02 |
ricksaccous |
ex i want to order by matched elements where x = y first |
# |
Apr 12th 2019, 22:02 |
ricksaccous |
but i wanted to order giving one set of conditions priority |
# |
Apr 12th 2019, 22:01 |
ricksaccous |
suppose I had two sets of conditions i wanted to query by |
# |
Apr 12th 2019, 22:01 |
ricksaccous |
this is kind of a weird question but probably just highlights my unfamiliarity with SQL |
# |
Apr 12th 2019, 21:05 |
ricksaccous |
yep no problem |
# |
Apr 12th 2019, 21:05 |
abdualelah.mdy |
thanks |
# |
Apr 12th 2019, 21:04 |
abdualelah.mdy |
worked now |
# |
Apr 12th 2019, 20:53 |
ricksaccous |
sure |
# |
Apr 12th 2019, 20:53 |
abdualelah.mdy |
i will try to disable it then bake |