<?php ${'controller.action'}=array('controller.action'=>'vm.f1','template'=>FALSE);
include_once($_SERVER['DOCUMENT_ROOT']."/gate.php"); ?>
<?php var_dump($RESPONSE); ?>
<html>
<head>
<title> Welcome To special Blog</title>
</head>
<body>
<p>Welcome to Thule Framework!</p>
</body>
</html>
<?php ${'controller.action'}=array('controller.action'=>'vm.f1','template'=>TRUE);
include_once($_SERVER['DOCUMENT_ROOT']."/gate.php"); ?>
<{debug}> // this is an option for debugging.
<{$vm.variables }>
<html>
<head>
<title> <{$vm.title}> </title>
</head>
<body>
<p>Hello <{$vm.thulename}>!</p>
</body>
</html>
<html>
<head>
<title> <?php echo $title; ?> </title>
</head>
<body>
<p>Hello <?php echo $thulename; ?>!</p>
</body>
</html>
<html>
<head>
<title> <{ $title; }> </title>
</head>
<body>
<p>Hello <{ $thulename; }>!</p>
</body>
</html>
<?php echo $Frontend->load("controller.action"); ?>
<html>
<head>
<title> <?php echo $title; ?> </title>
</head>
<body>
<p>Hello <?php echo $thulename; ?>!</p>
</body>
</html>
global $FrontendDispatcher;
$FrontendDispatcher="FE";
new Thule_ViewDispatcher(${'controller.action'});
in views
<?php echo $FE->debug(); ?>
<?php echo $Frontend->debug();?>
<?php echo $Frontend->debug('include/debugpopup.html');?>
<?php echo $Frontend->paging($PAGING["VM"]); ?>
//css include
$config['frontend_css_file']="include/css.php";
//css path
$config['frontend_css_path']="css";
<?php echo $Frontend->css('css'); ?>
<?php echo $Frontend->css(array('css','css1',,)); ?>
default css html file : include/css.php
default css path : /css
<?php echo $Frontend->css(array('css','css1',,),'css1','include/css1.php'); ?>
css html file : include/css1.php
css path : /css1
//javascript path
$config['frontend_javascript_path']="js";
//javascript include
$config['frontend_javascript_file']="include/javascript.php";
<?php echo $Frontend->javascript('javascript'); ?>
<?php echo $Frontend->javascript(array('javascript','javacript1',,,)); ?>
default javascript html file : include/javascript.php
default javascript path : /js
<?php echo $Frontend->javascript(array('javascript','javacript1',,,),'js1','include/javascript1.php'); ?>
default javascript html file : include/javascript1.php
default javascript path : /js1
<?php echo $Frontend->highlight("hello thule, this is thule im thulerealythulebyebye","thule"); ?>
<?php echo $Frontend->highlight("hello thule, this is thule im thulerealythulebyebye","thule",array('st'=>'<b>','et'=>'</b>')); ?>
//calendar design
$config['frontend_calendar_file']="include/calendar.html";
<?php echo $Frontend->calendar(8,2008);?>
<?php echo $Frontend->calendar(8,2008,"include/calendar1.html");?>
<?php echo $Frontend->calendar();?>
<?php echo $Frontend->charset();?>
//<meta http-equiv="Content-type" content="text/html" charset="utf-8" />
<?php echo $Frontend->calendar('ISO-xxx');?>
//<meta http-equiv="Content-type" content="text/html" charset="ISO-xxx" />
<?php $Frontend->load("Controller.Action");?>
or
<?php $Frontend->load(array("Controller.Action","controller1.Action");?>
<?php $Frontend->loadHelper("text");?>
<?php $Frontend->redirect($url);?>
// http://domain/forum/post/xx
<?php $navigator=$Frontend->navigator()?>
$navigator="fourm"
<?php $navigator=$Frontend->navigator(1)?>
$navigator="post"
This include function is very useful to include the view file in view. The root path will be views root path so if you want to have "/views/member/m.php" you need to call like below.
The extension ".php" already predefined in configure doesn't need to put.
$Frontend->inc("member/m");
This feature will be best feature to create view file repeatedly should include header and footer
If you want to use the layout , you can call like below and it must be FRONT OF ANY LOAD FUNTCION.
This means you call the default layout defined in configure which is "layouts/layout.php"
$Frontend->layout();
If you want to make your own layout, you can call like below except the extension.
$Frontend->layout("your-own-layout");
Sometimes you should pass the value to action in view files.
$Frontend->load(array("controller.action"=>"pass-this-value");