protected function perPage()
    {
        // If the user specified a limit, use it
        if ($this->take) {
            return $this->take;
        }

        // If a sidebar, use the default
        if ($this->layout == 'sidebar') {
            $name = $this->controller_name;

            return $name::$per_sidebar;
        }

        // Else, use the controller's pagination logic
        return $this->controller->perPage();
    }