示例#1
0
 function destroy()
 {
     $o = new Subslide();
     $this->subslide = $o->find($_REQUEST["id"]);
     $this->subslide->destroy();
     $this->index();
     $this->render_view = "index";
 }
示例#2
0
<?php

require $_SERVER["DOCUMENT_ROOT"] . "ssorm/ssorm/models/all_models.php";
/**
 * PHP Template.
 */
$o = new Subslide();
$list = $o->find_by("all");
foreach ($list as $obj) {
    echo "{$obj->id} {$obj->name} {$obj->slide_id} ";
    echo "<a href='edit.php?id={$obj->id}'>Edit</a> <br>";
}
echo "<br><br>";
?>
<a href="edit.php">NEW</a>