Welcome Guest, Not a member yet? Register   Sign In
Navigation Path Problem
#9

[eluser]o_Ojack[/eluser]
It's basically structured like this:

class BTRMS extends Controller {

function __construct()
{
}

function index()
{
$this->load->view('product_view',$data);
}

function product()
{
$this->load->view('testruns',$data);
}

function builds()
{
$this->load->view('builds_view',$data);
}

function build_testruns()
{
$this->load->view('testruns',$data);
}

function testruns()
{

$this->load->view('testruns_view',$data);
}

function testrun_builds()
{
$this->load->view('testruns',$data);
}



}
so bascially this is the flow of the application:
- the index class is loaded and calls the product_view to display all distinct products, number of builds in each product, and number of testruns in each product
- the user now have two options, 1 is to see available builds for that product, or available testruns for that product. the former one calls the builds() controller from the product_view, and the latter one calls the tesetruns() controller form the product_view and the product view also passes the select product to the corresponding controller
- builds calls the testruns() calls the builds_view which shows all the builds and number of testruns in each, when user selects a build, the view will then call the build_testruns() method in the controller and pass the product and view to it
- testruns calls the builds() calls the testruns_view which shows all the testruns and number of builds in each, when user selects a testrun, the view will then call the testrun_builds() method in the controller and pass the product, and build to it
-both of the builds_testrun and testrun_builds method calls the testruns_view that shows all the testruns for select product, testrun, and build

sorry if it seems very confusing, let me know if you have you have any questions, i can send you the code if that's easier


Messages In This Thread
Navigation Path Problem - by El Forum - 09-12-2007, 08:25 AM
Navigation Path Problem - by El Forum - 09-12-2007, 08:54 AM
Navigation Path Problem - by El Forum - 09-12-2007, 09:20 AM
Navigation Path Problem - by El Forum - 09-12-2007, 09:55 AM
Navigation Path Problem - by El Forum - 09-12-2007, 10:12 AM
Navigation Path Problem - by El Forum - 09-12-2007, 10:14 AM
Navigation Path Problem - by El Forum - 09-12-2007, 10:31 AM
Navigation Path Problem - by El Forum - 09-12-2007, 10:33 AM
Navigation Path Problem - by El Forum - 09-12-2007, 10:53 AM
Navigation Path Problem - by El Forum - 09-12-2007, 11:53 AM
Navigation Path Problem - by El Forum - 09-12-2007, 12:18 PM
Navigation Path Problem - by El Forum - 09-12-2007, 12:20 PM
Navigation Path Problem - by El Forum - 09-12-2007, 12:22 PM
Navigation Path Problem - by El Forum - 09-12-2007, 08:05 PM
Navigation Path Problem - by El Forum - 09-13-2007, 03:02 AM
Navigation Path Problem - by El Forum - 09-13-2007, 03:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB