Add the photo controller, and tie it to the photo page in our theme.

Implement a real breadcrumb.
This commit is contained in:
Bharat Mediratta
2008-11-05 07:42:52 +00:00
parent 581e931c43
commit d21f3437e6
5 changed files with 48 additions and 8 deletions
+4 -2
View File
@@ -82,13 +82,15 @@ class ORM_MPTT_Core extends ORM {
}
/**
* Return all the parents of this node, in order from root to leaf.
* Return all the parents of this node, in order from root to this node's immediate parent.
*
* @return array ORM
*/
function parents() {
$id = (int)$this->id;
if (!isset($this->parents)) {
$this->parents = $this->where("`left` <= {$this->left}")
$this->parents = $this
->where("`left` <= {$this->left}")
->where("`right` >= {$this->right}")
->orderby("left", "ASC")
->find_all();