Skip to content
This repository has been archived by the owner on May 14, 2020. It is now read-only.

peternijssen/codeigniter-calendar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CodeIgniter Calendar

CodeIgniter calendar is an improved calendar class. The current class lacks multiple events on the same day and has a poor template.

Currently improved:

  • Better templating
  • Handling multiple events
  • Output per month

Upcoming:

  • Output per week
  • Output per year

Requirements

  1. CodeIgniter 2.0.0+

Installing

NOTE: Not yet available on GetSparks

Available via CodeIgniter Sparks. For info about how to install sparks, go here: http://getsparks.org/install

You can then load the spark with this:

$this->load->spark('ptcalendar/1.0.0/');

or by autoloading:

$autoload['sparks'] = array('ptcalendar/1.0.0');

Also, copy the files in the views folder to your own views folder

Usage

After loading, you have this object available:

$this->ptcalendar;

Use within your view

echo $this->ptcalendar->generate($year, $month, $events);

The events array should look like this. (22 and 6 are the day numbers)

array
  22 => 
    array
      0 => 
        array
          'name' => 'name'
          'link' => 'link'
      1 => 
        array
          'name' => 'name'
          'link' => 'link'
  6 => 
    array
      0 => 
        array
          'name' => 'name'
          'link' => 'link'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages