Welcome Guest, Not a member yet? Register   Sign In
Myth::Auth How to integrate provided views into app style
#5

I've followed the link to the manual section on Layouts kindly supplied by @MGatner but confess I don't understand it on first reading.

I wanted to swap the Auth navbar for a header & navbar used in other parts of the site I'm working on. I ended up changing a few lines in app/ThirdPary/myth-auth/src/Views/layout.php which did the trick but I'm pretty sure that's not a good way to do it.

PHP Code:
<?php 
/* Comment out the Myth:Auth navbar */
//view('Myth\Auth\Views\_navbar');

/* Add the standard site header file / navbar */
$data = [
    'title' => 'Login',
];
echo 
view('templates/header'$data);
?>

How should I have done it?

@MGatner if you answer & recommend your bluesmith example could you explain it a bit more please?

Grateful for any other help / advice - thanks!
Reply


Messages In This Thread
RE: Myth::Auth How to integrate provided views into app style - by jim1001 - 08-14-2020, 02:02 PM



Theme © iAndrew 2016 - Forum software by © MyBB