Giter Site home page Giter Site logo

imarlboro / codeigniter-themes-facebook Goto Github PK

View Code? Open in Web Editor NEW

This project forked from babogomdori/codeigniter-themes-facebook

0.0 2.0 0.0 546 KB

CodeIgniter 2.1.4, Bootstrapped with Custom Themes & Facebook Integration.

ApacheConf 0.01% PHP 99.66% HTML 0.32% CSS 0.01%

codeigniter-themes-facebook's Introduction

CodeIgniter, Themes & Facebook Integration

CodeIgniter v.2.1.4, Custom Themes (Bootstrap v.3.1.0) & Facebook Integration (PHP SDK v.3.2.3).

Installation

  1. Upload files
  2. Define database settings in /application/config/database.php
  3. Define Facebook settings in /application/config/facebook.php
  4. Go!

Usage

  • Theme assets are located in the /assets/ folder. Main theme files are located in the /application/views/themes/ folder.
  • If there's an update of the Facebook PHP SDK available, just replace 'facebook.php' and 'base_facebook.php' in /application/third_party/facebook/libraries/.
// Load Facebook PHP SDK
$this->load->library('facebook_init');

// Access the Facebook PHP SDK
$data['loginUrl'] = $this->facebook->getLoginUrl(array('scope'=>'email'));
// Set the main template for this page
$this->output->set_template('default');

// Load the template assets for this page
$this->load->js('https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js');
$this->load->css('https://netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css');

Example

See for an example the Home controller /application/controllers/home.php

Credits

Build upon CodeIgniter-Simplicity by John Skoumbourdis and the official Facebook PHP SDK.

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.