Aetherdan Posted November 1, 2018 Share 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? Link to comment Share on other sites More sharing options...
newbie LAC Posted November 1, 2018 Share Posted November 1, 2018 $post = \IPS\forums\Topic\Post::load(1); or try { $post = \IPS\forums\Topic\Post::loadAndCheckPerms(1); } catch (\Exception $e) { } Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.