Getting error in setting url in front page of custome page created in moodle theme

Getting error in setting url in front page of custome page created in moodle theme

by Dinesh Pal -
Number of replies: 0

Hello,

I am working moodle 3.x adabpable theme.The sturcute of theme is as follows

Layout folder->includes folder contains header.php and footer.php

Layout folder contain frontpage.php and my new custom page getstarted.php.

There is a anchor but "Get Started" on frontpage.php when click on that button it should go to getstarted.php.

I copy content of frontpage.php and paste in getstarted.php so that i can get exact header and footer included in frontpage.php.

I edit config file of theme by adding

'getstarted' => array(
        'file' => 'getstarted.php',
        'regions' => $regions,
        'defaultregion' => 'side-post',
        'options' => array('nonavbar' => true),
    ),

in it.The "Get Started" Button contain href="<?php p($CFG->httpswwwroot) ?>/theme/adaptable/layout/getstarted.php"

But when i click on the button it is showing blank page.If i put custom getstarted.php page without header and footer content of frontpage and write its own <html> and <head> tag then this URL works but when i add header portion of frontpage it does not work.

Url is 54.186.42.88/moodle/


         

Average of ratings: -