Log message #4115051

# At Username Text
# Feb 6th 2018, 16:20 saeideng check your url/route
# Feb 6th 2018, 16:19 saeideng maybe your mean is `foods` ?
# Feb 6th 2018, 16:19 saeideng but you try to add your code to `index` action
# Feb 6th 2018, 16:18 saeideng `/recipes\/foods" `
# Feb 6th 2018, 16:16 ahmad @saeideng see above
# Feb 6th 2018, 16:16 saeideng `debug($this->FoodEntry);` ?
# Feb 6th 2018, 16:16 ahmad cause even if rename, it still shows that
# Feb 6th 2018, 16:16 ahmad it seems to be like it doesn't recognize that class
# Feb 6th 2018, 16:14 ahmad no clue what happened
# Feb 6th 2018, 16:14 ahmad the hardest thing to understand is it was working a week ago
# Feb 6th 2018, 16:14 ahmad and food_entries in db
# Feb 6th 2018, 16:13 ahmad yes FoodEntry.php model extends Model eventually
# Feb 6th 2018, 16:13 ahmad cake 2
# Feb 6th 2018, 16:13 saeideng cake 3?
# Feb 6th 2018, 16:13 saeideng ?
# Feb 6th 2018, 16:13 saeideng or model/table
# Feb 6th 2018, 16:13 saeideng FoodEntry.php model ?
# Feb 6th 2018, 16:11 ahmad yes
# Feb 6th 2018, 16:11 dereuromark Are you sure your model class extends the core one?
# Feb 6th 2018, 16:11 ahmad File uploaded https://cakesf.slack.com/files/U94LH8DUL/F9452QDFB/-.txt / https://slack-files.com/T053DPNCM-F9452QDFB-b5db46f06e
# Feb 6th 2018, 16:09 dereuromark what kind of class is FoodEntry? debug()?
# Feb 6th 2018, 16:09 ahmad oh i see my bad
# Feb 6th 2018, 16:09 dereuromark you should always mention that
# Feb 6th 2018, 16:08 ahmad yes
# Feb 6th 2018, 16:08 dereuromark is that 2.x?
# Feb 6th 2018, 16:08 ahmad I have FoodEntry.php model and food_entries table
# Feb 6th 2018, 16:08 dereuromark most likely your inflection is wrong, sure you dont have a FoodEntries table and model?
# Feb 6th 2018, 16:08 ahmad oo
# Feb 6th 2018, 16:08 dereuromark haha you dont mean IDE detect
# Feb 6th 2018, 16:07 hmic fail!
# Feb 6th 2018, 16:07 ahmad File uploaded https://cakesf.slack.com/files/U94LH8DUL/F94QNDL3F/-.txt / https://slack-files.com/T053DPNCM-F94QNDL3F-f5ccddd026 - i get this error
# Feb 6th 2018, 16:07 dereuromark https://github.com/dereuromark/cakephp-ide-helper/ is the solution to all your problems :slightly_smiling_face:
# Feb 6th 2018, 16:06 ahmad is that how to properly load a model?
# Feb 6th 2018, 16:05 ahmad File uploaded https://cakesf.slack.com/files/U94LH8DUL/F944YGBQR/-.txt / https://slack-files.com/T053DPNCM-F944YGBQR-0ecf24f87c
# Feb 6th 2018, 16:05 ahmad i have this in my controller
# Feb 6th 2018, 15:21 neon1024 In related news, how I can pursuade the marshaller to not marshal my json field into an array?
# Feb 6th 2018, 15:21 neon1024 I’ll use json_encode($json) with the pretty print I think for the meantime
# Feb 6th 2018, 15:17 kalle.alberg Try that? <pre> <? print_r(json_encode($data, JSON_PRETTY_PRINT)); ?> </pre>
# Feb 6th 2018, 15:12 neon1024 I’m storing entity errors in my log as a json field, and would rather sidestep writing a recursive array output function
# Feb 6th 2018, 15:11 neon1024 Is there a kind of “web friendly” var_dump ?
# Feb 6th 2018, 15:11 zmurphy Ah, duh, I've had to use that when working on old cake 2 stuff with phpcs enabled.