Welcome Guest, Not a member yet? Register   Sign In
Create pages .php
#4

[eluser]bubbafoley[/eluser]
Quote:Condeigniter works MVC model-controller-view

From a controller I call one or more modules then a view and send the output.

I would like to create pages (true files) .php in the server, use them as “controllers” and use there models and views i have in my application/ directory

Your controllers have to go in application/controllers. That's where CI looks for them.

But it can be done with routes. You still have to save your controllers in the controllers directory but you can reroute anotherpage.php to run a controller.

Code:
$route['anotherpage.php'] = 'controller/method';


Messages In This Thread
Create pages .php - by El Forum - 04-15-2011, 10:10 AM
Create pages .php - by El Forum - 04-15-2011, 12:36 PM
Create pages .php - by El Forum - 04-15-2011, 02:47 PM
Create pages .php - by El Forum - 04-15-2011, 03:04 PM
Create pages .php - by El Forum - 04-15-2011, 03:07 PM



Theme © iAndrew 2016 - Forum software by © MyBB