Admin CP - parsing id like user-end threads?

Status
Not open for further replies.

SNN_imported

OMG Member
Oct 7, 2010
19
1
215
30
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
Oct 7, 2010
19
1
215
30
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()
 

Cezz

OMG Member
Sep 24, 2010
581
48
255
36
United Kingdom
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.
 
  • Like
Reactions: 1 person
Status
Not open for further replies.