RE: Shared Models in Different Modules
Hi to all!
I made one folder to all my models, and I appended the include_path with the path to this folder.
$models_path = APPLICATION_PATH ."My_Application/Model/";
// include $models_path to include_path somewhere
Then where ever in actions I might need some model I just make:
$model = new Page();
or something like that...
So these models are shared by all controllers & actions but not by all my different applications.
br,
Marko