We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

class not including in url_field()

Hi, my css class not loading in the volt syntax. my code is

{{ url_field("companyurl","class":'form-control') }}

this css class not loading in volt syntax. why? where as my php phalcon code does load the style.

<?php echo Phalcon\Tag::urlField(array("companyurl",'class'=>'form-control')); ?>

The tag for stylesheet should be styleSheetInclude:


    echo Phalcon\Tag::stylesheetLink("https://fonts.googleapis.com/css?family=Rosario", false);
    echo Phalcon\Tag::stylesheetLink("css/style.css");

    //volt
    {{ stylesheet_link("https://fonts.googleapis.com/css?family=Rosario", false) }}
    {{ stylesheet_link("css/style.css") }}