<div id="app-6">
<p>{{ message }}</p>
<input v-model="message">
</div>
<script type="javascript">
var app6 = new Vue({
el: '#app-6',
data: {
message: 'Hello Vue!'
}
})
</script>
class B {
public function method2(){
return $this->val + 1;
}
}
class A extends B {
public $val = 10;
public function method1(){
return $this->method2();
}
}
$a = new A();
echo $a->method1();