Page 1 of 1

How can i add Login & Sign Up button in the main page

PostPosted: 08 Jun 2015, 16:58
by mhmdup
Dear
How can i add Login & Sign Up button in the main page or main menu

Regards

Re: How can i add Login & Sign Up button in the main page

PostPosted: 10 Jun 2015, 13:36
by Koduc
Template for main page is located at /themes/classic/views/layouts/main.php
You can insert following code (for example):
Code: Select all
    <?php 
        
echo CHtml::link('Log in link', array('/site/login'));
        echo 
'<br/>';
        echo 
CHtml::link('Registration link', array('/site/register'));
    
?>

Re: How can i add Login & Sign Up button in the main page

PostPosted: 11 Jun 2015, 00:31
by mhmdup
Thank you very much

Re: How can i add Login & Sign Up button in the main page

PostPosted: 30 Jun 2015, 06:37
by Ebr
Hi,
would you show the location where to add this code? I opened the main.php file but could not figure out where to add above code to display Login & Register in main page.
Please advise.

Re: How can i add Login & Sign Up button in the main page

PostPosted: 30 Jun 2015, 10:57
by Xpycm
Hi,

viewtopic.php?f=17&p=2425#p2382

Koduc wrote:Template for main page is located at /themes/classic/views/layouts/main.php