Skip to content

adamsmeat/output

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Adamsmeat/Output

Backend output manager for the browser

Configuration

<?php
return array(
	'providers' => 'Adamsmeat\Output\OutputServiceProvider',
	'aliases' => array(
		'Output' => 'Adamsmeat\Output\OutputFacade',
	)
);
?>

Usage

Chain the following methods to return Illuminate\View\View object

  • setTheme() No need to call if you did not create any new theme.
  • cfg() When you need to modify this's packages config by passing an array.
  • sendView() returns the final view based off runtime config

Global variables

Access in view files through the g('key') or Output::g(key) function which is the array set in output::config file with key 'globals'.

It can be access through $g array but to eliminate errors, escaping, etc, we will use helper functions

Notes

  1. keys - avoid special characters(.,-) on identifiers that are meant to be names of variable, functions, etc.
  2. namespace - keep namespacing at all times if possible, if one can be placed under a category, by all means, do so

About

manager for browser output

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published