Home
Forums
Members
Search
Help
New topics
Todays topics
Website
Welcome Guest, Not a member yet?
Register
Sign In
Login
Username:
Password:
Remember me
Lost Password?
CodeIgniter Forums
Using CodeIgniter
General Help
passing name instead of id
Share on Google
Share on Facebook
Share on Twitter
View a Printable Version
Subscribe to this thread
Add Poll to this thread
Send thread to a friend
Linear Mode
Threaded Mode
passing name instead of id
Wouter60
Posting Freak
Posts:
851
Threads:
38
Joined:
Feb 2015
Reputation:
77
#4
10-24-2019, 06:26 AM
(This post was last modified: 10-24-2019, 06:28 AM by
Wouter60
.)
Your route should be:
PHP Code:
$route
[
'movies/genre/(:any)'
] =
'movies_genre/index/$1'
;
Wouldn't it be more simple if you just named your controller "Movies.php" with a function genre inside it that takes the $movie_genre as parameter? Then you don't need a route at all.
Reply
Messages In This Thread
passing name instead of id
- by
manigopal
- 10-23-2019, 08:39 PM
RE: passing name instead of id
- by
Wouter60
- 10-24-2019, 05:05 AM
RE: passing name instead of id
- by
manigopal
- 10-24-2019, 05:31 AM
RE: passing name instead of id
- by
Wouter60
- 10-24-2019, 06:26 AM
RE: passing name instead of id
- by
manigopal
- 10-25-2019, 10:26 AM
RE: passing name instead of id
- by
manigopal
- 10-25-2019, 07:58 PM
Added Pagination
- by
manigopal
- 10-25-2019, 11:59 PM
RE: passing name instead of id
- by
Wouter60
- 10-26-2019, 01:30 AM
RE: passing name instead of id
- by
manigopal
- 10-26-2019, 01:44 AM
RE: passing name instead of id
- by
Wouter60
- 10-26-2019, 01:58 AM
RE: passing name instead of id
- by
manigopal
- 10-26-2019, 02:01 AM
RE: passing name instead of id
- by
Wouter60
- 10-26-2019, 02:30 AM
RE: passing name instead of id
- by
manigopal
- 10-26-2019, 07:18 AM
RE: passing name instead of id
- by
Wouter60
- 10-26-2019, 08:48 AM
RE: passing name instead of id
- by
manigopal
- 10-26-2019, 09:02 AM
RE: passing name instead of id
- by
manigopal
- 10-26-2019, 10:24 PM
RE: passing name instead of id
- by
manigopal
- 10-27-2019, 01:07 AM
RE: passing name instead of id
- by
Wouter60
- 10-27-2019, 04:48 AM
RE: passing name instead of id
- by
manigopal
- 10-27-2019, 07:16 AM
RE: passing name instead of id
- by
Wouter60
- 10-27-2019, 07:44 AM
RE: passing name instead of id
- by
manigopal
- 10-27-2019, 08:04 AM
RE: passing name instead of id
- by
manigopal
- 10-28-2019, 03:27 AM
RE: passing name instead of id
- by
Wouter60
- 10-28-2019, 10:50 AM
RE: passing name instead of id
- by
manigopal
- 10-28-2019, 10:21 PM
RE: passing name instead of id
- by
wdeda
- 12-28-2019, 05:31 PM
--------------------
Private Messages
User Control Panel
Who's Online
Search
Forum Home
General
-- News & Discussion
-- Events
-- Lounge
-- Regional User Groups
Using CodeIgniter
-- Installation & Setup
-- Model-View-Controller
-- Libraries & Helpers
-- Best Practices
-- Choosing CodeIgniter
-- General Help
CodeIgniter 4
-- CodeIgniter 4 Roadmap
-- CodeIgniter 4 Development
-- CodeIgniter 4 Feature Requests
-- CodeIgniter 4 Support
-- CodeIgniter 4 Discussion
-- CodeIgniter 4 Addins
Development
-- CodeIgniter 3.x
-- CodeIgniter 2.x
-- Issues
-- NetBeans Plugin
External Resources
-- Spotlight
-- Learn More
-- Jobs
-- Addins
Archived Discussions
-- Archived Libraries & Helpers
-- Archived Development & Programming
Theme © iAndrew 2016 -
Forum software by © MyBB