Coder Social home page Coder Social logo

devblog's Introduction

CodeIgniter

Simple Blog App with CodeIgniter

Requirement:

  • Login
  • Logout
  • Register

Install XAMPP

All readers were assumed to have install their *AMPP in OS of choices. If you sir do not know what is *AMPP, then please consult Google in cojunction with your OS. Google "How to install WAMPP" for Windows user, "How to install MAMP" for Mac user and and How To Install LAMPP" for Linux user and follow along the subsequent tutorials/hands on. Still don`t have a clue? Then you have a grave problem mister...

A Brief about CodeIgniter

Its awesome. Nuff said.

Alright, more `eh; CodeIgniter is a MVC Framework to assist web base application development. It is built on top of PHP. So, PHP has been around for years and it is a growing pain to built and maintain a big web application structure on it. The pain grow much bigger when the team grow. CodeIgniter provide the much needed structure to PHP web application and thus make it a joy to build and maintain.

How ever, CodeIgniter is 'you type what you need' framework unlike CakePHP. It doesn`t facilitate scaffolding (automatically) as a princip.

CodeIgniter already provide the core libraries which can be extended at whim if you wish. Consult the documentation if you inclined so.

By the way, the documentation is awesome too..!

ps: Read more about MVC if you never heard of it. Important!

How To install CodeIgniter: A Primer

It is really easy to install CodeIgniter. Download the framework from CodeIgniter main page and extract it to your designated folder. Lets say you designated folder is "howframework", the folder structure will be like:

-www
	|-howframework
		|-system
		|-application
		|-index.php

Thus the installation is done. Checkit by going to the page from your browser. It should display this friendly "welcome" page.

How to use this Repo

This repo contains Codeigniter with some example files in it to simulate the requirement stated above. Click and view the file you interested with and try to understand it. Comments are generously sprinkled to assist. Brief explaination will be provided afterwards.

Now, the time to do the codes!

Nope, not yet. Firstly need to config some stuff in CI (yah, we love CodeIgniter so much we give it nickname. Heck, CI is better than Honey or worse, Bieber....). By default CI doesn`t connect to any database and will have the "welcome" app as default app. So, the first step is to make a mysql table and config CI to be able to talk/connect with it. Create table in MySQL in your favourite tools (PHPMyAdmin for you) with the name "howframework_ci" and table "users" with structure as below:

- id (INT) *
- username (STRING/UNIQUE)
- password (STRING) **
- email (STRING)
- fullname (STRING)

devblog's People

Contributors

crynobone avatar narekcat avatar robotys avatar

Watchers

 avatar  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.