Example #1
0
 public function __construct()
 {
     $this->initPar();
     pathTo($this);
 }
Example #2
0
function pathTo($p, $cc)
{
    if ($p->parent) {
        return pathTo(ccid($p->parent, $cc), $cc) . '/' . strtolower(transliterate($p->category));
    } else {
        return strtolower(transliterate($p->category));
    }
}