# |
Feb 13th 2018, 08:14 |
hmic |
you could - and imho should - still try to use the great features the orm has to offer, even though you cannot use it up to its best, because of your existing database structure |
# |
Feb 13th 2018, 08:14 |
javier_rodri1989 |
the problem is that it's a php file and I can't use the orm |
# |
Feb 13th 2018, 08:14 |
hmic |
no ORM stuff on there. |
# |
Feb 13th 2018, 08:13 |
hmic |
everything on this page can and should be used as a pure database abstraction layer: https://book.cakephp.org/3.0/en/orm/database-basics.html |
# |
Feb 13th 2018, 08:11 |
hmic |
even though you dont follow conventions and might not want table classes, you can still utilize the ORM to a good extent, at least the basic database layer. |
# |
Feb 13th 2018, 08:10 |
hmic |
are you talking PDO or ORM? |
# |
Feb 13th 2018, 08:09 |
javier_rodri1989 |
Because I don't follow the structure of the framework. But I don't know if you can do it the way I want... anyway the PDO connection doesn't work for me. |
# |
Feb 13th 2018, 08:07 |
ricksaccous |
@javier_rodri1989 why are you avoiding connections by PDO? |
# |
Feb 13th 2018, 08:05 |
javier_rodri1989 |
good morning, I have a doubt, I want to create a pluggin that serves to make database queries in a flat php... this to avoid making connection by PDO... can you do this? |
# |
Feb 13th 2018, 07:23 |
michaelze |
@ricksaccous Thanks! Single checkbox is boolean, you are right. I'm looking for a belongsToMany kind of behavoir... |
# |
Feb 13th 2018, 07:20 |
nisseni |
Fellow cake-people. I know it's not entirely cakephp-related but still. I have an app which is basically an online store, hence it's holding a lot of images, 10gb+. I also have a dev-server. Is there an easy and smooth way of updating the dev server with images from the master repo? |
# |
Feb 13th 2018, 06:56 |
ricksaccous |
not sure heh |
# |
Feb 13th 2018, 06:56 |
ricksaccous |
multi-checkbox though.... |
# |
Feb 13th 2018, 06:56 |
ricksaccous |
checkbox is boolean |
# |
Feb 13th 2018, 05:56 |
michaelze |
Is the data in the database the same? I mean in terms of no of records? Maybe some required indices are missing... |
# |
Feb 13th 2018, 05:53 |
michaelze |
In a model form I can use the form helper like this: $this->Form->control('tags._ids'). How do I have to configure the schema of the modelless form? What's the name of the control? |
# |
Feb 13th 2018, 05:53 |
michaelze |
Hi! Is it possible, in a modelless form, to have a field which basically behaves like a list of checkboxes as if it was a belongsToMany association on a normal model form? |
# |
Feb 13th 2018, 03:55 |
elephantguy |
@savant -- thanks for the heads up, i'll be sure to watch out for further info |
# |
Feb 13th 2018, 02:54 |
savant |
so you should be getting it really soon :slightly_smiling_face: |
# |
Feb 13th 2018, 02:54 |
savant |
iirc everyone should have gotten a message to insert where to send the elephants |
# |
Feb 13th 2018, 02:53 |
savant |
elephantguy: yeah they are being produced |
# |
Feb 13th 2018, 02:08 |
elephantguy |
i ordered the preorder in august last year, still hoping it happens https://swag.cakephp.org/products/cakephp-elephpant?variant=43020313236 |
# |
Feb 13th 2018, 02:07 |
elephantguy |
anyone know if the cakephp elephpants are getting produced? |
# |
Feb 13th 2018, 01:34 |
aro |
im trying to add it as a subquery, but cake keeps executing it |
# |
Feb 13th 2018, 01:32 |
aro |
how do i make cake select this as a field in a paginate? ``` (SELECT COUNT(*) FROM tags_tags as T LEFT JOIN tags_tagged TT ON T.id = TT.tag_id WHERE TT.fk_model = 'Proposals' AND TT.fk_id = Proposals.id AND TT.tag_id IN (6,1)) as matches,``` |
# |
Feb 13th 2018, 01:20 |
ahmed_bodi |
atleast it shouldnt be showing errors in production. Although you may have display errors enabled |
# |
Feb 13th 2018, 01:19 |
ahmed_bodi |
and display that page |
# |
Feb 13th 2018, 01:18 |
ahmed_bodi |
on production it'll throw a HTTP 500 |
# |
Feb 13th 2018, 01:18 |
meder |
hahahaha |
# |
Feb 13th 2018, 01:18 |
ahmed_bodi |
lol |
# |
Feb 13th 2018, 01:18 |
ahmed_bodi |
ohhh |
# |
Feb 13th 2018, 01:18 |
meder |
lol i was actually asking my own question |
# |
Feb 13th 2018, 01:18 |
ahmed_bodi |
instead its /admin/en/users |
# |
Feb 13th 2018, 01:18 |
ahmed_bodi |
i expected to have a url like /en/admin/users |
# |
Feb 13th 2018, 01:18 |
ahmed_bodi |
@meder managed to get it. For some reason the prefix is fucking things up |
# |
Feb 13th 2018, 01:00 |
meder |
on development i dont get anything if i have a controller with a missing template file, but in production it throws a missing plugin etc |
# |
Feb 13th 2018, 00:59 |
meder |
in production/non-debug, does it throw an error moreso if you're missing a template for a controller file? |
# |
Feb 13th 2018, 00:43 |
ahmed_bodi |
its like its not applying the language changes on the fallback routes |
# |
Feb 13th 2018, 00:41 |
ahmed_bodi |
I'm looking for a way to add i18n routing to my site, i want all the pages prefixed with the language which i can handle. But its the routing which is confusing me, I've tried admad's plugin and that just makes them all give me route not found errors |
# |
Feb 12th 2018, 23:13 |
ahmed_bodi |
Hi guys, has anyone used cakephp-translate plugin? |
# |
Feb 12th 2018, 22:38 |
aro |
ok, so i found what i need to do, but i am getting an error |