A Simple Orqi Page

By orqi

If you look in your “_classes/_app” project directory and open your “PageController.php” file, you should notice a snippet near the top that looks something like this.

<?
    class PageController extends Controller
    {
        function Home()
        {
            $this->form = new LoginValidator();
            $this->LoadTemplate("HomePage");
        }
    }
?>

If you then go to “_classes/_app/_pc” (or the Templates Directory) and open “HomePage.php” you will see this.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <? $this->LoadComponent("HeadTag"); ?>

    <body id="home">
        <? $this->LoadComponent("PageHeader"); ?>
<h1><?=$this->config->app['title']?></h1>
<h2>Home Page</h2>
<? $this->LoadComponent("PageFooter"); ?>
    </body>
</html>

If you look in the templates directory and open _PageHeader.php

<div id="header"></div>

if you then run http://localhost/yoursite/page/home.html and you should see something like this

What your site should look like

What your site should look like

Try it yourself

Try making your own Orqi page to see how easy it is.

Tags: ,

Leave a Reply