2017 © Pedro Peláez
 

li3-libraries li3_hui

Lithium ui plugin

image

derek/li3_hui

Lithium ui plugin

  • Tuesday, December 24, 2013
  • by johnnyfortune
  • Repository
  • 2 Watchers
  • 1 Stars
  • 23 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

li3_hui [ lithium ui plugin ]

Installation

Checkout the code to your library directory:, (*1)

cd libraries
git clone git@github.com:/johnny13/li3_hui.git

Include the library in in your /app/config/bootstrap/libraries.php, (*2)

Libraries::add('li3_hui');
define('HUI_PATH', dirname(LITHIUM_APP_PATH) . '/libraries/li3_hui' );

The li3_hui (li3_hui) plugin provides a straightforward interface for displaying status messages to the user, a number of html builders, and stuff and thangs., (*3)

Integration


Custom Views

Once you have the library installed and included, you probably want to use it. Calling custom layouts from libraries can be tricky. It basically requires you setup each controller. There needs to be an init() where you define the library's path., (*4)

Your Controller Should have this Function, (*5)

controller = $this->request->controller;
    $this->library = $this->request->library;

    $this->_render['paths'] = array(
            'template' => array(
                    LITHIUM_APP_PATH . '/views/{:controller}/{:template}.{:type}.php',
                    HUI_PATH . '/views/{:controller}/{:template}.{:type}.php',
                    '{:library}/views/{:controller}/{:template}.{:type}.php',
            ),
            'layout' => array(
                    LITHIUM_APP_PATH . '/views/layouts/{:layout}.{:type}.php',
                    HUI_PATH . '/views/layouts/{:layout}.{:type}.php',
                    '{:library}/views/layouts/{:layout}.{:type}.php',
            ),
            'element' => array(
                    LITHIUM_APP_PATH . '/views/elements/{:template}.{:type}.php',
                    HUI_PATH . '/views/elements/{:template}.{:type}.php',
                    '{:library}/views/elements/{:template}.{:type}.php',
            ),
    );
}

?>

Then later in the SAME Controller you would render a view like this, (*6)

set(array('title' => $title));
    return $this->render(array('layout' => 'hui', 'library' => 'li3_hui'));
}

?>

The Versions

24/12 2013

dev-master

9999999-dev https://github.com/johnny13/li3_hui

Lithium ui plugin

  Sources   Download

MIT

The Requires

 

css jquery lithium li3 huement hui li3-hui