3.5.2.1 $name
Uživatelé PHP4 by měli začít definici controlleru použitím atributu $name. Tento atribut nastavuje jméno controlleru. Obvykle je to množné číslo primárního modelu který controller spravuje.
<?php
# $name controller attribute usage example
class RecipesController extends AppController {
var $name = 'Recipes';
}
?>
<?php# $name controller attribute usage exampleclass RecipesController extends AppController {var $name = 'Recipes';}?>
See comments for this section
