When viewing a page the id can be got from $theme->item()->id though if the page has no item then this will error so you should check that $theme->item() exists first.
Though I suspect you are changing some of the event methods? In which case $theme might not be available?
Cheers Ben, I'll check that out! Been working some tutorials on the Kohana framework. It's a different approach to programming than I am used too but one I'd like to learn. Thanks for the advice!
Posts: 225
Hi james
When viewing a page the id can be got from $theme->item()->id though if the page has no item then this will error so you should check that $theme->item() exists first.
Though I suspect you are changing some of the event methods? In which case $theme might not be available?
Ben
Benjamin Albert Smith - Photography
Posts: 2
Cheers Ben, I'll check that out! Been working some tutorials on the Kohana framework. It's a different approach to programming than I am used too but one I'd like to learn. Thanks for the advice!