Welcome Guest, Not a member yet? Register   Sign In
Block access to models from loaded views
#1

[eluser]Brad Martin[/eluser]
Im creating an app that allows site templates to be added to the folder

Code:
./views/site/

The views will then be loaded from the application to display the site.

My problem is that i want to be able to block the views for being able to access any models by way of calling the following from the view itself

Code:
$this->load->model('modelName');

or

Code:
$this->modelName->action();

I want to do this so that i can controller what data they have access to for security purposes.

I do however still want them to be able to access all of the other functions within codeigniter just don't want them to be able to gain access to data.

Once I'm able to block out the models from being called i will create a helper functions for them to use that will permit access to only data i wish them to access.

Any help would be much appreciated. Thanks


Messages In This Thread
Block access to models from loaded views - by El Forum - 06-08-2012, 08:36 PM
Block access to models from loaded views - by El Forum - 06-08-2012, 09:46 PM
Block access to models from loaded views - by El Forum - 06-08-2012, 11:50 PM



Theme © iAndrew 2016 - Forum software by © MyBB