| 1 | <?php |
||
| 12 | class SiteMap_Controller extends Page_Controller |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * This function will return a unordered list of all pages on the site. |
||
| 16 | * Watch for the switch between $page and $child in the second line of the |
||
| 17 | * foreach(). |
||
| 18 | * |
||
| 19 | * Note that this will only skip ErrorPage's at the top/root level of the site. |
||
| 20 | * If you have an ErrorPage class somewhere else in the hierarchy, it will be |
||
| 21 | * displayed. |
||
| 22 | */ |
||
| 23 | 1 | public function SiteMap() |
|
| 31 | |||
| 32 | 1 | private function makeList($pages) |
|
| 55 | } |
||
| 56 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.