Symphony Frontend

public class Frontend extends Symphony

class.frontend.php #12

The Frontend class is the renderer that is used to display FrontendPage's. A FrontendPage is one that is setup in Symphony and it's output is generated by using XML and XSLT

Methods

static FrontendPage Page()

Accessor for $_page

string display(string $page)

Called by index.php, this function is responsible for rendering the current page on the Frontend. One delegate is fired, FrontendInitialised

Uses
  • FrontendInitialised
Parameters
  • $page stringThe result of getCurrentPage, which returns the $_GET['symphony-page']

Returns

The HTML of the page to return

See Also
static Frontend instance()

This function returns an instance of the Frontend class. It is the only way to create a new Frontend, as it implements the Singleton interface

static boolean isLoggedIn()

Overrides the Symphony isLoggedIn() function to allow Authors to become logged into the frontend when $_REQUEST['auth-token'] is present. This logs an Author in using the loginFromToken function. This function allows the use of 'admin' type pages, where a Frontend page requires that the viewer be a Symphony Author

See Also

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details