Welcome Guest, Not a member yet? Register   Sign In
Page not found?
#1

[eluser]anna16[/eluser]
Hi guys

I placed my site.php controller under the /membership/ directory
http://coder9.com/ci2/membership/site/register_form/

But when i call the register_form() method, it wont display
the page. Below is the link,
http://coder9.com/ci2/membership/site/register_form/

Below is the site controller codes,
Code:
<?php
class Site extends Controller
{
    function __construct()
    {
        parent::Controller();
        $this->load->library('session');
        $this->load->helper('form');
    $this->load->helper('url');
    }

  
  function register_form()
  {
       $this->load->view('membership/register_form');
  }
  

}
//end of class

Any suggestion what causing the problem?
#2

[eluser]InsiteFX[/eluser]
Code:
function register_form()
{
    $this->load->view('membership/site/register_form');
}

InsiteFX
#3

[eluser]anna16[/eluser]
Thanks insiteFX
I guess i already figured that out.

anyway there is a new error,
http://coder9.com/ci2/membership/site/register_form/

encryption key?
Okay, I'll try to google that one.
#4

[eluser]InsiteFX[/eluser]
If your running CodeIgniter 2.0 then you need to set the
encryption key in application/config/config.php

I use 32 characters setup something like this fill in the x's

xxxxx-xxx-xxxxxxx-xxxxx-xxxxxxxx

InsiteFX
#5

[eluser]anna16[/eluser]
Hi insideFX

thanks for the help.
Can you show me a complete steps for the "encryption key"?

Sorry this is my first time using CI 2.0
#6

[eluser]InsiteFX[/eluser]
CI 2.0 - application/config/config.php
Code:
$config['encryption_key'] = "92428-269-2593438-74736-34630529";

InsiteFX
#7

[eluser]anna16[/eluser]
well i inputted your first suggestion like this below,
$config['encryption_key'] = "xxxxx-xxx-xxxxxxx-xxxxx-xxxxxxxx";

and it worked. why is this?

or is this key below the recommended one?
$config['encryption_key'] = "92428-269-2593438-74736-34630529";

or i can choose any value i like?

thanks in advanced.
#8

[eluser]InsiteFX[/eluser]
Hi anna,

You can choose what ever you want. CodeIgniter 2.0 requires that this key
be set now, previous versions did not require it was an option.

InsiteFX
#9

[eluser]anna16[/eluser]
thanks again.

you are a BIG help really.
#10

[eluser]InsiteFX[/eluser]
Thank you.

I am on at night and in the morning to check the forums for SPAMMING!

But I also login in several times a day to check the forums.

InsiteFX




Theme © iAndrew 2016 - Forum software by © MyBB