I am trying to create multi-site platform using codeigniter.
Requirements are:
- Same Codebase.
- Same Database.
Just wanted to know how to achieve multi-site platform if we use same database/codebase?
Is there any way we can create separate tables for each new site i.e wordpress multisite?
Thanks a lot.
For separate sites you have to create separate directories, and set paths accordingly
eg.
application/contollers/site1/index.php
application/contollers/site2/index.php
Same for views and models
For database you can use prefix,
eg: if u are creating same site in different languages
eng_title
arabic_title
eng_description
arabic_description or arb_description
and you can fetch your desired data with your query and condition.
CI tutorial would be helpful for your requirements, please check
Running Multiple Applications with one CodeIgniter Installation
Related
I have an old website with an old framework on PHP and mysql.
I want to migrate to wordpress.
I want to know if is possible or exist any plugin on wordpress that let me read data from mysql database and put them on page.
Other speaking, can I use the database and create pages dynamically with wordpress.
If yes please provide me a link contains a simple example to learn.
Appreciate in advance.
Shortly, it's possible to migrate website, which used some framework to wordpress cms. But there isn't any tools, which can do it for any framework type. Each website is differ with it's structure, pages, logics and goals.
For some cases there is plugins, extentions, which transfered the whole website from one framework to another.
But you should to know, that it can not be done 100% transfered without any losing.
Main migrate to wordpress is going so:
1.Compare databases and with sql commands insert into wodpress db information of posts/pages/users/products and etc., which will be inserted as it need wordpress to work with theme.
2.The second step is migrate static files to wordpress, such as html/css/js and make them work dinamically using wordpress functions, file structure and etc.
Please note, that if your framework have not many datas, it will be faster to just install new wordpress into server, find some theme, which will suit you, create posts/pages as you want and after it replace some information from old website
I have been tasked with the job of creating a CMS using Symfony 3, which will be offered to various different clients to update their websites. There is one installation for our own use, to control the clients' sites, logins etc. and then another installation which will be the client CMS itself. But it only needs to be a single installation in one place that can be accessed by all clients, via their own personal login.
This means, I would like each client to have their own content stored in a separate database, so essentially there would be one CMS location and installation but hooks up to multiple databases. The database that will be used would be dependent on the client that logs in. As far as they are concerned, it would be their own CMS, with their own data.
I cannot see an obvious way of being able to set this up in Symfony 3, as it uses the parameters.yml file to reference the database setup, and also, how would it know which database to use to persist and flush the content to when it's being saved?
Help on this would be much appreciated.
I think the documentation is crystal clear
http://symfony.com/doc/current/doctrine/multiple_entity_managers.html
I have an application and I want to use a table of Informix in my cakephp application. Is it possible?
I just want the users table of informix, the others tables i'll use mysql. Is it possible?
Thanks.
It can be done but it needs information about how you can access the data. Is it standardised like REST/SOAP or something? Or do you need hard database access?
In general in CakePHP you build a custom datasource for it: http://book.cakephp.org/2.0/en/models/datasources.html or you can work with behaviours which you attach to models.
There are some examples of this approach like this for REST:
http://www.neilcrookes.com/2010/06/01/rest-datasource-plugin-for-cakephp/
Here is the issue:
I have some methods in action in a Symfony project that are defined in WSDL.
I need a configuration where my ws can work on one of two data bases according to environment.
I tried defining different environments and even different applications.But they all insist to use the DB from the databases.yml under the config on the level of apps.
I really appreciate any help
In order to select the database connections dynamically you can use the same technique demonstrated in this slide
http://www.slideshare.net/kriswallsmith/symfony-in-the-cloud
I'm looking for a WordPress plugin to manage and store data (preferably in a separate database, or at least a separate table from the rest of WordPress ). Something along the lines of Caspio Bridge or Zoho Creator, but much simpler. I don't need to be able to do much with it (at the moment) - just import/export csv and search through it.
Whenever I try and search for anything to do with databases and WordPress all I get is information on it's database, so hoping someone here will have some suggestions!
I think this is what you are looking for:
Creating Tables with Plugins
http://codex.wordpress.org/Creating_Tables_with_Plugins
There is PHPMyadmin plugn for Wordpress here:
http://wordpress.org/extend/plugins/wp-phpmyadmin/
And the small Adminer plugin too:
http://wordpress.org/extend/plugins/adminer/