File: src/View.php

Recommend this page to a friend!
  Classes of Thierry Feuzeu  >  Jaxon for CodeIgniter  >  src/View.php  >  Download  
File: src/View.php
Role: Class source
Content type: text/plain
Description: Class source
Class: Jaxon for CodeIgniter
CodeIgniter plugin to call PHP from with AJAX
Author: By
Last change: Fixed base classes in View file.
Revert "Fixed class declaration."

This reverts commit 48b862052d5245187cf8fd3b2b6570cd384c1444.
Revert "Revert "Renamed the js.app.extern option to js.app.export.""

This reverts commit 1543880c53c5c6ec9905b65d7f7589ee74e90fc1.
Revert "Revert "Revert "Renamed the js.app.extern option to js.app.export."""

This reverts commit cf3998266eb1723c44f47dc0a842d7ca36f4f7f3.
Revert "Revert "Fixed class declaration.""

This reverts commit 3c8bd28ba39b2acd4ddb089cd6e9fbca5544a1a3.
Revert "Fixed class declaration."

This reverts commit 48b862052d5245187cf8fd3b2b6570cd384c1444.
Revert "Revert "Renamed the js.app.extern option to js.app.export.""

This reverts commit 1543880c53c5c6ec9905b65d7f7589ee74e90fc1.
Revert "Renamed the js.app.extern option to js.app.export."

This reverts commit c2ea7948e5b384a4cdb04c9ca6dcf6ceddd9183d.
Fixed class declaration.
Date: 3 months ago
Size: 938 bytes
 

Contents

Class file image Download
<?php

namespace Jaxon\CI;

use
Jaxon\Utils\View\Store;
use
Jaxon\Contracts\View as ViewContract;

class
View implements ViewContract
{
   
/**
     * Add a namespace to this view renderer
     *
     * @param string $sNamespace The namespace name
     * @param string $sDirectory The namespace directory
     * @param string $sExtension The extension to append to template names
     *
     * @return void
     */
   
public function addNamespace($sNamespace, $sDirectory, $sExtension = '')
    {}

   
/**
     * Render a view
     *
     * @param Store $store A store populated with the view data
     *
     * @return string The string representation of the view
     */
   
public function render(Store $store)
    {
       
// Render the template
       
return trim(get_instance()->load->view($store->getViewName(), $store->getViewData(), true), " \t\n");
    }
}

For more information send a message to info at phpclasses dot org.