CakePHP-2.0 имеет это =>
// Even in your cakephp 2.1.x we have this format
<?php
class PostsController extends AppController {
public $helpers = array ('Html','Form');
public $name = 'Posts';
public function index() {
$this->set('posts', $this->Post->find('all'));
}
}
?>
CakePHP-1.3.10 имел это =>
<?php
class PostsController extends AppController {
var $helpers = array ('Html','Form');
var $name = 'Posts';
function index() {
$this->set('posts', $this->Post->find('all'));
}
}
?>
В чем разница между использованием public и использованием var?