First release of domframework
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1207 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
21
examples/blog/views/view_blog.php
Normal file
21
examples/blog/views/view_blog.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
class view_blog
|
||||
{
|
||||
function get ($data)
|
||||
{
|
||||
return $data;
|
||||
}
|
||||
|
||||
function listing ($data)
|
||||
{
|
||||
$content = "<ul>\n";
|
||||
foreach ($data as $val)
|
||||
{
|
||||
$content .= " <li>";
|
||||
$content .= "<a href='".urlencode ($val)."'>".htmlentities ($val)."</a>";
|
||||
$content .= "</li>\n";
|
||||
}
|
||||
$content .= "</ul>\n";
|
||||
return $content;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user