Welcome Guest, Not a member yet? Register   Sign In
Help with linking categories
#11

[eluser]GrahamDj28[/eluser]
So my catalog example should also do the trick.
The rest of the pages could remain manual pages.

An example of a catalog:
Code:
class Catalog extends CI_Controller {
    public function __construct() {
        parent::__construct();
    }

    public function index() {
        //In this function you call the function to get all your categories
    }

    public function category() {
        //In this function you get the items/sub categories for the request category
        $param1 = $this->uri->segment(3);
        $param2 = $this->uri->segment(4);
    }
}

But it is worth looking into the fallback system! How great CI is, it does come with alot of copy paste work when using it out of the box. When using this, the copy paste goes away!
#12

[eluser]the_unforgiven[/eluser]
OK ill give this a go
#13

[eluser]the_unforgiven[/eluser]
much appreciated...

so param1 & 2 would go where in the code
#14

[eluser]GrahamDj28[/eluser]
Indeed, the download does not work.

Lucky for you I have and use this file.

Download here
#15

[eluser]the_unforgiven[/eluser]
You legend!!! PM sent
#16

[eluser]GrahamDj28[/eluser]
See previous post. Updated with download link.
#17

[eluser]the_unforgiven[/eluser]
k thanks for that sent you Pm anyhow
#18

[eluser]GrahamDj28[/eluser]
I did see it Smile

But this is better for other people, so they can also use it

Good luck and you can always call for help!
#19

[eluser]the_unforgiven[/eluser]
Fully understand, was just saying PM'd you anyhow...before you'd updated your previous post.

Still not sure if the Router class you just sent is what I need. Time for bed I think been a long day!!!




Theme © iAndrew 2016 - Forum software by © MyBB