Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Simple and easy to use class for displaying notification messages to the user
PHP

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
classes
messages
views/notice
README.md

README.md

Introduction

Notice is simple and easy to use class for displaying notification messages to the user for Kohana 3.x.

Instalation

$ git submodule add git://github.com/loonies/kohana-notice.git modules/notice
$ git submodule update --init

General

A Notice message consist of:

  • Type - The message type
  • Message - The message itself
  • Variables - The message varibles
  • Items - Additional message items i.e. submessages

Usage

Add a new message.

Notice::add(Notice::ERROR, 'Unable to download :module. Please:', array('module' => $module), array(
    'Check your connection', 'Check configuration settings'
));

Render the Notice view.

View::factory('download')
    ->bind('notice', $notice);

$notice = Notice::render();
Something went wrong with that request. Please try again.