Before saving the blog, I want to process the and store the blog url. However, it misses a number from it e.g.:
$blog->getURL() returns:
http://localhost/blog/view/<missing number>/somequery
instead of:
http://localhost/blog/view/101/somequery
How can I get the correct url?
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- iionly@iionly
iionly - 0 likes
- bigdata2@bigdata2
bigdata2 - 0 likes
You must log in to post replies.The number is the unique entity guid that the entity gets when created/saved (in this case in the blog save action). You can't get this number before the blog is saved but only afterwards.
Got it. Thanks!