# |
Jun 29th 2017, 09:16 |
marcusgoede |
no I’m using sublime. I expect PHP errors to show me file and line number. It was there all the time in a box with green background. Now it’s gone |
# |
Jun 29th 2017, 09:15 |
adriencs |
red underline or something |
# |
Jun 29th 2017, 09:15 |
adriencs |
your editor don't show syntax errors ? |
# |
Jun 29th 2017, 08:43 |
neon1024 |
Which Mark though? ;) |
# |
Jun 29th 2017, 08:41 |
Sebollson |
admad: Oh I see, so basicly design changed, implementation didnt :) |
# |
Jun 29th 2017, 08:37 |
admad |
*if mark ... |
# |
Jun 29th 2017, 08:37 |
admad |
probably the reason it behaves like this currently is because afterSaveCommit didn't exist initially |
# |
Jun 29th 2017, 08:36 |
admad |
sounds reasonable, could be in 3.5 i mark or jose don't see any potential downsides |
# |
Jun 29th 2017, 08:28 |
Sebollson |
@admad what do you think about that issue ?? |
# |
Jun 29th 2017, 08:12 |
manuweg |
thanks |
# |
Jun 29th 2017, 08:12 |
manuweg |
ok. I will give that a go |
# |
Jun 29th 2017, 08:11 |
neon1024 |
Morning everyone |
# |
Jun 29th 2017, 08:10 |
admad |
use crud and crud-view plugin and you won't have to bother generating templates for CRUD operations :slightly_smiling_face: |
# |
Jun 29th 2017, 08:09 |
manuweg |
I have generated it with the table prefix eg. ShopOrderItems |
# |
Jun 29th 2017, 08:09 |
manuweg |
everything actually works fine until I generate the template code |
# |
Jun 29th 2017, 08:08 |
admad |
right, so that's not the issue |
# |
Jun 29th 2017, 08:07 |
manuweg |
'className' => 'Shop.Products' |
# |
Jun 29th 2017, 08:07 |
manuweg |
'className' => 'Shop.Orders' |
# |
Jun 29th 2017, 08:07 |
manuweg |
https://thepasteb.in/p/zmh8Vry6RPBsZ |
# |
Jun 29th 2017, 08:06 |
manuweg |
no it's the plugin |
# |
Jun 29th 2017, 08:05 |
manuweg |
products are just a model within the the shop plugin |
# |
Jun 29th 2017, 08:05 |
admad |
nvm, i see 'className' has the Shop prefix |
# |
Jun 29th 2017, 08:04 |
manuweg |
Shop is the plugin |
# |
Jun 29th 2017, 08:04 |
admad |
*your |
# |
Jun 29th 2017, 08:04 |
admad |
manuweg: are you Products and Shops also in the Shop plugin? If you in associations you need to use Shop.Prouducts and Shop.Shops |
# |
Jun 29th 2017, 07:38 |
manuweg |
thanks for the input |
# |
Jun 29th 2017, 07:38 |
manuweg |
no worries |
# |
Jun 29th 2017, 07:38 |
manuweg |
OK |
# |
Jun 29th 2017, 07:37 |
savant |
yeah i think so |
# |
Jun 29th 2017, 07:35 |
manuweg |
so I'm thinking maybe it's just a bug in the cake bake code relating to unconventional model names |
# |
Jun 29th 2017, 07:35 |
manuweg |
because the controller baked correctly |
# |
Jun 29th 2017, 07:34 |
manuweg |
yes that's what I thought |
# |
Jun 29th 2017, 07:34 |
savant |
which has the correct table specified… |
# |
Jun 29th 2017, 07:34 |
savant |
that *should* just use the table class in your Shop plugin |
# |
Jun 29th 2017, 07:34 |
savant |
interesting |
# |
Jun 29th 2017, 07:34 |
manuweg |
but I'm sure there is a cleaner way of doing it |
# |
Jun 29th 2017, 07:33 |
manuweg |
and then change the folder names and variable names |
# |
Jun 29th 2017, 07:33 |
manuweg |
I could just generate the code for the cake convention templates eg. ShopOrderItems |
# |
Jun 29th 2017, 07:32 |
manuweg |
when I generated the shop categories templates it generated the templates for the other categories model that I have which is not prefixed |
# |
Jun 29th 2017, 07:29 |
manuweg |
https://gist.github.com/manuweg/4e94e477db68df19d71c3a82d21e288b |
# |
Jun 29th 2017, 07:28 |
manuweg |
shall I just post the gist url? |