Welcome Guest, Not a member yet? Register   Sign In
Multiple Pages (404 errors)
#1

[eluser]benaroia[/eluser]
Arg. The problems that arise when you're new at something. Wink

I've got a controller called gms, the index() function loads the proper page. So something is working. Now I want to give it a getpage() method that takes a ?page=somepage argument, similar to standard PHP $_GET['page']; Is this possible with CI? Is there a better way of handling multiple database backed pages?

Let me extrapolate. I have a view called navbar, that pulls a list of the pages out of a database, then lists them.

Code:
<div id="navbar">
    <ul>
        &lt;?php
            $this->load->database();
            $navget = "select * from `gms` where 1";
            $query=$this->db->query($navget);
            
            foreach ($query->result() as $row)
            {
                echo '<li><a >page.'">'.$row->page.'</a></li>';
            }
        ?&gt;
    </ul>
</div>

Now this gives me a 404 error. Even though I think it's right? I'm probably doing something wrong. :down:


Messages In This Thread
Multiple Pages (404 errors) - by El Forum - 08-22-2008, 09:16 AM
Multiple Pages (404 errors) - by El Forum - 08-22-2008, 02:28 PM
Multiple Pages (404 errors) - by El Forum - 08-22-2008, 04:08 PM
Multiple Pages (404 errors) - by El Forum - 08-23-2008, 12:19 PM
Multiple Pages (404 errors) - by El Forum - 08-23-2008, 05:12 PM
Multiple Pages (404 errors) - by El Forum - 08-23-2008, 05:19 PM
Multiple Pages (404 errors) - by El Forum - 08-23-2008, 05:20 PM
Multiple Pages (404 errors) - by El Forum - 08-23-2008, 05:32 PM
Multiple Pages (404 errors) - by El Forum - 08-23-2008, 06:57 PM
Multiple Pages (404 errors) - by El Forum - 08-23-2008, 07:13 PM
Multiple Pages (404 errors) - by El Forum - 08-23-2008, 07:25 PM
Multiple Pages (404 errors) - by El Forum - 08-23-2008, 08:59 PM
Multiple Pages (404 errors) - by El Forum - 08-23-2008, 09:40 PM



Theme © iAndrew 2016 - Forum software by © MyBB