Updates from June, 2009 Toggle Comment Threads | Keyboard Shortcuts

  • webscriptz 20:45 on 30/06/2009 Permalink | Reply
    Tags: CI function, codeigniter, , redirect   

    Codeigniter Redirect 

    redirect()

    Does a “header redirect” to the local URI specified. Just like other functions in this helper, this one is designed to redirect to a local URL within your site. You will not specify the full site URL, but rather simply the URI segments to the controller you want to direct to. The function will build the URL based on your config file values.

    The optional second parameter allows you to choose between the “location” method (default) or the “refresh” method. Location is faster, but on Windows servers it can sometimes be a problem. The optional third parameter allows you to send a specific HTTP Response Code – this could be used for example to create 301 redirects for search engine purposes. The default Response Code is 302. The third parameter is only available with ‘location’ redirects, and not ‘refresh’. Examples:

    if ($logged_in == FALSE)
    {
    redirect('/login/form/', 'refresh');
    }

    // with 301 redirect
    redirect('/article/13', 'location', 301);

    This was the excerpt from the codeigniter userguide but what they don’t really tell is the essential:

    redirect(‘controller/function/param’, ‘refresh’);

     
  • webscriptz 17:14 on 23/06/2009 Permalink | Reply  

    Finished my exams 

    I’m done, it’s finished….I’m finished :P Ow yeah I screwed up completly I think, unfortunantly. It’s kind of a heavy realisation but this crappy school (‘KdG’) wasn’t the place to be for me. I made a very wrong turn in september, thinking that this school would really be it, then again all kind of troubles with the administration and one real nasty teacher that kind of threw me of…lying and denying all kinds of things that I know is right or that I know I deserve but because of their perverted way of rating I don’t have. SO I salute those persons knowing that I’ll be on top next year and that you can get &@#!%$, knowing that when I get my diploma at another school that I’ll be more, that I will know more, that I will be more.

     
c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
shift + esc
cancel