0

I have a programscontroller and a function index

I need to access a list while i enter the url mydomain.com/programs

i need the details of a programe while I enter the url mydomain.com/programs/dentalconferance

ie dentalconferance is the parameter for index. I need to avoid index from url while passing parameter

1 Answer 1

2

In your routes.php:

Router::connect('/programs/*', array('controller' => 'programs', 'action' => 'index'));

In your ProgramsController:

public function index($slug = null){
enter code here...
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.