您的位置:首页 > 其它

到这里安家了,欢迎各位来访!

2012-04-06 11:54 141 查看
开博的几句话

  我工作有两年多了吧,应该也算是个程序员了(毕竟整天靠编码来生活)。本来我是在Cppblog申请的博客,那里牛人也非常的多,气氛也非常的好。可最近由于工作上的调度,我刚开始转行到web方面。由于人新手生、没有相关的基础、身边又没有搞web方面的牛人教导。所以我决定一切从零开始,希望自己能早日成为像本站的各位前辈一样牛的程序员。

  仔细想想,我博客好像换过不少了。后来发现这里氛围很好,讨论web、讨论手机应用 各个方面都有涉及,而且后台上支持加关注、加好友、群组、团队等等的功能。 即可以实时的浏览到自己喜欢的系列文章的更新,又可以通过群组什么的与各位大牛更多的交流。既然重新开始,就索性在这里重新开个博客。发一些自己的学习笔记、心得什么的。

希望能在这里多交往几个朋友,大家相互学习,一同进步~

本博客主要的内容

  本博客主要是用来记录我web方面的学习记录,具体的博客内容还不能确定下来。但我想内容大致应该就是 数据库、web服务器运维、前台的脚本(如HTML、CSS、JS之类),后台的脚本(现在正在学PHP) 这些内容。根据需要如果有额外的内容,也会记录在这里的。

  由于本人刚刚开始学web,发的内容肯定会非常的基础,希望各位仁兄不要笑话。我会尽快提高自己的水平,争取早日的加入web开发这个大家庭的。同时也希望各位大牛多来教诲,指正我博文中的错误,免的我走一些弯路,更避免我的文章误导到像我一样菜的新人!

关于本博客模板样式的一些说明和测试

  由于我刚到这里开博,在博客园首页发现了 李宝亨 前辈分享了他的博客皮肤。一眼我就喜欢上了这个风格,很清新、很养眼。所以就拿过来用了。如果你也喜欢这个皮肤,可以看他的那篇博文,地址是:/article/5270769.html

  下面的内容是练习下这个皮肤如何使用,和每个样式是什么模样,方便以后发博文的时候使用。

这里是文章摘要

这里是1号标题

这里是2号标题

这里是3号标题

这里是需要注意的事项

这里是demo

推荐的代码样式:

/**
* Deletes a particular model.
* If deletion is successful, the browser will be redirected to the 'admin' page.
* @param integer $id the ID of the model to be deleted
*/
public function actionDelete($id)
{
if(Yii::app()->request->isPostRequest)
{
// we only allow deletion via POST request
$this->loadModel($id)->delete();

// if AJAX request (triggered by deletion via admin grid view), we should not redirect the browser
if(!isset($_GET['ajax']))
$this->redirect(isset($_POST['returnUrl']) ? $_POST['returnUrl'] : array('admin'));
}
else
throw new CHttpException(400,'Invalid request. Please do not repeat this request again.');
}


推荐样式代码折叠的模样:

View Code

/**
* Deletes a particular model.
* If deletion is successful, the browser will be redirected to the 'admin' page.
* @param integer $id the ID of the model to be deleted
*/
public function actionDelete($id)
{
if(Yii::app()->request->isPostRequest)
{
// we only allow deletion via POST request
$this->loadModel($id)->delete();

// if AJAX request (triggered by deletion via admin grid view), we should not redirect the browser
if(!isset($_GET['ajax']))
$this->redirect(isset($_POST['returnUrl']) ? $_POST['returnUrl'] : array('admin'));
}
else
throw new CHttpException(400,'Invalid request. Please do not repeat this request again.');
}


普通的代码样式:

/**
* Deletes a particular model.
* If deletion is successful, the browser will be redirected to the 'admin' page.
* @param integer $id the ID of the model to be deleted
*/
public function actionDelete($id)
{
if(Yii::app()->request->isPostRequest)
{
// we only allow deletion via POST request
$this->loadModel($id)->delete();

// if AJAX request (triggered by deletion via admin grid view), we should not redirect the browser
if(!isset($_GET['ajax']))
$this->redirect(isset($_POST['returnUrl']) ? $_POST['returnUrl'] : array('admin'));
}
else
throw new CHttpException(400,'Invalid request. Please do not repeat this request again.');
}


OK,开博第一篇,就写这些吧,以后开始正式写自己的文章~
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: