2017 © Pedro Peláez
 

library view

View Component provides basic methods for displaying PHP views.

image

flextype-components/view

View Component provides basic methods for displaying PHP views.

  • Monday, April 30, 2018
  • by Awilum
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

View Component

versionMIT License, (*1)

View Component provides basic methods for displaying PHP views., (*2)

Installation

composer require flextype-components/View

Usage

use Flextype\Component\View\View;

Create a new view object and render it., (*3)

// Create new view object
$view = new View('blog/views/backend/index');

// Assign some new variables
$view->assign('msg', 'Some message...');

// Get view
$output = $view->render();

// Display view
echo $output;

View factory
Create new view object, assign some variables and displays the rendered view in the browser., (*4)

View::factory('blog/views/backend/index')
     ->assign('msg', 'Some message...')
     ->display();

Include the view file and extracts the view variables before returning the generated output., (*5)

// Get view
$output = $view->render();

// Display output
echo $output;

Displays the rendered view in the browser., (*6)

$view->display();

License

See LICENSE, (*7)

The Versions

30/04 2018

dev-master

9999999-dev https://github.com/flextype-components/view

View Component provides basic methods for displaying PHP views.

  Sources   Download

MIT

The Requires

  • php ^7.1.3

 

php views

30/04 2018

v1.1.1

1.1.1.0 https://github.com/flextype-components/view

View Component provides basic methods for displaying PHP views.

  Sources   Download

MIT

The Requires

  • php ^7.1.3

 

php views

26/04 2018

v1.1.0

1.1.0.0 https://github.com/flextype-components/view

View Component provides basic methods for displaying PHP views.

  Sources   Download

MIT

The Requires

  • php ^7.1.3

 

php views

25/04 2018

v1.0.1

1.0.1.0 https://github.com/flextype-components/template

Template Component provides basic methods for displaying PHP views/templates.

  Sources   Download

MIT

The Requires

  • php ^7.1.3

 

templating template php template engine views