English 中文(简体)
如何使用Moduls在燃料中的资产
原标题:How to use Assets in Moduls in fuelphp
  • 时间:2012-01-13 10:59:43
  •  标签:
  • fuelphp

I created one view called myview.php in my modul(Named adminpanel) path(adminpanelviewsmyview.php) in that I use following code but Assets are not load

    <?php 
        use FuelCoreAsset;
        use FuelCoreSession;  
    ?>

<html>
<head><title>Admin Panel</title>

    <?php Asset::js(array( jquery.js , test.js ));?>

</head>
<body>

    <?php  echo Session::get( my );?>

<input type="button" value="Call Designer Controller" >
</body>

here test.js and jquery.js are not work properly and I donot get any error in my browser

问题回答

Asset::js() returns the HTML required to load the assets as a string. If you don t ECHO it, nothing will happen.





相关问题
How do you work with a single ORM query result in FuelPHP?

I have a query that is returning a single result and I m wondering if there s a way to access the properties of that result without having to loop through it since I am limiting it to a single result. ...

Getting FuelPHP observers to use MySQL datetimes

I was trying to get the FuelPHP ORM Observers to use MySQL datetimes rather than unix timestamps, however I can t figure out how to use the code provided in the docs. They provide this code: Orm...

OOP used in FuelPHP

I m trying to undestand how FuelPHP was written.. And since I don t know OOP much, I m puzzled when this class: https://github.com/fuel/core/blob/master/classes/date.php Here are methods that I don t ...

FuelPHP - Agent::is_mobile() memory inquiry

I been testing is_mobile(): if (Agent::is_mobile()) { $content = View::factory( mobileviewname ); } else { $content = View::factory( standardviewname ); } PHP profiler reports it taking up ...

FuelPHP Assets in subfolders

Is it possible to use Assets to include files that are in sub folders? Example: [base_url] /assets/css/pepper-grinder/jquery-ui-1.8.11.custom.min.css

identity conditional "===" , performance, and conversion

I ve always came away from stackoverflow answers and any reading I ve done that "===" is superior to "==" because uses a more strict comparison, and you do not waste resources converting value types ...

Fuelphp Asset:: error

Just testing out Fuelphp.. was wondering if anyone is aware of the issue with Asset:: call I implemented it in a template and got an error ( error view : url ) thanks ps: I guess i need to set Asset:...

How do I insert a NULL value in FUEL / ActiveRecord

Brief forward: I tried to ask this on the FUEL forums, but every time I try and register, their forum says "Failed sending activation email" and I can t log in or reset my account. So hopefully folks ...

热门标签