Exemplo n.º 1
0
 public function testSetWithArray()
 {
     T::set("en", array("bookmark.type" => "Bookmark Type", "bookmark.url" => "URL"));
     T::set("de", array("bookmark.type" => "Lesezeichen Typ", "bookmark.url" => "Link"));
     T::setLanguage('en');
     $this->assertEquals('Bookmark Type', T::get('bookmark.type'));
     $this->assertEquals('URL', T::get('bookmark.url'));
     T::setLanguage('de');
     $this->assertEquals('Lesezeichen Typ', T::get('bookmark.type'));
     $this->assertEquals('Link', T::get('bookmark.url'));
 }
Exemplo n.º 2
0
<?php

echo B::xhtml5(array('head' => B::head(array('title' => 'SweetFramework Project Test')), 'body' => B::body(array('header' => B::header(array('title' => 'Project Test', 'nav' => T::get('site/nav'))), 'content' => array(B::h1(array('text' => 'Projects')), B::ul(array('items' => D::log(array_map(function ($v) {
    return V::get('project/detail', array('project' => $v));
}, $projects), 'projects')))), 'footer' => B::footer(array('text' => 'Copyright ajcates ' . date('Y')))))));
Exemplo n.º 3
0
<?php

echo B::xhtml5(array('head' => B::head(array('title' => 'SweetFramework Project Test')), 'body' => B::body(array('header' => B::header(array('title' => 'Project - ' . $project->name, 'nav' => T::get('site/nav'))), 'content' => V::get('project/detail', array('project' => $project)), 'footer' => B::footer(array('text' => 'Copyright ajcates ' . date('Y')))))));