Cuppa Documentation

Find information related with: installation, user interface, best practices, improve and extend de functionalities, front-end integration and more.
General methods

$cuppa->setPath( $path = null, $name = "administrator" )

$cuppa->setPath('', 'site'); // set path reference with the current folder project, example: http://domain.com/site/

$cuppa->getPath($name = "administrator" )

$site_path = $cuppa->getPath('site'); // get the path with the specific name

$cuppa->setDocumentPath($document_path = "", $name = "administrator" )

$cuppa->setDocumentPath('', 'site'); // set the document path just the current speci

getDocumentPath( $name = "administrator" )

$site_document = $cuppa->getDocumentPath('site');  // get the path with the specific name

$cuppa->setSessionVar($name, $value) ; // set a session value

$cuppa->getSessionVar($name); // get a session value

All sessions vars is saved in a  cuSession stdClass Object to avoid the conflict with another frameworks.. you can check your structure with the next line. 

print_r($_SESSION['cuSession']);

$cuppa->echoString($string, $special = true, $document_root = '' )

    • This method have some secure characteristic to avoid secure holes.
    • Have automatic conversion to print correctly the images inside a rich HTML content administrated by Back-end, adding the administrator folder automatically to the URLS. Example: administrator/media/files/img.jpg to administrator/administrator/media/files/img.jpg
    • In Cuppa CMS is possible include PHP files with the tag , to add forms, components or personals developments inside TextArea fields.

$cuppa->GET($string )$cuppa->POST($string )$cuppa->REQUEST($string )

Replace the normal method to increment secure holes on your project.

$cuppa->administratorFolder()

Get a string reference of the administrator folder name.