ZenMagick 0.9.10


zenmagick.store.sf.mvc.utils\ViewUtils
mvc\utils\ViewUtils.php at line 29

Class ViewUtils

ZMObject
└─ZMViewUtils
└─ViewUtils

public class ViewUtils
extends ZMViewUtils

View utils.

Author:
DerManoMann

Method Summary
void

__construct(ZMView view)

Create new instance.

string

resolveResource(string filename, ZMView view)

{@inheritDoc}

Methods inherited from org.zenmagick.mvc.utils\ZMViewUtils
__construct, cssFile, getResourceContents, getView, handleResourceGroup, jsFile, resolveResource
Methods inherited from org.zenmagick.core\ZMObject
__construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton

Method Detail

mvc\utils\ViewUtils.php at line 36

__construct

public void __construct(ZMView view)

Create new instance.

Parameters:
view - The current view.

mvc\utils\ViewUtils.php at line 51

resolveResource

public string resolveResource(string filename, ZMView view)

Resolve resource path.

This default implementation does nothing but return the result of: $view->asUrl($request, $filename, ZMView::RESOURCE);.

Parameters:
filename - The (relative) path to the resource.
view - The current view.
Returns:
The resolved final URL.

ZenMagick 0.9.10