Hi!
I have two php page and relative template.ss
ArticlePage.php
ArticlePage.ss
HomePage.php
HomePage.ss
I want create in my HomePage.ss a box ( div a) and put here ArticlePage.ss (div b). so I want put inside div a, my div b (here I have the result of a function). I use renderWith() function but I see nothing..help please to correct code..
class ArticlePage extends Page {
public static $db = array();
public static $has_one = array();
}
class ArticlePage_Controller extends Page_Controller {
function ArticleList() {
require_once('function.php');
$_return_article=articlePhp();
return $_return_article;}
}
ArticlePage.ss
<div class="b">$ArticleList</div>
HomePage.php
class HomePage extends Page {
public static $db = array();
public static $has_one = array();
}
class HomePage_Controller extends Page_Controller {
function ShowArticleTemplateList() {
return $this->renderWith('ArticlePage');}
}
HomePage.ss
<div class="a">$ShowArticleTemplateList</div>