Welcome Guest, Not a member yet? Register   Sign In
Can I run mysql query in constant.php file to make constant dynamic
#1

question could be funky, can I run mysql query into application/config/constant.php file to make constant dynamic or any proper way to make constant dynamic based on value coming from db.
Amjad Farooq,
Skype: shahgeb
cell: +923444553686
Reply
#2

@shaheb

https://www.codeigniter.com/user_guide/l...fig%20item

Look for the topic "Setting a Config Item"
Reply
#3

I just did something similar in routes for Open Blog.

Feel free to look/borrow code/try it out.

https://github.com/enlivenapp/Open-Blog-...209b394961
Reply




Theme © iAndrew 2016 - Forum software by © MyBB