Esempio n. 1
0
 /**
  *
  * @return Yasc_Function_Helper_Flash
  */
 public function messages()
 {
     /* @var $f Yasc_Function_Helper_Flash */
     $f = Yasc_App::functionHelper("flash");
     return $f;
 }
Esempio n. 2
0
File: app.php Progetto: nebiros/yasc
/**
 * @PUT("/update")
 */
function save_update()
{
    Yasc_App::view()->layout()->disable();
    // $mysql = Yasc_App::config()->getOption("db");
    // $mysql->update("table1", array("first_name" => $_POST["first_name"], "last_name" => $_POST["last_name"]));
    /* @var $flash Yasc_Function_Helper_Flash */
    $flash = Yasc_App::functionHelper("flash");
    $flash->info("Done.");
    return header("Location: " . Yasc_App::viewHelper("url")->url(array("path" => "/update")));
}