PDA

View Full Version : Where do I include my includes?


utvara
04-05-2007, 12:31 PM
Wanna build your own page and wrap it up in vivvo?
Just put your content on the dotted line :)

<?php

include('include/includes.php');

$main_subject_HTML = 'YOUR CONTENT GOES HERE';

include('include/header.php');

$filename=$root ."$tpl_folder/framework.tpl";

//Alternatively use this if you don't want right column to be displayed
//$filename=$root ."$tpl_folder/framework_withouth_right.tpl";
include('template_scripts/framework.php');

include('include/footer.php');

$template_manager->set_string_template($HTML_output);
$HTML_output = $template_manager->get_output();
$HTML_output = lang_replace($HTML_output);

echo $HTML_output;
mysql_close($connection);

?>

ohyea19
07-09-2007, 11:59 PM
Instead of this code:

$main_subject_HTML = 'YOUR CONTENT GOES HERE';

How can you code it so that you have it so it'll can include a php file instead?

Billy
08-31-2007, 11:07 AM
Hello..

i guess this should only work if the file created is in the root directory, won't be easy if u want to create several subdirectories that include files ..you need to do so if u already have a site and want to integrate vivvo..

UnionDance
09-23-2007, 08:17 PM
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/chiwasli/****/aboutus.php:1) in /home/chiwasli/****/include/includes.php on line 18

i get that T-T

EDIT: Sorry, it has problems only with UTF-8 encoding, used ANSI and it worked! =D