davo Posted June 22, 2014 Share Posted June 22, 2014 $page->body .= " <h2>Change password</h2> <form action='./' method='post'> <p> <label>New Password <input type='password' name='pass'></label><br> <label>New Password (confirm) <input type='password' name='pass_confirm'></label> </p> <input type='submit'> </form> <p>Representing {$user->DMC_select->title}</P> <P>user {$DMC_user} {$config->urls->root} page <a class='editpage-inline' href='http://" . $config->urls->root . $config->urls->admin . "page/edit/?id={$venue_page}&modal=1'>Edit Venue listing</a> </P> <p><a href='/portal/logout/'>Logout</a></p> "; When this is rendered the $config->urls->root doesn't appear, yet the admin part does. Any idea where I have gone wrong? Link to comment Share on other sites More sharing options...
LostKobrakai Posted June 22, 2014 Share Posted June 22, 2014 What's the output for the url? $config->urls->root should be "/" if processwire isn't installed in a subdirectory, so maybe you just missed the third slash after the "http://". If you want to get the domain name I think you have to use $config->httpHost. But you could simply use a relative url instead. 3 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now