What happen if i choose the second option “Using Phoenix.Controller only” ?
I am using Phoenix 1.7.11 with Elixir 1.16.1
What happen if i choose the second option “Using Phoenix.Controller only” ?
I am using Phoenix 1.7.11 with Elixir 1.16.1
It just creates classic controllers instead of LiveViews.
Does it means i will not have ability of live view?
One of my reason to built my web app is for supporting webview from laptop/desktop and also mobile phone, which is mean if i only use Phoenix Controller Classic i can only get good looking by user using laptop/desktop?
Yes, it means it will not have the ability of LiveView.
It’s hard to answer the second question. Classic controllers work just like the “old” web—you make a request and it send backs HTML. But you would also use controllers if you wanted to use a different frontend stack, like React or something, in which case you’d have your controllers return JSON. As far as phx_gen_auth goes, though, they return static HTML and every action is a full page reload.
tks brother haha
Nooooo problem-o!