Admin CP - parsing id like user-end threads?

Status
Not open for further replies.

SNN_imported

OMG Member
Joined
Oct 7, 2010
Messages
19
Does anyone happen to know how to use something like the threads/somethinghere.id/ in the admincp? I am struggling to figure it out, it's slightly annoying.

Whoever can figure this out, you sir are winrar. :P
Thanks
 

SNN_imported

OMG Member
Joined
Oct 7, 2010
Messages
19
I've got a semi ghetto way for now..
I'm splitting (or technically, exploding) at the character, "." - and putting that as the minor section. accessing it as such: $this->_routeMatch->getMinorSection()
 

Floris

I'm just me :) Hi.
Staff member
Joined
Jan 1, 2001
Messages
60,100
I gave this question a tweet request :) Hopefully someone has more details for you.
 

Cezz

OMG Member
Joined
Sep 24, 2010
Messages
581
I've got a semi ghetto way for now..
I'm splitting (or technically, exploding) at the character, "." - and putting that as the minor section. accessing it as such: $this->_routeMatch->getMinorSection()

I take it this is when creating an custom admin area, you want to be able to build the URL with both a string and an ID?

I can't access my files ATM (internet issues) but it is down to the function you use in the Route Class... there is one to build with string and another to build with Integer... you need the second... then to grab the ID you need to do $id = $this->_input->filterSingle('idnameinarray',XenForo_Input::UINT);

AGAIN THIS IS OFF MEMORY SO WILL NOT BE CHAR PERFECT.
 
Status
Not open for further replies.
Top