Jump to content






Photo - - - - -

Section54 dev update

Posted by RawkBob, 02 September 2005 · 48 views


I've now finished the main site (with the exception of an anti-spam checker for the html contact form). I'm really quite happy with the way it's turned out. I'd like to slightly change my template engine though... it's a bit messy... How it works at the moment:-

Each template has a function inside the template class, I would like to make one function and you specify the template you want,... i.e.

CODE
$template->get_template( 'template_name_here', $array_of_vars );


Also, i don't know if i should change it, but the templates can execute PHP

CODE

if( $var )
{
     $link = '<a href="{site_url}/art/{short-title}/">';
}
else
{
      $link = NULL;
}


So that the templates can put in html dependant on conditions... this could be set in the class that passes the data.

Now... to work on the admin side of the site... i would like to use fancy JS and XMLHTTPRequest type things... but it'll probably just turn out in basic JS and HTML.

Maybe i'll learn these things one day and be able to utilise them how i'd like.





My Picture

Search My Blog

0 user(s) viewing

0 members, 0 guests, 0 anonymous users