Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Changing database based on login parameter
Post: RE: Changing database based on login parameter

PaulD Wrote: (06-22-2015, 05:46 PM) -- hmm. Thats really interesting. Can I ask why you need to create a database for each company? And how do you create the databases on the fly? Or are you manually...
14,346 Views
7 Replies
06-24-2015, 10:23 AM
dutchlab
    Thread: Changing database based on login parameter
Post: RE: Changing database based on login parameter

This is how I have solved my issue. This allows me to set the database based on session value. set session in auto load. In database.php $ci = get_instance(); if (!isset($ci->session->use...
14,346 Views
7 Replies
06-18-2015, 10:43 AM
dutchlab
    Thread: Changing database based on login parameter
Post: RE: Changing database based on login parameter

CroNiX Wrote: (06-17-2015, 03:58 PM) -- Yeah that won't work in a config file, which gets loaded early on in the bootstrap process before CI has finished instantiating all classes used for the reques...
14,346 Views
7 Replies
06-17-2015, 04:02 PM
dutchlab
    Thread: Changing database based on login parameter
Post: Changing database based on login parameter

I have searched for a resolution to changing the database name based on a log in parameter and have found that it is not simple. My thought was to create a if statement in the database.php that looks...
14,346 Views
7 Replies
06-17-2015, 01:52 PM
dutchlab
    Thread: Illegal string offset error when returning one row with where clause
Post: Illegal string offset error when returning one row...

I followed the tutorial about News items and have a question as to why the error 'Illegal string offset' happens in the foreach on the view when you pass a value from the controller to the model so...
6,929 Views
1 Replies
06-11-2015, 10:57 AM
dutchlab
    Thread: Removing Index.php on OSX Yosemite
Post: Removing Index.php on OSX Yosemite

CodeIgniter newbie here. I am trying to get the index.php file removed from the url. Here what I have done so far. I have created an .htaccess file in the root at the same level as application a...
6,168 Views
2 Replies
06-10-2015, 10:03 AM
dutchlab

Theme © iAndrew 2016 - Forum software by © MyBB