Part of the EllisLab Network
   
 
could the pagination class take care of the url suffix
Posted: 22 May 2007 12:34 PM   [ Ignore ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  493
Joined  02-21-2007

We can set a url suffix to be appended to our urls, but this doesn’t work fine with the
pagination class and the site_url() function.

If we want to use the site_url() function for the pagination base url, like

$config['base_url'] = site_url('my_base_url');

but the pagination class generates this kind of link:

http://127.0.0.1/index.php/my_base_url.html/2

.html/2 is bad

Now my small idea: the pagination class could take care of the $config[‘url_suffix’] = “.html”; item in the main config file, and append it rather at the end.

Would it break the nice modular design that we have?

Is there a better way than writing

$config['base_url'] = base_url().$this->config->item('index_page').'/'.'my_base_url';
Profile
 
 
Posted: 16 January 2009 11:02 AM   [ Ignore ]   [ # 1 ]  
Summer Student
Avatar
Total Posts:  22
Joined  04-04-2007
Grahack - 22 May 2007 12:34 PM

Now my small idea: the pagination class could take care of the $config[‘url_suffix’] = “.html”; item in the main config file, and append it rather at the end.

Would it break the nice modular design that we have?

Is there a better way than writing

$config['base_url'] = base_url().$this->config->item('index_page').'/'.'my_base_url';

hey Grahack, did you were able to find a workaround for this?

 Signature 

Ever Daniel Barreto Rojas
web: www.amediacreative.com
blog: www.everdaniel.com
e.mail: ever at amediacreative dot com

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 719, on June 06, 2008 10:16 AM
Total Registered Members: 77529 Total Logged-in Users: 29
Total Topics: 101537 Total Anonymous Users: 3
Total Replies: 544308 Total Guests: 273
Total Posts: 645845    
Members ( View Memberlist )