New Fronted Theme Problem

Dimitris

New Member
Hello,
I have made a fronted theme for Mailwizz and I have uploaded.
But when I upload the theme page Fronted inside the program goes white.
Can you please tell me what I have do wrong?

Thnak you
 
@Dimitris - If there is an error, the debug mode will catch it. If you get a white page usually suggest you have an error, so double check you have properly enabled debugging.
 
@twisted1919 I have onw more question. how I can add a new page. I have make the index page and I want to make a page "About us". Where I have to add this page?
Thank You
 
@Dimitris - Yup, that is doable but you need to have htaccess generated and added in your document root (see backend > settings > common, enable clean urls and click the generate htaccess and add the resulted code in your .htaccess file)
To your thing, your theme has a run() method. In it, add something like:
PHP:
Yii::app()->urlManager->addRules(array(
    array('the_name_of_your_extension_controller/about', 'pattern' => 'about'),
));
Where the_name_of_your_extension_controller is, well, the name of your controller, in lowercase letters, except the ending "controller" part.
 
Back
Top