2017 © Pedro Peláez
 

library output

template manager

image

adamsmeat/output

template manager

  • Thursday, April 18, 2013
  • by adamsmeat
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Adamsmeat/Output

Backend output manager for the browser, (*1)

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, (*2)

  • 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'., (*3)

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

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

The Versions

18/04 2013

dev-master

9999999-dev

template manager

  Sources   Download

The Requires

 

by Paolo Umali