flp

flp

Old Syntax/Folders with new generators

Hey guys,

I am regretting at the moment to have updated to Phoenix 1.4.
I do not seem to be able to use the old phoenix generators for my web folder anymore.

Is there a way to get them running again in Phoenix 1.4?
I prefer the old structure and I dislike the new namespaces.

Most Liked

flp

flp

Ok, that was easier than expected.

I just copied the corresponding files of lib/mix/tasks and priv/templates from Release v1.3.4 · phoenixframework/phoenix · GitHub and it works again :slight_smile:

dimitarvp

dimitarvp

Mind giving us a quick walk-through on how did you solve your problems? It could be educational for future readers.

OvermindDL1

OvermindDL1

You can actually customize those templates all you wish by design. :slight_smile:

Last Post!

flp

flp

@dimitarvp I described all I did already. I could only add that I copied the task files and template files to the corresponding folders in my project, but I cannot edit my post

Where Next?

Popular in Questions Top

minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New
PeterCarter
There are pre-rolled solutions for other frameworks that do work. However, Phoenix does not seem to have these. Have people had good expe...
New
Lily
In templates/appointment/index.html.eex: <%= for appointment <- @appointments do %> <tr> <td><%= appoi...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New

Other popular topics Top

nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
New
Darmani72
If I have a post route which an argument: post /my_post_route/:my_param1, MyController.my_post_handler How would get the post params ...
New
dogweather
I wrote this comment on r/haskell, and it’s not popular there. :wink: But I think I’m on to something… Haskell reminds me of Java, and e...
New
dblack
I’ve got an issue with an app and I’ve no idea of how to troubleshoot it. I’m hoping someone here might have seen something similar. I p...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New

We're in Beta

About us Mission Statement