Giter Club home page Giter Club logo

rzlco666 / codeigniter3-mod Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 499 KB

This repository contains boilerplate code for a fresh Codeigniter 3 setup with an SEO optimization library. This boilerplate code includes a library to help optimize the search engine visibility of your application. The code is easy to set up and customize, making it a great starting point for your Codeigniter project

License: Creative Commons Zero v1.0 Universal

PHP 99.68% HTML 0.32%
php seo codeigniter codeigniter3 codeigniter-library codeigniter-template codeigniter-crud codeigniter-hmvc codeigniter-skeleton php7 php-library php-framework php5 php8

codeigniter3-mod's Introduction

codeigniter-mod

This repository contains boilerplate code for a fresh Codeigniter 3 setup with an SEO optimization library. Codeigniter is a PHP framework for building web applications, and this boilerplate code includes a library to help optimize the search engine visibility of your application. The code is easy to set up and customize, making it a great starting point for your Codeigniter project.

CodeIgniter Version: 3.1.11

Configuration

In the application/config/ci_seo.php file you will find an array of configuration variables. See the following table for the usefulness of each in the library:

Key Type Description
canonical_url string Canonical URL of the application, which may be the result of base\_url \(\)
site_title string Site Title
site_description string Website Description
site_image string Illustrative site image (size is usually 1200x630)
twitter_user string Twitter username including @
fb_app_id integer Facebook app ID with which the site is associated (developer.facebook.com)
fb_page_id integer Facebook Page ID with which the site is associated

How to use

After performing the installation and configuration, just call the method $this->ci_seo->add_tags() informing the parameters corresponding to the title, description and illustrative image of the page.

$this->ci_seo->add_tags('Page title', 'Page Description', 'image/path');

The $this->ci_seo->add_tags() method can be called either directly inside the <head> </head> tag or inside some method in the controller, returning the data to a variable that should be passed to the view should be retrieved inside <head> </head>.

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
    <?= $this->ci_seo->add_tags('Page title', 'Page Description', 'image/path'); ?>
</head>
<body></body>
</html>

Special Thanks

jlamim for SEO optimization library

codeigniter3-mod's People

Contributors

rzlco666 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

felix1

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.