Skip to content

Instantly share code, notes, and snippets.

@joshuaziering
Created June 18, 2012 02:27
Show Gist options
  • Save joshuaziering/2946481 to your computer and use it in GitHub Desktop.
Save joshuaziering/2946481 to your computer and use it in GitHub Desktop.
Scope On A Loop
while($this->_get_parent($parent)>0){
$page = $this->_get_page($parent);
$uri = $page->page_uri.'/'.$uri;
$parent = $this->_get_parent($parent);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment