Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Missing argument 1 for Fuel\Core\Asset::render()
  • I'm trying to use group css but face this problem:

    ErrorException [ Warning ]: Missing argument 1 for Fuel\Core\Asset::render(), called in /data/www/project/js/fuel/app/views/main/template.php on line 12 and defined

    and the function header showing:

    public static function render($group$raw false)

    According to the example in Docs, the first argument can be optional:
    // renders the default group
    echo Asset::render();

    So, which one is correct?
  • 1.5/develop has

    public static function render($group = null, $raw = false)
    so it should be optional. I ran a "blame" on asset.php, the optional value has been introduced on 2012-11-16. Which is after 1.4 was released, so it's in 1.5/develop.

    I assume it was corrected based on someone else discovering this, since the docs have been written over a year ago...

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion