Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- # http://stackoverflow.com/questions/11111170/the-concept-of-an-object-variable-in-typoscript
- class Menu {
- public $pid;
- function render() {
- // code to render the menu
- }
- }
- $page = new Page();
- $menu = new Menu();
- $menu->pid = 2345;
- $page->add($menu); // adds a list of subpages from 2345 to the page
- $menu->pid = 3456;
- $page->add($menu);
- echo $page->display();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement