Welcome Guest, Not a member yet? Register   Sign In
Extracting Web Application
#15

[eluser]Jamie Rumbelow[/eluser]
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.


Messages In This Thread
Extracting Web Application - by El Forum - 04-01-2008, 03:35 PM
Extracting Web Application - by El Forum - 04-01-2008, 03:46 PM
Extracting Web Application - by El Forum - 04-01-2008, 05:43 PM
Extracting Web Application - by El Forum - 04-02-2008, 05:00 AM
Extracting Web Application - by El Forum - 04-02-2008, 06:02 AM
Extracting Web Application - by El Forum - 04-02-2008, 06:09 AM
Extracting Web Application - by El Forum - 04-02-2008, 06:47 AM
Extracting Web Application - by El Forum - 04-02-2008, 06:56 AM
Extracting Web Application - by El Forum - 04-02-2008, 07:07 AM
Extracting Web Application - by El Forum - 04-02-2008, 07:08 AM
Extracting Web Application - by El Forum - 04-02-2008, 07:12 AM
Extracting Web Application - by El Forum - 04-02-2008, 07:16 AM
Extracting Web Application - by El Forum - 04-02-2008, 07:45 AM
Extracting Web Application - by El Forum - 04-02-2008, 08:46 AM
Extracting Web Application - by El Forum - 04-02-2008, 08:58 AM
Extracting Web Application - by El Forum - 04-02-2008, 09:14 AM
Extracting Web Application - by El Forum - 04-02-2008, 09:15 AM
Extracting Web Application - by El Forum - 04-02-2008, 09:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB