Git Product home page Git Product logo

build_simple_blog_codeigniter_php's Introduction

Build_Simple_Blog_Codeigniter_PHP

Trong tutorial này mình sẽ hướng dẫn mọi người xây dựng một website về blog đơn giản. Nó sẽ đầy đủ nhất các thứ cần phải có để làm chủ được Framework Codeigniter PHP.

  1. Codeigniter là gì?

Hiện nay có khá nhiều Frameworks được xây dựng từ PHP như Zend, Laravel, CakePHP, Codeigniter và mỗi framework có những ưu và nhược điểm khác nhau. Có một câu hỏi đặt ra là tại sao chúng ta cần học PHP Framework? Thông thường nếu ban làm dự án bằng PHP thuần thì đòi hỏi bạn phải có kiến thức về bảo mật PHP và PHP nâng cao thì mới quản lý source tốt được. Nhưng khi bạn sử dụng Framework thì bạn sẽ bớt đi thời gian để xử lý hai vấn đề đó bởi vì các Frameworks đã tạo cho chúng ta cái sường để có thể tạo ra những dự án khác nhau. Frameworks đơn giản và dễ học nhất mà ai cũng biết đó là Codeigniter, đây là một framework được xây dựng từ mô hình MVC có ưu điểm là chạy nhanh, dễ học cho người mới tìm hiểu MVC Framework. Codeigniter Framework còn viết tắt là CI Framework.

  1. Cách cài đặt?

Step 1: Truy cập trang chủ Codeigniter để download. Step 2: Tham khảo video.

  1. Các Package cần thiết cho Sublime Text khi code Codeigniter

Step 1:

  • Window: Ctrl + Shift + P, sau đó nhập Install Package.
  • Mac: Command + Shift + P, sau đó nhập Install Package.

Step 2: Install 2 Package.

  • Codeigniter Snippets
  • Codeigniter Unities
  1. Các bước khởi tạo dự án:
  • Tạo Folder chứa dự án:
  • Window: Tạo thư mục tên dự án trong C:\Xampp\htdocs$tenduan
  • Mac: Tạo thưc mục tên dự án trong Applications\Mamp\htdocs$tenduan
  • Khởi tạo server:
  • Thường thì các phần mềm sẽ chuyển sang chorme với địa chỉ: localhost:3333/dashboards < Chú ý: 3333 là port do bạn thiết lập>
  • Còn không bạn có thể lên chorme và truy cập địa chỉ bên trên như bình thường.
  • Chạy dự án: Bạn truy cập localhost:3333/$tenduan < $tenduan chính là tên thư mục của bạn >

build_simple_blog_codeigniter_php's People

Contributors

trantoan960 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.