clean.ctp is used everywhere, DashboardsController::view is only called when on dashboards/view, so you need to put it in AppController::beforeFilter, which is always called.