Welcome Guest, Not a member yet? Register   Sign In
? Complete Newb Guide ?
#5

[eluser]adamp1[/eluser]
I would say the best way to get started is to have a go at something small. Don't take on a big task like a full control panel just a little form to display/add/edit/delete database tables values. Practice makes perfect. The videos are also very good.

@Jimmi Newbie : I would first of all suggest making new posts if you have a problem, its more likely someone will see it and answer it, also it doesn't then start to take over the topic of someone else's topic.

But to do with your problem. What are you trying to do exactly? I take it your talking about passing values from one page to the next and reading there value off. If so, CodeIgniter can do it how you have said but it uses uri segments instead. Below is how you would do what you are asking in CI.

Code:
class Test extends Controller
{
  function Test(){
    ...
  }

  function index($action = NULL)
  {
    print anchor('Test/index/input','Input Form');

    if( ! is_null($action))
      print "Input OK";
  }
}

Basically the code above is a bit like you have created, but it uses a controller to represent the page. I would explain more but I think it would be best to go and first read the following pages,

CodeIgniter URL's
CodeIgniter Controllers
URL Helper

They explain to you how codeigniter urls are setup, also what a controller is and also about a useful function I used anchor.

Good luck


Messages In This Thread
? Complete Newb Guide ? - by El Forum - 03-28-2008, 05:27 PM
? Complete Newb Guide ? - by El Forum - 03-28-2008, 07:33 PM
? Complete Newb Guide ? - by El Forum - 03-28-2008, 07:39 PM
? Complete Newb Guide ? - by El Forum - 03-29-2008, 01:24 AM
? Complete Newb Guide ? - by El Forum - 03-29-2008, 05:06 AM
? Complete Newb Guide ? - by El Forum - 03-30-2008, 10:00 PM



Theme © iAndrew 2016 - Forum software by © MyBB