473,815 Members | 2,744 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CodeIgniter

Hi,

I was looking into CodeIgniter, and encountered the following problem:

In codeigniter, you could create a new controller like this:

---
class People extends Controller {

function index() { ... }

function profile() { ... }

}
---

Then I could call for example the URL
http://www.example.com/people/profil...yvandermaesen/ and the
profile() function would be executed, where I can use the userid passed
in the last URL segment to look up personal data.

However, I prefer working the other way around, and call the URL
http://www.example.com/people/gerryv...aesen/profile/. How could I
manage this?

Oct 9 '06 #1
1 1939
Gerry Vandermaesen wrote:
Hi,

I was looking into CodeIgniter, and encountered the following problem:
<snip>

Have you looked into routing?
http://www.codeigniter.com/user_guid...l/routing.html

By the way, you'll find all the answers you need on CI's forum:
http://www.codeigniter.com/forums/

--Mr. Wilson
Oct 9 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
2162
by: Marek Zawadzki | last post by:
Hi all, In your opinion: what is current status of frameworks for PHP and which one would you choose? I am looking for an all-purpose, MVC-based framework I could learn and use for all the applications I'll be working on in the future. Something that is currently stable and documented enough to be used in a commercial world (but it doesn't have to drive space shuttles yet;-)), and has no limitations whatsoever on the view...
10
3802
by: lawrence k | last post by:
I work mostly in PHP, but at the web design firm where I work we are thinking of switching to Ruby on Rails. Our lead designer recently installed Typo on a client's site and he said to us, with surprise, "All Ruby On Rails software has the same directory layout?" That was a revelation to him. He was used to the PHP scene, where diversity is the rule. I've done some google searches and I see that the subject has seen a fair amount of...
0
4111
by: surfivor | last post by:
I am doing some preliminary research as we are slated to do a project with wordpress. I looked at the wordpress code and realized why I like MVC so much (Rails) because the code mixed in with the rendering looked like a mess to me. I'm not at all sure exactly what we will be doing on the project as the details haven''t been discussed yet. I found that the Wordpress API doesn't look well documented. I set up wordress and created some blog...
7
1166
by: naveenkongati | last post by:
Hi All, What are the PHP Framework available Kindly provide the url's for PHP Frame work as per your knowledge. This is for studying purpose. Thank You
5
3838
bilibytes
by: bilibytes | last post by:
Hi, (I don't really know where to post this question) for readability : LSWS = Large Scale Web Sites by LSWS I mean: - flickr -facebook -myspace ... web sites that are quite social networking oriented.
5
2286
TheServant
by: TheServant | last post by:
I have recently (today) started doing something worthwhile on CodeIgniter, which is fantastic BTW. I have a problem and I can't figure out what is going wrong. I will post what I have now, but this has been changed so much in the past hour, it hardly reflects my efforts! Control Call $data->settings = $this->settings->get_settings(); Model Function function get_settings() { $query = $this->db->get('settings');
7
8313
TheServant
by: TheServant | last post by:
Hi all, I am trying to do something in CI which I cannot find any documentation for. I have set up my .htaccess so that if a file does not exist, and no controller/function is called it goes to the home page, but what I want is this: Instead of http://mysite.com/controller/function/variable I just use http://mysite.com/variable and it simply uses the default controller and index function. The reason is, I am creating a CMS where pages will...
3
12710
TheServant
by: TheServant | last post by:
Can anyone tell me why flashdata is not immediately available? Is it only available once the page has been resent? I am using form validation for form fields and flashdata for error messages. If there is an error I want the fields to be filled in with the $_POST data, which CI does easily, however, the flashdata seems to only be recognised once I refresh (through redirect()) which destroys the $_POST data. If I remove the redirect then...
5
1589
by: jeddiki | last post by:
Hi, I am just starting out with OOP PHP I have done the Free tutes over at KillerPHP and have a good idea of what its about. I also visited the CakePHPO website and read all about components, behaviors and helpers and see that they have some core objects ready to use. The conventions make sense ( if I can remember them !)
0
9735
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10672
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10408
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10427
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7687
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6897
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5570
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5710
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4358
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.