Download the PHP package tomas/message without Composer
On this page you can find all versions of the php package tomas/message. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download tomas/message
More information about tomas/message
Files in tomas/message
Download tomas/message
More information about tomas/message
Files in tomas/message
Please rate this library. Is it a good library?
Informations about the package message
Message plugin by Tomas Sjösten
This is a simple Message plugin that will store message via Session and display it for a given interval. Support for several message bubbles.
- Include
- message.js
- message.css
- Message.php
- Include the file wherever you may want to start a message and also where you want to output message.
Simple SET and GET
-
setMessage(your message)
- accepts array only
- ['type', 'msg']
- Type either "ok" or "error"
- Msg the wanted message to display
- getMessage() *outputs the message
Use with Anax-MVC
-
Js and Css files
- message.js
- put into webroot/js
- include that JS-file in your Theme
- message.css
- put into webroot/css
- include that CSS-file in your Theme
-
PHP file
- Change Namespace in Message.php file
- Load Message.php in CDIFactory
- Create custom CDIFactory
-
Change file "config_with_app.php"
- Change to CDIFactory instead of default
- Add $app->session();
- index.php (or choosen router)
- furthest down, under "$app->theme->render();" add "$app->message->getMessage()"
Drop me a mail [email protected] if you want to give me some feedback.
All versions of message with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4
The package tomas/message contains the following files
Loading the files please wait ....