integrating Cakephp with Informix database - database

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/

Related

CakePHP 3 - Where is custom datasource?

I have a large number of CakePHP 2 web applications, many of them use remote data over the custom DataSource. I'm reading the documentation of CakePHP 3, but I can not find instructions for creating custom datesource.
My next project also requires a custom DataSource (ArangoDB), so I planned to build it with the new version of CakePHP.
Please do specify where and how to build a DataSource in CakePHP 3.
Thank You.
Just look at the code of any existing database driver and see how it is built? There is nothing in the book yet about how to create your own datasource.
ArangoDB seems to be yet another NoSQL DB, so take a look at how this Elastic Search datasource is done. By a quick look I think you can use it as a base for your implemention, they seem to be similar.
I was facing the same problem so I decided to write my own models in CakePHP 3.x. If you want you can use it from here. hope you like it.

CodeIgniter Multi-site Setup

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

WordPress database plugin for own data

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/

db documentation

hi is there a good data dictionary tool out there for a db2 database on linux or mac.
Could only find some win apps.
maybe something wiki like or html generator.
Thanks
druid druid.sourceforge.net is what i was looking for
I assume you want a tool to create some documentation (data model etc.) for a db2 database and not the db2 documentation?
If so these two questions should help:
DB sketcher for MacOS?
https://stackoverflow.com/questions/30474/database-schema-diagram-design-tool
If you're after something that will create a "data dictionary"-type document (list and description of tables and columns) then you're right, the best ones I know of (ERWin, ERStudio) are Windows only.

Laravel 5 Writing Custom Database Driver

I'm working on project and need to implement custom database driver, but can't find any guidelines which interfaces i should to implement.
Is there any resourses available that could help writing custom driver rather thank just diving in code and trying to figure out how current drivers are implemented?
EDIT
By saying "driver" i mean support for example NoSQL dabase using standart Laravel's methods ( Eloquent model and Query builder ), for example:
User::take(10)->get();
For Mysql Laravel uses eloquent
laravel - eloquent
For NoSql like MongoDB, you can use laravel-mongodb
jenssegers - laravel-mongodb
It's even support Hybrid relations between MySql and MongoDB
I have worked on MongoDB (a NoSQL database) in one of my project, where I have to use a jenssengers package https://github.com/jenssegers/laravel-mongodb to use the functionalities. I was not able to use Eloquent in that.
Laravel - eloquent/ jenssegers - Laravel-MongoDB can manage hybrid relations as well.

Resources