JApplicationCms::getInstance

Returns a reference to the global JApplicationCms object, only creating it if it doesn't already exist.

This method must be invoked as: $web = JApplicationCms::getInstance();