1 | <?php |
||
8 | class PagesController extends AppController |
||
9 | { |
||
10 | |||
11 | /** |
||
12 | * Initialization hook method. |
||
13 | * |
||
14 | * @return void |
||
15 | */ |
||
16 | public function initialize() |
||
22 | |||
23 | /** |
||
24 | * Beforefilter. |
||
25 | * |
||
26 | * @param Event $event The beforeFilter event that was fired. |
||
27 | * |
||
28 | * @return void |
||
29 | */ |
||
30 | public function beforeFilter(Event $event) |
||
36 | |||
37 | /** |
||
38 | * Home page. |
||
39 | * |
||
40 | * @return void |
||
41 | */ |
||
42 | public function home() |
||
84 | |||
85 | /** |
||
86 | * The user accept the use of cookies. |
||
87 | * |
||
88 | * @throws \Cake\Network\Exception\NotFoundException When it's not an AJAX request. |
||
89 | * |
||
90 | * @return void |
||
91 | */ |
||
92 | public function acceptCookie() |
||
110 | |||
111 | /** |
||
112 | * Redirect to the referer. |
||
113 | * |
||
114 | * @return void |
||
115 | */ |
||
116 | public function lang() |
||
120 | |||
121 | /** |
||
122 | * Display the maintenance page or a 404 if the site isn't in maintenance. |
||
123 | * |
||
124 | * @return void |
||
125 | */ |
||
126 | public function maintenance() |
||
132 | |||
133 | /** |
||
134 | * Display the Terms page. |
||
135 | * |
||
136 | * @return void |
||
137 | */ |
||
138 | public function terms() |
||
141 | } |
||
142 |
Since your code implements the magic getter
_get
, this function will be called for any read access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.