# |
Jun 10th 2019, 16:37 |
jeremyharris |
then you know what hasMany tags version to pull |
# |
Jun 10th 2019, 16:37 |
jeremyharris |
you could maybe add a tag_version_id and update that as well at the time |
# |
Jun 10th 2019, 16:36 |
challgren |
I do update the “Post” when the tags have been changed, via counter cache and manually updating the modified time |
# |
Jun 10th 2019, 16:35 |
jeremyharris |
I use that version plugin as well, but your requirement doesn’t quite fit what it does. You might be able to align version_ids (if you use those) but that can be problematic as well |
# |
Jun 10th 2019, 16:34 |
challgren |
Damm |
# |
Jun 10th 2019, 16:33 |
jeremyharris |
I think for something like that you would need custom versioning or to store tags/fks on the posts table itself |
# |
Jun 10th 2019, 16:29 |
slackebot1 |
individual tags. |
# |
Jun 10th 2019, 16:29 |
challgren |
Does anyone know of a version/audit plugin that also plays nice with hasManys? I’ve looked into https://github.com/josegonzalez/cakephp-version but I need something that shows the versioned hasManys? Basically I have say a Post that has many tags. Version 1 of the Post has 2 tags and then Version 2 of the post has 8 tags, and version 3 has 3 tags. I wanna be able to look at the Post with different versions instead of looking at the |
# |
Jun 10th 2019, 14:23 |
ricksaccous |
just breaded and fried pork |
# |
Jun 10th 2019, 14:23 |
jeremyharris |
no I haven’t |
# |
Jun 10th 2019, 14:23 |
ricksaccous |
i love it |
# |
Jun 10th 2019, 14:23 |
ricksaccous |
have you ever made tonkatsu |
# |
Jun 10th 2019, 14:22 |
jeremyharris |
but to each his own :P |
# |
Jun 10th 2019, 14:21 |
jeremyharris |
I’d prefer croutons, breadcrumbs are better for breading + frying or as a binder like for a meatball |
# |
Jun 10th 2019, 14:20 |
ricksaccous |
speaking of breadcrumbs, an actual salad with breadcrumbs would be great rightnow |
# |
Jun 10th 2019, 14:19 |
jeremyharris |
helpers are loaded onto views, not controllers, so that’s why you’re getting that error on a controller |
# |
Jun 10th 2019, 13:48 |
mehov |
I'm on 3.7.2. and `$this->loadHelper('Breadcrumbs');` itself doesn't seem to be giving me any errors. However, when I change *Breadcrumbs* to something random, it does show an error |
# |
Jun 10th 2019, 13:46 |
mehov |
Hey guys, I need help getting Breadcrumbs to work. I'm putting `$this->loadHelper('Breadcrumbs');` into src/View/AppView, but still when I call `$this->Breadcrumbs->...` in my controller, it gives me *Undefined property: PriceTestingController::$Breadcrumbs* |
# |
Jun 10th 2019, 12:27 |
yamcomnet |
i think i finally need to learn map/reduce :) |
# |
Jun 10th 2019, 12:22 |
yamcomnet |
i will look if i can find something usable from Collections |
# |
Jun 10th 2019, 12:22 |
yamcomnet |
now i just need to map object somehow to one-dimensional |
# |
Jun 10th 2019, 12:20 |
yamcomnet |
im using xml view for now. Seems to be working :) |
# |
Jun 10th 2019, 12:19 |
dereuromark |
depends. comma separated list for example if that suffices |
# |
Jun 10th 2019, 12:13 |
yamcomnet |
easiest way to flatten hasmany orm object? for xml/excel purposes |
# |
Jun 10th 2019, 11:38 |
revillosakristianpaol |
btw im using aws linux |
# |
Jun 10th 2019, 11:38 |
revillosakristianpaol |
when i open the webpage, it was route to my login page. but i returns 404 error |
# |
Jun 10th 2019, 11:37 |
revillosakristianpaol |
it already working, but i have another issue |
# |
Jun 10th 2019, 11:34 |
revillosakristianpaol |
i just tested to 777 (i was thinking also about permission so i tried) |
# |
Jun 10th 2019, 11:28 |
neon1024 |
Plus, I said rewrite, not permissions ;) |
# |
Jun 10th 2019, 11:27 |
neon1024 |
I wouldn’t recommend doing that |
# |
Jun 10th 2019, 11:27 |
neon1024 |
:grimacing: |
# |
Jun 10th 2019, 11:23 |
revillosakristianpaol |
i guess no, i already set the permission of all files on 777 |
# |
Jun 10th 2019, 11:20 |
neon1024 |
Looks like a missing stylesheet, which might be a rewrite issue? |
# |
Jun 10th 2019, 11:16 |
revillosakristianpaol |
does anyone experience this, after installing cakephp on the web server (aws) it returns to this screenshot. ? |
# |
Jun 10th 2019, 06:26 |
johnpaulgrefaldo |
Hi, how to make 2 fields for a associated table? |
# |
Jun 10th 2019, 05:55 |
kgb.acct.personal |
Nvm. I solved it by using anonymous function (query builder) on contained model |
# |
Jun 10th 2019, 05:44 |
kgb.acct.personal |
``` public $paginate = [ 'fields' => [ 'id', 'name' ], 'contain' => [ 'Vehicles' => [ // belongsToMany associated 'fields' => [ 'id', 'name' ] ] ] ]; ``` |
# |
Jun 10th 2019, 05:42 |
kgb.acct.personal |
I cannot select fields when containing belongsToMany associated table |
# |
Jun 10th 2019, 01:43 |
admad |
@st.steinkuehler correct |
# |
Jun 9th 2019, 19:16 |
slackebot1 |
times now, so I guess: If cake finds a ".mo" file for a translation domain it uses the ".mo" file to generate the "*_translations_*" files in "/tmp/cache/persistent". But if there is no ".mo" file the ".po" file is used. To the core developer: Did I figure that out right? |
# |
Jun 9th 2019, 19:16 |
st.steinkuehler |
I figured it out myself: Due to the fact that I have used the program "Poedit" a "default.mo" file will also be saved in "src/Locale/de", but I added the XXX to my teststring the "default.po" file (the ".po" file is human readable, the ".mo" is not). If I remove the "default.mo" file and also clear the cached "*_translations_*" files in "/tmp/cache/persistent" my teststring appears in the browser as aspected. I've tried it three |