Active
Project:
Spaces
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 Oct 2012 at 21:34 UTC
Updated:
4 Oct 2012 at 21:34 UTC
AP.txt states:
You can retrieve the active space later in the page load at any point:
// Retrieve the active space, and use it to set the page title.
$space = spaces_get_space();
// Check that the current user can view the spaces_blog feature for this
// space
$space->access_feature('view', 'space_blog');
I get this error in my logs
PHP Fatal error: Call to a member function access_feature() on a non-object
Am I supposed to the load the space in order to access the functions?