Using external js with .php extension in Codeigniter [closed]
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center . I am using codeigniter 2 and I have my theme folder consist of js , img , css folders. Inside js folder, file name is js_functions.php contains: <?php header("Content-type: text/javascript"); ?> /** * GLOBAL VARIABLES & PATHS * * path definitions for jquery inline usage * */