[eluser]kerell78us[/eluser]
[quote author="Jemgames" date="1207166299"]You could do something like this:
$data = array();
$data = $datas;
if($this->input->get("politics")!=’’) {
$newsId = $this->input->get("politics");
} else {
$newsId = $userId;
$data[’view_news’] = true;
$data[’user_id’] = $userId;
Its the same priciple - just using $_GET instead of segements.
I'l look into writing a class that does exactly as you described.[/quote]
I'll appreciate any assistance that could be had.