but how about when they create a new post? The redirect needs to know the topicid, postid and page number… first two are simple but page number could be the page of the previous post or a new page.
(postCount is a relation in the topic model - ‘postCount’ => array(self::STAT, ‘Post’, ‘post_topic_id’))
Could not get getLastInsertID() to work for some reason. Wondered if there was a way to use one of the pager classes but the above is concise enough for me.