possible to have a global file folder model multiple site? |
[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"; 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-16-2011, 08:12 AM
possible to have a global file folder model multiple site? - by El Forum - 02-16-2011, 11:51 AM
possible to have a global file folder model multiple site? - by El Forum - 02-16-2011, 12:45 PM
possible to have a global file folder model multiple site? - by El Forum - 02-16-2011, 05:13 PM
possible to have a global file folder model multiple site? - by El Forum - 02-16-2011, 06:46 PM
possible to have a global file folder model multiple site? - by El Forum - 02-17-2011, 04:42 AM
possible to have a global file folder model multiple site? - by El Forum - 02-18-2011, 04:42 AM
possible to have a global file folder model multiple site? - by El Forum - 02-21-2011, 05:32 AM
|