本文整理汇总了PHP中Evento::readOnDate方法的典型用法代码示例。如果您正苦于以下问题:PHP Evento::readOnDate方法的具体用法?PHP Evento::readOnDate怎么用?PHP Evento::readOnDate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Evento
的用法示例。
在下文中一共展示了Evento::readOnDate方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Database
<?php
include "classes/Database.class.php";
include "classes/Evento.class.php";
$database = new Database();
$db = $database->getConnection();
$evento = new Evento($db);
$template = array();
$template['title'] = "Evento";
$template['evento'] = $evento->readOnDate();
include "views/timeline.php";
示例2: Database
<?php
include "../classes/Database.class.php";
include "../classes/Login.class.php";
include "../classes/Evento.class.php";
$database = new Database();
$db = $database->getConnection();
$login = new Login($db);
if (isset($_POST['login'])) {
$login->setUsuario($_POST['usr']);
$login->setSenha($_POST['pass']);
$login->login();
}
if (isset($_GET['logout'])) {
$login->doLogout();
}
if ($login->isLoggedIn()) {
$evento = new Evento($db);
$eventos = $evento->readOnDate();
$titulo = "Proximos eventos";
$content = array();
$content[] = "tabelasEventos.php";
include "template/dash.php";
} else {
include "template/login.php";
}