Jquery.php ? Where's the JavaScript file ? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=11) +--- Thread: Jquery.php ? Where's the JavaScript file ? (/showthread.php?tid=86077) |
Jquery.php ? Where's the JavaScript file ? - anjanesh - 01-06-2023 I just downloaded CI 3 - I can there's a system/libraries/Javascript/Jquery.php - why this a PHP file ? Where is jquery.min.js file ? RE: Jquery.php ? Where's the JavaScript file ? - superior - 01-08-2023 You should provide the directory to this file See: https://github.com/bcit-ci/CodeIgniter/blob/3.1-stable/system/libraries/Javascript/Jquery.php#L52 And: https://www.codeigniter.com/userguide3/libraries/javascript.html#set-the-path-to-the-librarys-with-config-items RE: Jquery.php ? Where's the JavaScript file ? - anjanesh - 01-08-2023 I did `php -S localhost:8000` - now how do I see the jQuery JS file in the browser like http://localhost:8000/themes/js/jquery/jquery.js But why does there exists PHP functions like `protected function _animate` outouting jQuery code ? Code: return "$({$element}).animate({\n$animations\n\t\t}".$speed.$extra.');'; I got the answer from here - https://armantutorial.wordpress.com/2019/01/30/how-to-use-javascript-and-jquery-in-codeigniter/ - but I don't get why there aren't any JavaScript files pre-loaded into CI3 ? |