najpierw przedstawie kod bo inaczej trudno to wyjaśnic.
<?php ?>
<?php function main_page($count_article,$title_arr,$article_text_arr,$article_arr,$h5_article_arr,$main_article_arr,$top_article,$bottom_article) { $this->body_top[1]="<div class=".$this->main_c().">"; // klasa modules $this->body_top[2]=modules_class::load_top($this->top,$this->class_top); $this->article($x,$title_arr[$x],$article_text_arr[$x],$article_arr[$x],$h5_article_arr[$x],$main_article_arr[$x],$top_article,$bottom_article); } $this->body_bottom=modules_class::load_bottom($this->bottom,$this->class_bottom); $this->body_bottom.="</div>"; return $this->count_article = $count_article; } function render() { } } ?>
Funkcja
z którą mam problem wyglada tak jest ona w innej klasie
<?php load_top($this->top,$this->class_top); ?>
function test(){ $c=""; $c.= "<form action="index.php">"; $c.= "<input type="text" name="t" />"; $c.= "<input type="submit" value="bum" />"; $c.= "</form>"; return $c; } function load_top($parametr,$klasa_css){ $w_funkcja=eval('?>' . $this->test() . '<? '); return $w_funkcja; }
No i tak wynik funkcji render() chodzi mi o początek powinien byc taki
<div class="jakas klasa>"
i potem zawartość funkcji load_top
Problem jest taki że funkcja load_top ląduje zawsze co bym nie robił przed zapisem
Chodzi mi tutaj o prezentacje wyników czy nawet zrobiłem tablice by kolejnosc ustalić ale to nic nie zmienia nie rozumiem tego.
<?php $this->body_top[1]="<div class=".$this->main_c().">"; ?>
Proszę o jakiekolwiek rady bo juz nie mam pomyslów na to.
Pozdrawiam Oskar.