luckybird
V2EX  ›  PHP

利用 PHP 语言, CodeIgniter 框架, MySQL 数据库搭建简单的 Forum

  •  
  •   luckybird · Feb 5, 2016 · 4912 views
    This topic created in 3938 days ago, the information mentioned may be changed or developed.

    CodeIgniter-learn-forum

    利用 PHP 语言, CodeIgniter 框架, MySQL 数据库搭建简单的 Forum ,仅供学习之用。
    演示地址:Demo

    功能简介

    1. 用户注册,修改资料,包括头像显示
    2. 添加分类,发表帖子,以及回复评论
    3. Markdown 编辑,图片上传和预览效果

    安装方法

    获取代码

    git clone https://github.com/luckybirdme/CodeIgniter-learn-forum.git

    安装数据库

    mysql -uroot -p
    source codeigniter.sql

    文件配置

    修改 application/config/database.php

    $db['default'] = array(
    .................
    // 根据自己环境修改
    'hostname' => 'localhost',
    'username' => 'root',
    'password' => '123456',
    'database' => 'codeigniter',
    'dbdriver' => 'mysqli',
    ............
    );

    修改 application/config/config.php

    ...........
    // 根据自己环境修改
    $config['base_url'] = 'http://localhost.CodeIgniter';
    $config['static_url'] = 'http://localhost.CodeIgniter/public/static';
    $config['upload_path'] = FCPATH;
    $config['image_url'] = 'http://localhost.CodeIgniter';
    ............

    相关链接

    GitHub 地址:CodeIgniter-learn-forum

    博客地址 : LuckyBird

    备注
    如果本项目对你有帮助,不妨点个赞呗!

    15 replies  •  2016-02-07 13:33:16 +08:00
    passion336699
    passion336699
    Feb 5, 2016
    1
    账号密码是啥...
    phantomer
    phantomer
    Feb 5, 2016
    2
    喜欢这种简约风格~
    phantomer
    phantomer
    Feb 5, 2016
    3
    楼主的博客也是用基于这套东西的么?
    imydou
    imydou
    Feb 5, 2016
    4
    密集恐惧症表示你的博客太难看了
    luckybird
    luckybird
    OP
    Feb 5, 2016 via iPhone
    5
    @phantomer
    博客用开 Wordpress ,就一直没换了
    luckybird
    luckybird
    OP
    Feb 5, 2016 via iPhone
    6
    @imydou
    额,平时作笔记用,没怎么优化界面了,后期改善下
    luckybird
    luckybird
    OP
    Feb 5, 2016 via iPhone
    7
    @passion336699
    你可以自己注册个账号
    luckybird
    luckybird
    OP
    Feb 5, 2016 via iPhone
    8
    @phantomer
    谢谢
    vimutt
    vimutt
    Feb 6, 2016 via Android
    9
    挺喜欢的 我可以拿来自己用吗
    luckybird
    luckybird
    OP
    Feb 6, 2016 via iPhone
    10
    @vimutt
    可以啊
    phantomer
    phantomer
    Feb 6, 2016
    11
    @luckybird 博主的这套博客主题为倒是很喜欢。
    wuhuaji
    wuhuaji
    Feb 7, 2016
    12
    请问楼主,前端上主要是自己写的,还是主要依赖 bootstrap 的?
    luckybird
    luckybird
    OP
    Feb 7, 2016 via iPhone
    13
    @wuhuaji
    主要依赖 bootstrap ,再按需修改
    XianZaiZhuCe
    XianZaiZhuCe
    Feb 7, 2016
    14
    谢谢
    XianZaiZhuCe
    XianZaiZhuCe
    Feb 7, 2016
    15
    http://codeigniter.luckybird.me/post/show/?post_id=cc , 各种报错,参数我觉得应该要过滤一下。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1557 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 16:34 · PVG 00:34 · LAX 08:34 · JFK 11:34
    ♥ Do have faith in what you're doing.