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

include javascript calls

hi, I am trying to create my layout file I need to initialize the tooltip javascript, in the layout file how can I do that , means I know how to include the javascript file like below

{{javascript_include('/js/myscripts.js')}}

but what if I need to write the following

<script type="text/javascript">
        /*<![CDATA[*/
        var type="easyTooltip";     
        if(type=== ""){     
            var type="";            
        }       
        /*]]>*/     
    </script>

how can I acomplish this thing inside a layout file regards, Omer Aslam

Maybe I'm misunderstanding - but couldn't you just put the desired text right into your Volt file?