Overview

Packages

  • tipy

Classes

  • Tipy
  • TipyApp
  • TipyCli
  • TipyCliSession
  • TipyConfig
  • TipyController
  • TipyCookie
  • TipyDAO
  • TipyEnv
  • TipyFlash
  • TipyInflector
  • TipyInput
  • TipyIOWrapper
  • TipyLogger
  • TipyMailer
  • TipyModel
  • TipyOutput
  • TipyRequest
  • TipySession
  • TipyTestCase
  • TipyTestRunner
  • TipyView

Exceptions

  • AssertionFailedException
  • CompileErrorException
  • CompileWarningException
  • CoreErrorException
  • CoreWarningException
  • DeprecatedException
  • NoMethodException
  • NoticeException
  • ParseException
  • RecoverableErrorException
  • StrictException
  • TipyDaoException
  • TipyException
  • TipyModelException
  • TipyRollbackException
  • TipyValidationException
  • UserDeprecatedException
  • UserErrorException
  • UserNoticeException
  • UserWarningException
  • WarningException
  • Overview
  • Package
  • Class
  • Deprecated
  • Todo

Class TipyFlash

Send data between actions

The flash concept is borrowed from Rails. It provides a way to pass temporary primitive-types (Strings, Integers, Arrays) between actions. Anything you place in the flash will be exposed to the next action. This is a great way of doing notices and alerts after redirects.

class BlogController extends TipyController {
    public function save() {
        // ...save post...
        $this->flash->set('Post successfully created');
        $this->redirect('/blog/index');
    }
}
Package: tipy
Located at src/TipyFlash.php
Methods summary
public
# __construct( TipySession $session )

Parameters

$session
public
# set( mixed $message )

Parameters

$message
public mixed
# get( )

Returns

mixed
tipy API documentation generated by ApiGen