Location: PHPKode > projects > Banshee PHP Framework > controllers/admin/photos.php
<?php
	class admin_photos_controller extends tablemanager_controller {
		protected $name = "Photo";
		protected $pathinfo_offset = 2;
		protected $back = "admin";
		protected $icon = "photos.png";
		protected $page_size = 25;
		protected $pagination_links = 7;
		protected $pagination_step = 1;
		protected $foreign_null = "---";

		public function execute() {
			if (($album_count = $this->model->count_albums()) === false) {
				$this->output->open_tag("tablemanager");
				$this->output->add_tag("name", $this->name);
				$this->output->add_tag("result", "Error counting albums");
				$this->output->close_tag();
			} else if ($album_count == 0) {
				$this->output->open_tag("tablemanager");
				$this->output->add_tag("name", $this->name);
				$this->output->add_tag("result", "No albums have been created. Click <a href=\"/admin/albums\">here</a> to create a new photo album.");
				$this->output->close_tag();
			} else {
				parent::execute();
			}
		}
	}
?>
Return current item: Banshee PHP Framework