Skip to content

Commit

Permalink
Removed setFlash() method. Defective. Not needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
BillBushee committed Apr 5, 2019
1 parent ff52a34 commit 0674dbd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,6 @@ in the text passed in, and if it finds any, wraps them in a div with a class of
Template Variables
---------

setFlash provides a template alias to call craft()->userSession->setFlash($name, $value). Useful for passing variables to the following page, for example passing the page number from the list to detail view

`{% setFlash('page', 3) %}`

executionTime Outputs the time required for the server to execute the page output

`{{ craft.kindling.executionTime }}`
13 changes: 0 additions & 13 deletions src/variables/KindlingVariable.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,10 @@

use Imarc\Craft\Kindling\Plugin;


use Craft;

class KindlingVariable
{
/**
* Provides public access to the craft()->userSession->setFlash method from your Twig template:
*
* {{ craft.kindling.setFlash(name, value) }}
*/
public function setFlash($name, $value)
{
craft()->userSession->setFlash($name, $value);

return true;
}

/**
* Debuging helper method returns a text string stating the microtime required to execute the script
*
Expand Down

0 comments on commit 0674dbd

Please sign in to comment.