Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Home extends Controller {
- function set() {
- $this->output = "2";
- }
- }
- class Controller {
- function renderoutput() {
- echo $this->output;
- }
- }
- $class = new Home( );
- $class->renderoutput();
- ?>
Add Comment
Please, Sign In to add comment