Skip to content
✌ Makis Tracend edited this page Jun 27, 2013 · 3 revisions

Here is a list of common methods created in the global namespace (referred to throughout KISSCMS). These methods live in app/helpers/common.php

url( $path, $cached )

Converts a path into a full URL using the site domain. If $cached=true (default: false) then the URL returned will be a CDN url, effectively returning the same link as cdn()

uri()

cdn( $path )

Converts a local path to a full URL using the CDN domain if set. if there is no cdn set then this method falls back to url()

attr( $name, $value )

Returns a string in the form of name="value" for generating new attributes in tags in the views. If $value is empty it returns nothing

Clone this wiki locally