I’m trying to use WordPress functions with php, and i’m having some troubles..
the error message says:
Call to undefined method stdClass::set_prefix() in /hd2/www/WWW_BACKUP/www-lalala/blog/wp-settings.php on line 287
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’m not sure why you would want to integrate the two, as WordPress is not a development framework. I am making a BIG assumption that you really want to just have it in the same ‘directory’ and be able to utilize the same database?
I’ve seen that done before, and it involves simply sharing config files for your database (include wordpress config inside codeigniter, etc).
Just stick CI inside a folder inside your WordPress directory:
Then you would just duck inside the
/cifolder for CI functionality and redirect back to WordPress after.As far as integrating with merge of CODE (ie, wordpress with CI running inside of it or vice versa) that is pointless and most would argue a waste of time.
WordPress already offers most of the features you would want to build in CI (session tracking / database active querying / basic CRUD functionality / user management).
If all you seek is to utilize some small ‘functions’ in WordPress that you get in CI, I would say focus on porting those alone.
Nothing good can come of you merging two applications together like this.