Welcome Guest, Not a member yet? Register   Sign In
possible to have a global file folder model multiple site?
#8

[eluser]Spectruman[/eluser]
[quote author="Spectruman" date="1298047333"][quote author="Spectruman" date="1297960977"][quote author="rlindauer" date="1297925191"]You have a directory for the shared model, then you would just create a symlink to those shared files in your applications model directory.

For example your shared model directory is under /home, say: /home/shared/models/my_model.php

Then in your application directory, you create a symlink to that file. Say your app directory is at /var/www/html/application

You'd do this:
Code:
ln -s /home/shared/models/my_model.php /var/www/html/application/models/my_model.php

Now codeigniter will see that model file in your model directory.

Symlinks = http://ss64.com/bash/symlink.html[/quote]

assuming that I can not make a symbolic link by limitations of web hosting. Have a way to put this by the framework this global model include or variable constate call php?

as is done in core ci could do something similar or has other means more accurate
Code:
$system_path = "../ci_core";
$model_path_global = "../model";
[/quote]

HELP!!
nobody can help?[/quote]

Anyone have a good idea or solution to the case.


Messages In This Thread
possible to have a global file folder model multiple site? - by El Forum - 02-21-2011, 05:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB