• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Routeing Help

Greetings my fellow CI developers. I have been recently tasked to make changes to our website. I've been able to successfully create a test area before i can break anything.

Under the view folder I have:
<div class="apt_right">
   <h3><a href="&lt;?=$apartment-&gt;url;?&gt;" title="&lt;?=$apartment-&gt;keywords;?&gt;">&lt;?=$apartment->name;?&gt;</a></h3>
   <p><em class="tollfree">&lt;?=$apartment->tollfree;?&gt;</em></p>
   <p><em class="tollfree">&lt;?=$apartment->phone;?&gt;</em></p>

I've determined that
is referring to the field in my db. However when I click on the link (on the test page i get a 404), on the live site it is up and running perfectly.

In routes.php, I noticed that the 'default_controller' is set to 'home' and an a path for one of the links is
$route['apg3'] = 'home/ae/3';

$route['apg/(:any)'] = 'home/ae/$1';

I've looked at that in the user guide, but I'm trying to understand why the links aren't working. We've copied the entire directory and db to set up our test bed, and I've adjusted the base_url and database.php file to reflect those changes.

CodeIgniter Users Guide - URL Helper - See the anchor() tag

Make sure you load the url helper!

&lt;?php echo anchor('news/local/123', 'My News', 'title="News title"'); ?&gt;

// Produces
<a href="http://example.com/index.php/news/local/123" title="News title">My News</a>

how much of a difference in the framework is version 1.7.x to 2.x.x?

This should pretty much spell it out:
CI Changelog
Upgrading from a Previous Version

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.