Thinkphp topic management background code: & nbsp; $ this-& gt; mokuai ('mokuai', digital number of the category); & nbsp; & nbsp; if (isset ($ thinkphp topic Management)
Background code:
$ This-> mokuai ('mokuai', digital number of the category );
If (isset ($ _ GET ['lawid']) {
$ This-> mokuaixi ('mokuai', $ _ GET ['lawid']);
}
// Self-encapsulated method
Function mokuai ($ chart = '', $ pid = ''){
$ User = D ($ chart );
$ List = $ user-> where ("products_category =". $ pid. "")-> select ();
// ThumbRemoveOrigin
$ This-> assign ("mokuai", $ list );
}
Function mokuaixi ($ chart = '', $ pid = ''){
$ User = D ($ chart );
$ List = $ user-> where ("products_id =". $ pid. "")-> select ();
// ThumbRemoveOrigin
$ This-> assign ("mokuaixi", $ list );
}
Front-end display
Navigation bar:
{$ Vo. products_name}
Content corresponding to the navigation bar
{$ Vo. products_name} Release date: {$ vo. products_uptime}
{$ Vo. products_content}