Welcome Guest, Not a member yet? Register   Sign In
Reuse of existing controller


I have created a user area for registered users where I have one controller with name "conversations". I want to create a new user area for guest users and I don't want to complicate existing user area. So my intend is to create a new area for guest users with bit different url, say index.php/guest/<controllers>. Now there is same functionality for conversations for guest users too.

Is it possible to reuse the code for conversation controller?

(Note : I have extended base controller class as My_profileBase for registered users and thinking to use different base controller for guest user pages).

Please give me your valuable suggestions.

[eluser]Cristian Gilè[/eluser]
Hi Siddhesh,

take a look at this: DRY

Thanks Cristian Gilè,

Will have a look.

Theme © iAndrew 2016 - Forum software by © MyBB