[eluser]Marcelo Kanzaki[/eluser]
[quote author="jedd" date="1237270428"]Do you get any output at all, or does it do that thing where it clears the screen and times out / blow the memory limit, without flushing the cache to screen at all?
If you can, I'd love to see what happens if you put a var_dump at the start of your function. Probably want to do a "<pre;>" thing first, of course.
Code:
function bread_crumb ($page_id, $crumbs = array())
{
// Find the page
$page = $this->find_by_id($page_id);
// debugging stuff
var_dump ($page_id);
var_dump ($page->page_parent_id);
echo "<hr>";
...
[/quote]
I did the var_dump test you suggested. I had 3 the following result:
Code:
string(1) "5" // page_id
string(1) "3" // page_parent_id
string(1) "3" // page_id
string(1) "1" // page_parent_id
string(1) "1" // page_id (at root level)
string(1) "0" // page_parent_id (has no parent)
but it didn't return any value;