Override /account in theme

Permalink
While I can override /login and /register to use pages supplied within a Theme the same thing does not seem to work for /account and its child pages.

config > app.php is set up like:

return array(
    'theme_paths'         => array(
        '/account'      => 'my_theme',
        '/account/edit_profile'      => 'my_theme',
        '/login'        => 'my_theme',
        '/register'     => 'my_theme'
    ),
);


The account page seems to make some kind of contact with the theme and renders through the theme's view.php file but the content in account.php in the theme is ignored.

Does anyone know how this should work?

katalysis
 
hutman replied on at Permalink Reply
hutman
I believe in your theme you need to create a directory called account and then put your view.php into that directory to override the account page instead of the account.php you have in your theme now.
katalysis replied on at Permalink Reply
katalysis
You are absolutely right hutman - thank you.

I'd got so used to this not working in 5.6 I didn't even try!