CodeIgniter Forums

Full Version: meta data and CCS/JS
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

can anyone tell me how to add meta description and meta keywords dynamically? I used the layout method so a single header and single footer.

also can I add CSS file and JS file dymanically? 

thank you so much

await your reply

Jeewaka
You can try my library https://github.com/mjamilasfihani/BHPGenerator

I made it based on CI 4.0.4
Sorry for bad documentation

It'll give you 3 option, set the assets (css, js, meta or your css/js script) that will be used for global configuration or add local assets (in controller) but not replace the global configuration or add local assets that replace the global configuration

Just try to experiment with it, hope it usefull for you Smile
(11-16-2020, 11:26 PM)mjamilasfihani Wrote: [ -> ]You can try my library https://github.com/mjamilasfihani/BHPGenerator

I made it based on CI 4.0.4
Sorry for bad documentation

It'll give you 3 option, set the assets (css, js, meta or your css/js script) that will be used for global configuration or add local assets (in controller) but not replace the global configuration or add local assets that replace the global configuration

Just try to experiment with it, hope it usefull for you Smile

Thank you so much
will try