# Programming Phoenix LiveView B8: use PentoWeb, :live\_view (page 16)

**URL:** <https://forum.devtalk.com/t/programming-phoenix-liveview-b8-use-pentoweb-live-view-page-16/80129>\
**Category:** PragProg Customers\
**Tags:** book-programming-phoenix-liveview, suggestion\
**Created:** [27 October 2022 16:17 UTC](https://forum.devtalk.com/t/programming-phoenix-liveview-b8-use-pentoweb-live-view-page-16/80129 "2022-10-27T16:17:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![torifukukaiou](https://forum.devtalk.com/user_avatar/forum.devtalk.com/torifukukaiou/32/2497_2.png) [@torifukukaiou](https://forum.devtalk.com/u/torifukukaiou)\
**Post date:** [27 October 2022 16:17 UTC](https://forum.devtalk.com/t/programming-phoenix-liveview-b8-use-pentoweb-live-view-page-16/80129/1 "2022-10-27T16:17:44Z")

</div>

B8

```auto
defmodule PentoWeb.WrongLive do
  use Phoenix.LiveView, layout: {PentoWeb.LayoutView, "live.html"}

```

Suggestion

```auto
defmodule PentoWeb.WrongLive do
  use PentoWeb, :live_view

```

[https://hexdocs.pm/phoenix\_live\_view/Phoenix.LiveView.html#module-example](https://hexdocs.pm/phoenix_live_view/Phoenix.LiveView.html#module-example)  
On page 26 Give It a Try, we can use Routes.live\_patch .

Hope this helps.
