Welcome Guest, Not a member yet? Register   Sign In
Can't understand how to use the view
#1

[eluser]miauksius[/eluser]
Hi everyone,

I have a problem, I don't understand, when and how do I have to use the view. Before starting coding php oop (i mean withoust using classes), i was coding my pages like this:

Code:
<?php

$id = $_GET [ 'id' ];

if ( $last_update_date == $today_date )
{
    echo 'The page was updated today. YAY!
    <br />
    ----
    <br />';
}

if ( $id == '' )
{
    echo 'Hi, this is the main page';
}

if ( $id == 'about_me' )
{
    echo 'This page contains information about me.
    <br />
    Your requests:
    <br />
    [Input and link to a page where data from input is written to a file]';
}

?&gt;

Can you please explain me, or give me a link to some tutorial that would explain how to fit that output to a view?

Thank you.

P.S. Sorry for the broken english :red:


Messages In This Thread
Can't understand how to use the view - by El Forum - 07-22-2009, 08:13 AM
Can't understand how to use the view - by El Forum - 07-22-2009, 09:32 AM
Can't understand how to use the view - by El Forum - 07-22-2009, 10:02 AM
Can't understand how to use the view - by El Forum - 07-22-2009, 10:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB