View.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php namespace Config;
  2. class View extends \CodeIgniter\Config\View
  3. {
  4. /**
  5. * When false, the view method will clear the data between each
  6. * call. This keeps your data safe and ensures there is no accidental
  7. * leaking between calls, so you would need to explicitly pass the data
  8. * to each view. You might prefer to have the data stick around between
  9. * calls so that it is available to all views. If that is the case,
  10. * set $saveData to true.
  11. */
  12. public $saveData = true;
  13. /**
  14. * Parser Filters map a filter name with any PHP callable. When the
  15. * Parser prepares a variable for display, it will chain it
  16. * through the filters in the order defined, inserting any parameters.
  17. * To prevent potential abuse, all filters MUST be defined here
  18. * in order for them to be available for use within the Parser.
  19. *
  20. * Examples:
  21. * { title|esc(js) }
  22. * { created_on|date(Y-m-d)|esc(attr) }
  23. */
  24. public $filters = [];
  25. /**
  26. * Parser Plugins provide a way to extend the functionality provided
  27. * by the core Parser by creating aliases that will be replaced with
  28. * any callable. Can be single or tag pair.
  29. */
  30. public $plugins = [];
  31. }