Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Aetherdan Posted November 1, 2018 Posted November 1, 2018 Im just trying to get my head around the namespaces and how to use them. How would I go about loading the post comment object? Am I close? $post = \IPS\Content\Item::load( pid ); pid is obviously being the post id. Also is there any documentation for seeking the namespace classes and what methods are available to each of them?
newbie LAC Posted November 1, 2018 Posted November 1, 2018 $post = \IPS\forums\Topic\Post::load(1); or try { $post = \IPS\forums\Topic\Post::loadAndCheckPerms(1); } catch (\Exception $e) { }
Recommended Posts
Archived
This topic is now archived and is closed to further replies.