The world of web technology is ever growing. So to ease the process and to help the developers, lots of built in tools are found on the internet. People nowadays donot want to write codes from scratch. Today i am going to focus on two most popular web technology, the wordpress and the codeignitor.
wordpress was originally evolved as a blogging engine. A blog is like a diary where you share your experience, views etc. But with time, wordpress has grown up very much and now almost every kind of site could be made by wordpress. Lets be some technical. This work was eased by lots of hackers and genious round the world who dig into wp code and modified it according to their need. Now what we have to focus is that we could make static pages, define categories, sub-categories etc to the posts. The core wordpress codes should not be touched. There is a separate entity called themes which calls the core functions provided by the core engine of wordpress and displays the required contents and menus by calling the functions of wordpress.
On the other hand, codeIgniter is a framework for php, which is made to ease the development process of a site. It has basic MVC approach. What this mean in simple language is that, there are three basic folder inside the application folder of ci. "model","views","controllers".The model is the folder where you define class to store and fetch data from the database. The views is the folder where you define your view files to display the contents, and the controller is the main intermediate section where you define controllers to process or fetch data from the model and pass to the views.
Now lets focus on the main point what we are here for. It will be difficult to built any kind of site with wordpress because you donot have full control over the core-engine of wordpress. So it will be easy if you only need the basic functionality provided by wordpress, but if want to extend your functionality, say include a form and process it and then store it the way you want before reaching to other page etc, lots of readings and research has to be done.
The problem with codeigniter is that you have to do the full coding, and it could take days. Even if that, You might not have full knowledge of what things are to be taken care of while handling the datas, and there are lots of chances of being hacked etc.
So what we could do is, combine the built in approach and functionality of wordpress and codeignitor. This way, we could have full control of our site with the front end of codeignitor and the back end of wordpress helps to store datas in a grouped form so that required data could be fetched easily. This really make the work easy.
Lets move to the process of integrating the two. Simply install your wordpress in a folder called 'wp' and get the database working. Then rename the basic 'index.php' file of wp to 'index1.php'.
Then move all the files and folder of your codeigniter folder into the folder you installed wordpress. This should also include the index.php file of codeignitor to be present in the same directory where your 'index1.php' file lies. Now open the index.php file and you will find a require or include function in that file towards the end. Place this code right above that call
require_once('wp-blog-header.php');
Now go to the default controller and make another function
public function wordpress(){
get_header();
}
Now try typing this url
http://localhost/wp/index.php/wordpress
if you see the headerfile of wordpress, Congratulations, its working.
(Please comment and let me know if your worked, and there are lots of other techniques that can help you, so i will be writing them out if i know people are reading this blog, do subscribe.)
this is the thing i wanted
ReplyDeletei mean
ReplyDeleteread more
ok I will try
ReplyDeleteok I will try
ReplyDeleteNext you will need to get hosting for your website. I would recommend something from Godaddy or 1and1 because they have good customer service and give you a free domain or free hosting with the purchase of one or the other. https://edkentmedia.com/website-design-toronto
ReplyDeleteMajority each company has their own after sales support center. Customer service is the backbone of any online or offline enterprise. The majority of the companies consider their contracted and temporary workers, their customers as their internal team members, and most.
ReplyDeletehttps://servicecenterguru.com
Ensure that under 'database for user' the option 'Grant all privileges on database "wordpress_db"' is selected and then click 'Go' down at the bottom right.etikečių gamyba
ReplyDeleteI just got to this amazing site not long ago. I was actually captured with the piece of resources you have got here. Big thumbs up for making such wonderful blog page! Wordpress webshop laten maken
ReplyDeleteHiya! Fantastic blog! I happen to be a daily visitor to your site (somewhat more like addict ) of this website. Just wanted to say I appreciate your blogs and am looking forward for more to come! ny web design firms
ReplyDeleteI do not even know how I finished up right here, however I believed this publish was good. I do not realize who you’re but certainly you are going to a well-known blogger when you are not already Cheers! new york web design company
ReplyDeleteIn case you are intrigued in environmental situations, to as wonder the criminals to be aware that to manufacture just one bag with this particular style hydration brings reasoning better liters akin to oil and gas to come up with. daily deal livingsocial discount baltimore washington branding agency sf
ReplyDeleteA very stylistic way of writing, creating effects especially in language and literature.
ReplyDeleteItalian
Thanks for all your valuable labor on this website. Gloria delights in getting into investigations and it’s obvious why. Most people hear all concerning the dynamic method you present powerful guidelines on this website and as well boost response from other individuals on the subject matter so our own daughter is truly studying a lot of things. Take pleasure in the remaining portion of the new year. You’re the one carrying out a splendid job. interface design agency san francisco
ReplyDeleteI am lucky that I discovered this web site, just the right info that I was looking for! interface design agency san francisco
ReplyDeleteI loved as much as you will receive carried out right here. The sketch is tasteful, your authored subject matter stylish. nonetheless, you command get got an nervousness over that you wish be delivering the following. unwell unquestionably come more formerly again as exactly the same nearly very often inside case you shield this hike. ipad psd
ReplyDeleteGood to become visiting your weblog again, it has been months for me. Nicely this article that i've been waited for so long. I will need this post to total my assignment in the college, and it has exact same topic together with your write-up. Thanks, good share. Unexpected response from the server
ReplyDeleteYour blog provided us with valuable information to work with. Each & every tips of your post are awesome. Thanks a lot for sharing. Keep blogging.. usa verified paypal account
ReplyDelete