How To Redirect To A Page In A Controller?

Hello guys, I am new to CSCART and I amy having a trouble in redirecting the page. I have a button name as 'register'. But After clicking the link it goes to 404 message. How can I create a simple redirection of page? For example if the user click the register the page will automatically redurected to or any other site.


As far as I understand you want to make a button with the redirect to the external website. In this case please try the following code:

{include file="buttons/button.tpl" but_href="" but_text=__('register')}