# |
Jun 28th 2018, 13:09 |
itmpls |
ah |
# |
Jun 28th 2018, 13:08 |
josbeir |
the day is almost finished, i'm getting tired :) |
# |
Jun 28th 2018, 13:08 |
josbeir |
what do you mean by prefix of the request? |
# |
Jun 28th 2018, 13:07 |
itmpls |
hey @josbeir you had subdomain routing middleware setup, right? did you set the prefix of the request to the subdomain? and/or prepend the _host ? |
# |
Jun 28th 2018, 12:20 |
lubos |
:+1: |
# |
Jun 28th 2018, 12:20 |
josbeir |
so you can configure it if needed |
# |
Jun 28th 2018, 12:20 |
josbeir |
make a component for it to keep your code dry |
# |
Jun 28th 2018, 12:19 |
josbeir |
uhu :slightly_smiling_face: |
# |
Jun 28th 2018, 12:19 |
lubos |
but try catch could work that's right :slightly_smiling_face: |
# |
Jun 28th 2018, 12:19 |
lubos |
good idea, just tried to do it beforeRender so I have it for all actions |
# |
Jun 28th 2018, 12:18 |
josbeir |
check out the app skeleton pagescontroller:display method |
# |
Jun 28th 2018, 12:18 |
ondrej.nedvidek |
nasty LubosR ! |
# |
Jun 28th 2018, 12:18 |
josbeir |
just do try { render('template'); } catch (MissingTemplateException $e) { ... } |
# |
Jun 28th 2018, 12:17 |
josbeir |
@lubos you are making your issue too complex :P |
# |
Jun 28th 2018, 12:04 |
lubos |
I can see nice way in `Error/missing_template.ctp` ``` $paths = $this->_paths($this->plugin); ``` But problem is that this method is protected so can't use it at beforeRender at controller like ``` $this->viewBuilder()->build()->_paths() ``` |
# |
Jun 28th 2018, 11:41 |
josbeir |
=> https://book.cakephp.org/2.0/en/appendices/2-0-migration-guide.html#xmlhelper-ajaxhelper-and-javascripthelper-removed ;) |
# |
Jun 28th 2018, 11:41 |
josbeir |
@kunalspunjabi where you able to fix it by removing the invalid helper? |
# |
Jun 28th 2018, 11:40 |
josbeir |
@birdy247 a quick google search returned this for me https://gist.github.com/scy/6636390 |
# |
Jun 28th 2018, 11:14 |
massimoi |
is there anybody who managed to run the tutorial successfully? We are stuck with a simple problem (Cake 3) |
# |
Jun 28th 2018, 11:14 |
massimoi |
Hi, |
# |
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 |