本文整理汇总了PHP中Pages::get_page_data方法的典型用法代码示例。如果您正苦于以下问题:PHP Pages::get_page_data方法的具体用法?PHP Pages::get_page_data怎么用?PHP Pages::get_page_data使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Pages
的用法示例。
在下文中一共展示了Pages::get_page_data方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Pages
<!DOCTYPE html>
<?php
include 'config.php';
include $_SERVER['DOCUMENT_ROOT'] . '/dallasafrican/class/Pages.php';
$page = new Pages();
//$page->copy_dir('TheBlueBoxParty');
//$name = $page->make_page("the <p> ^. % ? ! :;\ /black2 <>@ *()party");
//echo $name;
//echo '<br>';
//echo $tis['post_name'];
//$tis = $page->get_page_data(115);
//$name = $page->make_page($tis['post_name'],115);
//echo $name;
$data = $page->get_page_data(event_id);
?>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<title>Landing Page template</title>
<meta name="generator" content="Bootply" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link href="../css/bootstrap.min.css" rel="stylesheet">
<link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.min.css" rel="stylesheet">
<!--[if lt IE 9]>
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link href="../css/styles.css" rel="stylesheet">
</head>
示例2: Pages
<?php
/**
* Created by PhpStorm.
* User: Celine
* Date: 10/19/15
* Time: 10:08 PM
*/
spl_autoload_register(function ($class) {
require_once "{$class}.php";
});
$page = new Pages();
//$page->copy_dir('TheBlueBoxParty');
//$name = $page->make_page("the <p> ^. % ? ! :;\ /black2 <>@ *()party");
//echo $name;
echo '<br>';
//echo $tis['post_name'];
$tis = $page->get_page_data(18);
$name = $page->make_page($tis['post_name'], 18);
echo $name;