You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Isn't that person_index kind of redundant if it is in a folder called person? I know that the template must be called PersonIndex because of missing namespaces, but the folder and file names seem wrong to me. Am I missing something?
The idea is that a "person" could have multiple views including a list view, details view, etc. So instead of having a bunch of top level folders you could put them under the /person folder. We could probably improve the scheme by discussion and people putting up their ideas.
I'm coming from a symfony background and there i'm used to that the views are only index.html.twig, show.html.twig, edit.html.twig and so on inside a folder which is named after the controller.
Oh I missed your point entirely. You're saying to remove the person_ prefix. That seems like a reasonable improvement :). Interested in others' feedback too.
Good point. I use jetbrains ide's which show tabs like this:
So I usually don't have that problem but others may.
I'm actually against making everything configurable as I want to be able to quickly use another project but if everyone uses other convention, it'll become somewhat annoying imo.
I use sublime which also shows extra context in the tabs when needed. So, for me too the change is welcome. I personally don't mind having the configuration option though. I'd rather do the extra config option and have a less "bloated" structure. It helps me keeping the projects and the code "clean" 😄.
@DigitalAndre there's a configuration option in WebStorm 'Show directory in editor tabs for non-unique filenames' that solves the ambiguous display.
+1 for simplifying the filenames. I've actually stopped using the tool since the redundant folder names were making the tree structures hard to read and understand the app
We do it the same as @DigitalAndre and I prefer it that way, even though I have a full paths in my sublime title bar. In sublime the CMD+t search works across directory names so it's not a huge issue however.
Activity
cmather commentedon Apr 19, 2014
The idea is that a "person" could have multiple views including a list view, details view, etc. So instead of having a bunch of top level folders you could put them under the /person folder. We could probably improve the scheme by discussion and people putting up their ideas.
Nemo64 commentedon Apr 19, 2014
I'm coming from a symfony background and there i'm used to that the views are only
index.html.twig,show.html.twig,edit.html.twigand so on inside a folder which is named after the controller.I don't think that would be as bad.... but it could be a lack of meteor experience there. it's just the first thing i noticed while trying em out. ;)
cmather commentedon Apr 19, 2014
Oh I missed your point entirely. You're saying to remove the person_ prefix. That seems like a reasonable improvement :). Interested in others' feedback too.
Spiralis commentedon Apr 20, 2014
@cmather I second that. Of course, the templates need to be named using the folder and the view-name, like @Nemo64 suggests.
zimt28 commentedon Apr 21, 2014
I like @Nemo64's suggestion, that's the structure I'm used to :)
scottmcpherson commentedon Jun 3, 2014
This might be another option that would be great to have in the
.em/config.jsonfile(devel branch). Maybe something like this?:Nemo64 commentedon Nov 18, 2014
Good point. I use jetbrains ide's which show tabs like this:

So I usually don't have that problem but others may.
I'm actually against making everything configurable as I want to be able to quickly use another project but if everyone uses other convention, it'll become somewhat annoying imo.
Spiralis commentedon Dec 11, 2014
I use sublime which also shows extra context in the tabs when needed. So, for me too the change is welcome. I personally don't mind having the configuration option though. I'd rather do the extra config option and have a less "bloated" structure. It helps me keeping the projects and the code "clean" 😄.
rhyslbw commentedon Dec 15, 2014
@DigitalAndre there's a configuration option in WebStorm 'Show directory in editor tabs for non-unique filenames' that solves the ambiguous display.
+1 for simplifying the filenames. I've actually stopped using the tool since the redundant folder names were making the tree structures hard to read and understand the app
ianserlin commentedon Mar 12, 2015
We do it the same as @DigitalAndre and I prefer it that way, even though I have a full paths in my sublime title bar. In sublime the CMD+t search works across directory names so it's not a huge issue however.