LFT
  • Namespace
  • Class
  • Tree

Namespaces

  • Docoflow
    • Contracts
    • Entity
    • Facades
    • Models
    • Traits
  • Docolight
    • Agno
      • Traits
    • Container
    • Http
      • Contracts
    • Rest
      • Handler
      • Http
    • Support
      • Debug
      • Traits
  • Docotory
    • Traits
  • None

Traits

  • HasAssetsUrl
  • HasAutoload

Trait HasAssetsUrl

A trait to manage your asset url. This one is tested only in Module. You can implement this trait to your module.

Direct Known Users

Docolight\Agno\AgnoModule

Namespace: Docolight\Agno\Traits
Author: Krisan Alfa Timur krisanalfa@docotel.co.id
Located at Docolight/Agno/Traits/HasAssetsUrl.php

Methods summary

public string
# asset( string $pathToFile = '', boolean $forceCopy = false )

Get absolute path of published assets

Get absolute path of published assets

Parameters

$pathToFile

Path to asset file you want to return. If no argument was supplied, then it will return the root path of asset.

$forceCopy
Whether we should copy the asset file or directory even if it is already

Returns

string

Properties summary

public string $assetPath
# 'asset'
protected string $assetsUrl

A javascript API url for assets

A javascript API url for assets

#
LFT API documentation generated by ApiGen