Welcome Guest, Not a member yet? Register   Sign In
PyroCMS v0.9.7.4 - an open-source modular general purpose CMS

[eluser]Turv[/eluser]
Great job Phill. I've replaced my code with yours and works great apart from one bit. I get an SQL Error on the home page.

In the _remap function you are doing
Code:
$url_segments = $this->uri->segment_array();

But if it's the home page (like just domain.com/) you get the following SQL Error
Code:
Error Number: 1051

Unknown table 'p0'

SELECT p0.* FROM (pages p1) LIMIT 1

I think this is because if it is the Home page, the URI Segments array will be empty as there are no segments. Which is why i previously did this

Code:
// If Sub page exsits
if($this->uri->segment(2)) {
    $url_segments = $this->uri->segment_array();
} else {
    $url_segments = $this->uri->segment(1, 'home');
}


Messages In This Thread
PyroCMS v0.9.7.4 - an open-source modular general purpose CMS - by El Forum - 08-26-2009, 02:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB