Added DB Access + Error page
This commit is contained in:
40
demos/blog/protected/views/comment/_form.php
Normal file
40
demos/blog/protected/views/comment/_form.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<div class="form">
|
||||
|
||||
<?php $form=$this->beginWidget('CActiveForm', array(
|
||||
'id'=>'comment-form',
|
||||
'enableAjaxValidation'=>true,
|
||||
)); ?>
|
||||
|
||||
<p class="note">Fields with <span class="required">*</span> are required.</p>
|
||||
|
||||
<div class="row">
|
||||
<?php echo $form->labelEx($model,'author'); ?>
|
||||
<?php echo $form->textField($model,'author',array('size'=>60,'maxlength'=>128)); ?>
|
||||
<?php echo $form->error($model,'author'); ?>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<?php echo $form->labelEx($model,'email'); ?>
|
||||
<?php echo $form->textField($model,'email',array('size'=>60,'maxlength'=>128)); ?>
|
||||
<?php echo $form->error($model,'email'); ?>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<?php echo $form->labelEx($model,'url'); ?>
|
||||
<?php echo $form->textField($model,'url',array('size'=>60,'maxlength'=>128)); ?>
|
||||
<?php echo $form->error($model,'url'); ?>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<?php echo $form->labelEx($model,'content'); ?>
|
||||
<?php echo $form->textArea($model,'content',array('rows'=>6, 'cols'=>50)); ?>
|
||||
<?php echo $form->error($model,'content'); ?>
|
||||
</div>
|
||||
|
||||
<div class="row buttons">
|
||||
<?php echo CHtml::submitButton($model->isNewRecord ? 'Submit' : 'Save'); ?>
|
||||
</div>
|
||||
|
||||
<?php $this->endWidget(); ?>
|
||||
|
||||
</div><!-- form -->
|
||||
46
demos/blog/protected/views/comment/_view.php
Normal file
46
demos/blog/protected/views/comment/_view.php
Normal file
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
$deleteJS = <<<DEL
|
||||
$('.container').on('click','.time a.delete',function() {
|
||||
var th=$(this),
|
||||
container=th.closest('div.comment'),
|
||||
id=container.attr('id').slice(1);
|
||||
if(confirm('Are you sure you want to delete comment #'+id+'?')) {
|
||||
$.ajax({
|
||||
url:th.attr('href'),
|
||||
type:'POST'
|
||||
}).done(function(){container.slideUp()});
|
||||
}
|
||||
return false;
|
||||
});
|
||||
DEL;
|
||||
Yii::app()->getClientScript()->registerScript('delete', $deleteJS);
|
||||
?>
|
||||
<div class="comment" id="c<?php echo $data->id; ?>">
|
||||
|
||||
<?php echo CHtml::link("#{$data->id}", $data->url, array(
|
||||
'class'=>'cid',
|
||||
'title'=>'Permalink to this comment',
|
||||
)); ?>
|
||||
|
||||
<div class="author">
|
||||
<?php echo $data->authorLink; ?> says on
|
||||
<?php echo CHtml::link(CHtml::encode($data->post->title), $data->post->url); ?>
|
||||
</div>
|
||||
|
||||
<div class="time">
|
||||
<?php if($data->status==Comment::STATUS_PENDING): ?>
|
||||
<span class="pending">Pending approval</span> |
|
||||
<?php echo CHtml::linkButton('Approve', array(
|
||||
'submit'=>array('comment/approve','id'=>$data->id),
|
||||
)); ?> |
|
||||
<?php endif; ?>
|
||||
<?php echo CHtml::link('Update',array('comment/update','id'=>$data->id)); ?> |
|
||||
<?php echo CHtml::link('Delete',array('comment/delete','id'=>$data->id),array('class'=>'delete')); ?> |
|
||||
<?php echo date('F j, Y \a\t h:i a',$data->create_time); ?>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
<?php echo nl2br(CHtml::encode($data->content)); ?>
|
||||
</div>
|
||||
|
||||
</div><!-- comment -->
|
||||
12
demos/blog/protected/views/comment/index.php
Normal file
12
demos/blog/protected/views/comment/index.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
$this->breadcrumbs=array(
|
||||
'Comments',
|
||||
);
|
||||
?>
|
||||
|
||||
<h1>Comments</h1>
|
||||
|
||||
<?php $this->widget('zii.widgets.CListView', array(
|
||||
'dataProvider'=>$dataProvider,
|
||||
'itemView'=>'_view',
|
||||
)); ?>
|
||||
10
demos/blog/protected/views/comment/update.php
Normal file
10
demos/blog/protected/views/comment/update.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
$this->breadcrumbs=array(
|
||||
'Comments'=>array('index'),
|
||||
'Update Comment #'.$model->id,
|
||||
);
|
||||
?>
|
||||
|
||||
<h1>Update Comment #<?php echo $model->id; ?></h1>
|
||||
|
||||
<?php echo $this->renderPartial('_form', array('model'=>$model)); ?>
|
||||
7
demos/blog/protected/views/layouts/column1.php
Normal file
7
demos/blog/protected/views/layouts/column1.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php $this->beginContent('/layouts/main'); ?>
|
||||
<div class="container">
|
||||
<div id="content">
|
||||
<?php echo $content; ?>
|
||||
</div><!-- content -->
|
||||
</div>
|
||||
<?php $this->endContent(); ?>
|
||||
22
demos/blog/protected/views/layouts/column2.php
Normal file
22
demos/blog/protected/views/layouts/column2.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php $this->beginContent('/layouts/main'); ?>
|
||||
<div class="container">
|
||||
<div class="span-18">
|
||||
<div id="content">
|
||||
<?php echo $content; ?>
|
||||
</div><!-- content -->
|
||||
</div>
|
||||
<div class="span-6 last">
|
||||
<div id="sidebar">
|
||||
<?php if(!Yii::app()->user->isGuest) $this->widget('UserMenu'); ?>
|
||||
|
||||
<?php $this->widget('TagCloud', array(
|
||||
'maxTags'=>Yii::app()->params['tagCloudCount'],
|
||||
)); ?>
|
||||
|
||||
<?php $this->widget('RecentComments', array(
|
||||
'maxComments'=>Yii::app()->params['recentCommentCount'],
|
||||
)); ?>
|
||||
</div><!-- sidebar -->
|
||||
</div>
|
||||
</div>
|
||||
<?php $this->endContent(); ?>
|
||||
55
demos/blog/protected/views/layouts/main.php
Normal file
55
demos/blog/protected/views/layouts/main.php
Normal file
@@ -0,0 +1,55 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="language" content="en" />
|
||||
|
||||
<!-- blueprint CSS framework -->
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
|
||||
<!--[if lt IE 8]>
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
|
||||
<![endif]-->
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />
|
||||
|
||||
<title><?php echo CHtml::encode($this->pageTitle); ?></title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="container" id="page">
|
||||
|
||||
<div id="header">
|
||||
<div id="logo"><?php echo CHtml::encode(Yii::app()->name); ?></div>
|
||||
</div><!-- header -->
|
||||
|
||||
<div id="mainmenu">
|
||||
<?php $this->widget('zii.widgets.CMenu',array(
|
||||
'items'=>array(
|
||||
array('label'=>'Home', 'url'=>array('post/index')),
|
||||
array('label'=>'About', 'url'=>array('site/page', 'view'=>'about')),
|
||||
array('label'=>'Contact', 'url'=>array('site/contact')),
|
||||
array('label'=>'Login', 'url'=>array('site/login'), 'visible'=>Yii::app()->user->isGuest),
|
||||
array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('site/logout'), 'visible'=>!Yii::app()->user->isGuest)
|
||||
),
|
||||
)); ?>
|
||||
</div><!-- mainmenu -->
|
||||
|
||||
<?php $this->widget('zii.widgets.CBreadcrumbs', array(
|
||||
'links'=>$this->breadcrumbs,
|
||||
)); ?><!-- breadcrumbs -->
|
||||
|
||||
<?php echo $content; ?>
|
||||
|
||||
<div id="footer">
|
||||
Copyright © <?php echo date('Y'); ?> by My Company.<br/>
|
||||
All Rights Reserved.<br/>
|
||||
<?php echo Yii::powered(); ?>
|
||||
</div><!-- footer -->
|
||||
|
||||
</div><!-- page -->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
22
demos/blog/protected/views/post/_comments.php
Normal file
22
demos/blog/protected/views/post/_comments.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php foreach($comments as $comment): ?>
|
||||
<div class="comment" id="c<?php echo $comment->id; ?>">
|
||||
|
||||
<?php echo CHtml::link("#{$comment->id}", $comment->getUrl($post), array(
|
||||
'class'=>'cid',
|
||||
'title'=>'Permalink to this comment',
|
||||
)); ?>
|
||||
|
||||
<div class="author">
|
||||
<?php echo $comment->authorLink; ?> says:
|
||||
</div>
|
||||
|
||||
<div class="time">
|
||||
<?php echo date('F j, Y \a\t h:i a',$comment->create_time); ?>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
<?php echo nl2br(CHtml::encode($comment->content)); ?>
|
||||
</div>
|
||||
|
||||
</div><!-- comment -->
|
||||
<?php endforeach; ?>
|
||||
47
demos/blog/protected/views/post/_form.php
Normal file
47
demos/blog/protected/views/post/_form.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<div class="form">
|
||||
|
||||
<?php $form=$this->beginWidget('CActiveForm'); ?>
|
||||
|
||||
<p class="note">Fields with <span class="required">*</span> are required.</p>
|
||||
|
||||
<?php echo CHtml::errorSummary($model); ?>
|
||||
|
||||
<div class="row">
|
||||
<?php echo $form->labelEx($model,'title'); ?>
|
||||
<?php echo $form->textField($model,'title',array('size'=>80,'maxlength'=>128)); ?>
|
||||
<?php echo $form->error($model,'title'); ?>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<?php echo $form->labelEx($model,'content'); ?>
|
||||
<?php echo CHtml::activeTextArea($model,'content',array('rows'=>10, 'cols'=>70)); ?>
|
||||
<p class="hint">You may use <a target="_blank" href="http://daringfireball.net/projects/markdown/syntax">Markdown syntax</a>.</p>
|
||||
<?php echo $form->error($model,'content'); ?>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<?php echo $form->labelEx($model,'tags'); ?>
|
||||
<?php $this->widget('CAutoComplete', array(
|
||||
'model'=>$model,
|
||||
'attribute'=>'tags',
|
||||
'url'=>array('suggestTags'),
|
||||
'multiple'=>true,
|
||||
'htmlOptions'=>array('size'=>50),
|
||||
)); ?>
|
||||
<p class="hint">Please separate different tags with commas.</p>
|
||||
<?php echo $form->error($model,'tags'); ?>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<?php echo $form->labelEx($model,'status'); ?>
|
||||
<?php echo $form->dropDownList($model,'status',Lookup::items('PostStatus')); ?>
|
||||
<?php echo $form->error($model,'status'); ?>
|
||||
</div>
|
||||
|
||||
<div class="row buttons">
|
||||
<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
|
||||
</div>
|
||||
|
||||
<?php $this->endWidget(); ?>
|
||||
|
||||
</div><!-- form -->
|
||||
23
demos/blog/protected/views/post/_view.php
Normal file
23
demos/blog/protected/views/post/_view.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<div class="post">
|
||||
<div class="title">
|
||||
<?php echo CHtml::link(CHtml::encode($data->title), $data->url); ?>
|
||||
</div>
|
||||
<div class="author">
|
||||
posted by <?php echo $data->author->username . ' on ' . date('F j, Y',$data->create_time); ?>
|
||||
</div>
|
||||
<div class="content">
|
||||
<?php
|
||||
$this->beginWidget('CMarkdown', array('purifyOutput'=>true));
|
||||
echo $data->content;
|
||||
$this->endWidget();
|
||||
?>
|
||||
</div>
|
||||
<div class="nav">
|
||||
<b>Tags:</b>
|
||||
<?php echo implode(', ', $data->tagLinks); ?>
|
||||
<br/>
|
||||
<?php echo CHtml::link('Permalink', $data->url); ?> |
|
||||
<?php echo CHtml::link("Comments ({$data->commentCount})",$data->url.'#comments'); ?> |
|
||||
Last updated on <?php echo date('F j, Y',$data->update_time); ?>
|
||||
</div>
|
||||
</div>
|
||||
31
demos/blog/protected/views/post/admin.php
Normal file
31
demos/blog/protected/views/post/admin.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
$this->breadcrumbs=array(
|
||||
'Manage Posts',
|
||||
);
|
||||
?>
|
||||
<h1>Manage Posts</h1>
|
||||
|
||||
<?php $this->widget('zii.widgets.grid.CGridView', array(
|
||||
'dataProvider'=>$model->search(),
|
||||
'filter'=>$model,
|
||||
'columns'=>array(
|
||||
array(
|
||||
'name'=>'title',
|
||||
'type'=>'raw',
|
||||
'value'=>'CHtml::link(CHtml::encode($data->title), $data->url)'
|
||||
),
|
||||
array(
|
||||
'name'=>'status',
|
||||
'value'=>'Lookup::item("PostStatus",$data->status)',
|
||||
'filter'=>Lookup::items('PostStatus'),
|
||||
),
|
||||
array(
|
||||
'name'=>'create_time',
|
||||
'type'=>'datetime',
|
||||
'filter'=>false,
|
||||
),
|
||||
array(
|
||||
'class'=>'CButtonColumn',
|
||||
),
|
||||
),
|
||||
)); ?>
|
||||
8
demos/blog/protected/views/post/create.php
Normal file
8
demos/blog/protected/views/post/create.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
$this->breadcrumbs=array(
|
||||
'Create Post',
|
||||
);
|
||||
?>
|
||||
<h1>Create Post</h1>
|
||||
|
||||
<?php echo $this->renderPartial('_form', array('model'=>$model)); ?>
|
||||
9
demos/blog/protected/views/post/index.php
Normal file
9
demos/blog/protected/views/post/index.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php if(!empty($_GET['tag'])): ?>
|
||||
<h1>Posts Tagged with <i><?php echo CHtml::encode($_GET['tag']); ?></i></h1>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php $this->widget('zii.widgets.CListView', array(
|
||||
'dataProvider'=>$dataProvider,
|
||||
'itemView'=>'_view',
|
||||
'template'=>"{items}\n{pager}",
|
||||
)); ?>
|
||||
10
demos/blog/protected/views/post/update.php
Normal file
10
demos/blog/protected/views/post/update.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
$this->breadcrumbs=array(
|
||||
$model->title=>$model->url,
|
||||
'Update',
|
||||
);
|
||||
?>
|
||||
|
||||
<h1>Update <i><?php echo CHtml::encode($model->title); ?></i></h1>
|
||||
|
||||
<?php echo $this->renderPartial('_form', array('model'=>$model)); ?>
|
||||
36
demos/blog/protected/views/post/view.php
Normal file
36
demos/blog/protected/views/post/view.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
$this->breadcrumbs=array(
|
||||
$model->title,
|
||||
);
|
||||
$this->pageTitle=$model->title;
|
||||
?>
|
||||
|
||||
<?php $this->renderPartial('_view', array(
|
||||
'data'=>$model,
|
||||
)); ?>
|
||||
|
||||
<div id="comments">
|
||||
<?php if($model->commentCount>=1): ?>
|
||||
<h3>
|
||||
<?php echo $model->commentCount>1 ? $model->commentCount . ' comments' : 'One comment'; ?>
|
||||
</h3>
|
||||
|
||||
<?php $this->renderPartial('_comments',array(
|
||||
'post'=>$model,
|
||||
'comments'=>$model->comments,
|
||||
)); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<h3>Leave a Comment</h3>
|
||||
|
||||
<?php if(Yii::app()->user->hasFlash('commentSubmitted')): ?>
|
||||
<div class="flash-success">
|
||||
<?php echo Yii::app()->user->getFlash('commentSubmitted'); ?>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<?php $this->renderPartial('/comment/_form',array(
|
||||
'model'=>$comment,
|
||||
)); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
</div><!-- comments -->
|
||||
70
demos/blog/protected/views/site/contact.php
Normal file
70
demos/blog/protected/views/site/contact.php
Normal file
@@ -0,0 +1,70 @@
|
||||
<?php
|
||||
$this->pageTitle=Yii::app()->name . ' - Contact Us';
|
||||
$this->breadcrumbs=array(
|
||||
'Contact',
|
||||
);
|
||||
?>
|
||||
|
||||
<h1>Contact Us</h1>
|
||||
|
||||
<?php if(Yii::app()->user->hasFlash('contact')): ?>
|
||||
|
||||
<div class="flash-success">
|
||||
<?php echo Yii::app()->user->getFlash('contact'); ?>
|
||||
</div>
|
||||
|
||||
<?php else: ?>
|
||||
|
||||
<p>
|
||||
If you have business inquiries or other questions, please fill out the following form to contact us. Thank you.
|
||||
</p>
|
||||
|
||||
<div class="form">
|
||||
|
||||
<?php $form=$this->beginWidget('CActiveForm'); ?>
|
||||
|
||||
<p class="note">Fields with <span class="required">*</span> are required.</p>
|
||||
|
||||
<?php echo $form->errorSummary($model); ?>
|
||||
|
||||
<div class="row">
|
||||
<?php echo $form->labelEx($model,'name'); ?>
|
||||
<?php echo $form->textField($model,'name'); ?>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<?php echo $form->labelEx($model,'email'); ?>
|
||||
<?php echo $form->textField($model,'email'); ?>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<?php echo $form->labelEx($model,'subject'); ?>
|
||||
<?php echo $form->textField($model,'subject',array('size'=>60,'maxlength'=>128)); ?>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<?php echo $form->labelEx($model,'body'); ?>
|
||||
<?php echo $form->textArea($model,'body',array('rows'=>6, 'cols'=>50)); ?>
|
||||
</div>
|
||||
|
||||
<?php if(CCaptcha::checkRequirements()): ?>
|
||||
<div class="row">
|
||||
<?php echo $form->labelEx($model,'verifyCode'); ?>
|
||||
<div>
|
||||
<?php $this->widget('CCaptcha'); ?>
|
||||
<?php echo $form->textField($model,'verifyCode'); ?>
|
||||
</div>
|
||||
<div class="hint">Please enter the letters as they are shown in the image above.
|
||||
<br/>Letters are not case-sensitive.</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="row submit">
|
||||
<?php echo CHtml::submitButton('Submit'); ?>
|
||||
</div>
|
||||
|
||||
<?php $this->endWidget(); ?>
|
||||
|
||||
</div><!-- form -->
|
||||
|
||||
<?php endif; ?>
|
||||
12
demos/blog/protected/views/site/error.php
Normal file
12
demos/blog/protected/views/site/error.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
$this->pageTitle=Yii::app()->name . ' - Error';
|
||||
$this->breadcrumbs=array(
|
||||
'Error',
|
||||
);
|
||||
?>
|
||||
|
||||
<h2>Error <?php echo $code; ?></h2>
|
||||
|
||||
<div class="error">
|
||||
<?php echo CHtml::encode($message); ?>
|
||||
</div>
|
||||
46
demos/blog/protected/views/site/login.php
Normal file
46
demos/blog/protected/views/site/login.php
Normal file
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
$this->pageTitle=Yii::app()->name . ' - Login';
|
||||
$this->breadcrumbs=array(
|
||||
'Login',
|
||||
);
|
||||
?>
|
||||
|
||||
<h1>Login</h1>
|
||||
|
||||
<p>Please fill out the following form with your login credentials:</p>
|
||||
|
||||
<div class="form">
|
||||
<?php $form=$this->beginWidget('CActiveForm', array(
|
||||
'id'=>'login-form',
|
||||
'enableAjaxValidation'=>true,
|
||||
)); ?>
|
||||
|
||||
<p class="note">Fields with <span class="required">*</span> are required.</p>
|
||||
|
||||
<div class="row">
|
||||
<?php echo $form->labelEx($model,'username'); ?>
|
||||
<?php echo $form->textField($model,'username'); ?>
|
||||
<?php echo $form->error($model,'username'); ?>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<?php echo $form->labelEx($model,'password'); ?>
|
||||
<?php echo $form->passwordField($model,'password'); ?>
|
||||
<?php echo $form->error($model,'password'); ?>
|
||||
<p class="hint">
|
||||
Hint: You may login with <tt>demo/demo</tt>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="row rememberMe">
|
||||
<?php echo $form->checkBox($model,'rememberMe'); ?>
|
||||
<?php echo $form->label($model,'rememberMe'); ?>
|
||||
<?php echo $form->error($model,'rememberMe'); ?>
|
||||
</div>
|
||||
|
||||
<div class="row submit">
|
||||
<?php echo CHtml::submitButton('Login'); ?>
|
||||
</div>
|
||||
|
||||
<?php $this->endWidget(); ?>
|
||||
</div><!-- form -->
|
||||
9
demos/blog/protected/views/site/pages/about.php
Normal file
9
demos/blog/protected/views/site/pages/about.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
$this->pageTitle=Yii::app()->name . ' - About';
|
||||
$this->breadcrumbs=array(
|
||||
'About',
|
||||
);
|
||||
?>
|
||||
<h1>About</h1>
|
||||
|
||||
<p>This is the "about" page for my blog site.</p>
|
||||
Reference in New Issue
Block a user