Log message #4154442

# At Username Text
# Jun 28th 2018, 11:11 birdy247 but there must be a better way?
# Jun 28th 2018, 11:11 birdy247 @josbeir thanks, thats what I did
# Jun 28th 2018, 11:10 lubos Let's say I have Template/Pages/index.ctp Template/Pages/agent/index.ctp And I am setting template path like $this->viewBuilder()->setTemplatePath('Pages/agent'); But want to set it only when Pages/agent/index.ctp file exist, otherwise I would like to keep Pages template path
# Jun 28th 2018, 11:06 lubos I mean is there any good way via ViewBuilder ?
# Jun 28th 2018, 11:06 lubos What's the best way to check if template exist?
# Jun 28th 2018, 11:00 josbeir just make a backup of the file before pulling
# Jun 28th 2018, 10:36 birdy247 which is mayeb the wrong thing to do
# Jun 28th 2018, 10:36 birdy247 we updated the gitignore and performed a rm -r --cached in the same commit
# Jun 28th 2018, 10:36 birdy247 or should it just "ignore them"?
# Jun 28th 2018, 10:33 birdy247 when we next pull in our latest tag on the server, presumably it will remove this file?
# Jun 28th 2018, 10:33 birdy247 we have since added it to git ingore and doe a git rm -r --cached on it
# Jun 28th 2018, 10:33 birdy247 We have a config file that was committed to Git
# Jun 28th 2018, 10:14 kunalspunjabi @josbeir this is what I think is the issue, I traced it down to this: ```"Helper class JavascriptHelper could not be found." ```
# Jun 28th 2018, 09:31 mohitprakashsharma555 Hello
# Jun 28th 2018, 09:13 kitcat711 Bonjour
# Jun 28th 2018, 09:03 josbeir hetzner cloud ftp
# Jun 28th 2018, 09:03 josbeir cool :P
# Jun 28th 2018, 09:03 josbeir https://github.com/hetznercloud/awesome-hcloud
# Jun 28th 2018, 09:00 josbeir Debugger:dump() also exists
# Jun 28th 2018, 09:00 josbeir ah i'm no smyfony expert :P
# Jun 28th 2018, 08:59 saeideng symfony
# Jun 28th 2018, 08:59 josbeir thats a method from the Debugger class rifght?
# Jun 28th 2018, 08:58 saeideng proper for dumping objects
# Jun 28th 2018, 08:57 saeideng even you able to use `dump()` instead of `debug()` :$
# Jun 28th 2018, 08:56 kunalspunjabi will do
# Jun 28th 2018, 08:56 kunalspunjabi thanks
# Jun 28th 2018, 08:55 josbeir good luck, let us know how it goes
# Jun 28th 2018, 08:55 kunalspunjabi ok, I'm going to give it a shot again @josbeir
# Jun 28th 2018, 08:55 saeideng `dd() `= `debug() ; die();`
# Jun 28th 2018, 08:54 josbeir even better :slightly_smiling_face:
# Jun 28th 2018, 08:54 josbeir bad habbits
# Jun 28th 2018, 08:54 dereuromark how about debugger and stepping through? :slightly_smiling_face: I have only done it for cake3, but should also work fine for cake2
# Jun 28th 2018, 08:53 josbeir never use that :) 'debug' is my muscle memory since 1.x
# Jun 28th 2018, 08:53 saeideng `dd()` ;P
# Jun 28th 2018, 08:52 josbeir die() and debug() is your friend
# Jun 28th 2018, 08:52 josbeir of course it makes sense
# Jun 28th 2018, 08:52 kunalspunjabi does it make sense to go down into the cake lib directory? Because we know that is not the problem
# Jun 28th 2018, 08:51 josbeir you will become a better developer if you do it like that
# Jun 28th 2018, 08:51 josbeir cake code is readable enough
# Jun 28th 2018, 08:51 josbeir the best way to debug something is to understand what 'something' does
# Jun 28th 2018, 08:51 josbeir start with your controller class, see what everything does and how vars get passed to the view