Welcome Guest, Not a member yet? Register   Sign In
Getting errors after changing routes
#1

[eluser]jshultz[/eluser]
I was working on making my routes file dynamically updated from the database. Unfortunately, my cunning plan has caused some problems.

I added this line to the end of routes.php in the config file:

Code:
include_once APPPATH . "cache/routes.php";

The routes.php file in the cache folder is getting updated automatically which is nice. Currently, it looks likes this:

Code:
$route["index"] = "pages/index/1";
$route["About Us/subpagetest"] = "pages/index/4";
$route["About Us"] = "pages/index/3";

The problem is, i'm getting these errors at the top of every page:



Quote:A PHP Error was encountered
Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/jshultz/public_html/application/cache/routes.php:3)

Filename: core/Security.php

Line Number: 188



A PHP Error was encountered
Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/jshultz/public_html/application/cache/routes.php:3)

Filename: libraries/Session.php

Line Number: 672


I thought maybe it was a permissions error but I don't know? Any ideas?


Messages In This Thread
Getting errors after changing routes - by El Forum - 07-28-2012, 06:53 PM
Getting errors after changing routes - by El Forum - 07-29-2012, 10:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB