本文整理汇总了PHP中Story::findById方法的典型用法代码示例。如果您正苦于以下问题:PHP Story::findById方法的具体用法?PHP Story::findById怎么用?PHP Story::findById使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Story
的用法示例。
在下文中一共展示了Story::findById方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.0.2/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="css.css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="server.js" type="text/javascript"></script>
</head>
<body class="bg2">
<?php
require "server/DatabasePDO.php";
require "server/Story.php";
require "server/Superhero.php";
require "server/SuperheroOf.php";
require "server/Publisher.php";
require "server/CreatedBy.php";
require "server/Author.php";
$story = Story::findById($_POST["storyID"]);
$publisher = Publisher::findById($story->getId());
$superheroof = SuperheroOf::findByStoryId($story->getId());
$createdby = CreatedBy::findByStoryId($story->getId());
?>
<img id="upper_left" class="reflect" src="images/spiderman.png" width="450px">
<div class="container result">
<div class="row text-center header">
<div id="logo"></div>
</div>
<!--Character Start-->
<div class="panel panel-danger">
<div class="panel-heading text-center">
STORY