Commit 8f4aa205 by Crisu83

Fixed the comment URLs in the demo.

parent 0e8bb8f6
...@@ -58,6 +58,7 @@ return array( ...@@ -58,6 +58,7 @@ return array(
'urlFormat'=>'path', 'urlFormat'=>'path',
'urlSuffix'=>'.html', 'urlSuffix'=>'.html',
'rules'=>array( 'rules'=>array(
'index'=>'site/index',
'setup'=>'site/setup', 'setup'=>'site/setup',
), ),
), ),
......
...@@ -796,7 +796,7 @@ Yii::app()->user->setFlash('error', '<strong>Oh snap!</strong> Change a few thin ...@@ -796,7 +796,7 @@ Yii::app()->user->setFlash('error', '<strong>Oh snap!</strong> Change a few thin
<h2>Comments</h2> <h2>Comments</h2>
<div class="fb-comments" data-href="<?php echo $this->createUrl('index'); ?>" data-num-posts="10" data-width="470"></div> <div class="fb-comments" data-href="<?php echo $this->createAbsoluteUrl('index'); ?>" data-num-posts="10" data-width="470"></div>
<a class="top" href="#top">Back to top &uarr;</a> <a class="top" href="#top">Back to top &uarr;</a>
......
...@@ -170,7 +170,7 @@ Yii::app()->bootstrap->registerTypeahead('.typeahead', array( ...@@ -170,7 +170,7 @@ Yii::app()->bootstrap->registerTypeahead('.typeahead', array(
<h2>Comments</h2> <h2>Comments</h2>
<div class="fb-comments" data-href="<?php echo $this->createUrl('setup'); ?>" data-num-posts="10" data-width="470"></div> <div class="fb-comments" data-href="<?php echo $this->createAbsoluteUrl('setup'); ?>" data-num-posts="10" data-width="470"></div>
<a class="top" href="#top">Back to top &uarr;</a> <a class="top" href="#top">Back to top &uarr;</a>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment