Jump to content

Mahngiel

Newly Registered
  • Posts

    1,068
  • Joined

  • Last visited

Profile Information

  • Gender
    Male

Mahngiel's Achievements

Member

Member (2/5)

16

Reputation

  1. "The entered value is compared on the server with the generated value..." Use AJAX or post processing. Further, I hope you're not relying on JS only for validation.
  2. class Auth { private $CI; function __construct(){ $this->CI =& get_instance(); echo 'hook inst'; } function authenticate() { echo 'method called'; $this->CI->session->set_userdata(array('hook' => $_SERVER['php_self'])); echo $this->session->userdata('logged_in') ? 'logged' : 'not logged'; die('end'); } } what happens?
  3. this includes auto-starting ad vids since you NEVER know where the hell they are!
  4. Just learn by trying to build something. It's much more practical to learn this way, as you'll go through the headaches of trying to do something and not know how. Through these experiences you'll figure some stuff out -- hopefully.
  5. you need to kill the script too, dude. Although your "login" script doesn't actually log the user in, and you said this is just for practice... my advice is to change $this->session->set_userdata(array('logged_in' => $arr)); to $this->session->set_userdata('logged_in' => TRUE); Then, when your hook is called, if( $this->session->userdata('logged_in') ) will eval to true.
  6. $this->session->set_userdata('logged_in' => TRUE) !== $this->session->set_userdata(array('logged_in' => TRUE)); Run a dump on $this->session->all_userdata() and you'll see what you're asking for doesn't exist
  7. [this list is only in order as they come to mind, not importance] 1. Debian / Linux Mint : Since the new gnome came out, I transitioned to Mint for it's Cinnamon DE. It's an extremely smooth environment to work AND play in. Being Debian based, it's simple to keep a similar environment to production 2. tmux: The most bad ass terminal emulator on the planet. I couldn't imagine my workflow without it. 3. Firebug: Completely essential if you build any front-end 4. Git(hub): Versioning FTW 5. Dropbox: Helps me keep docs, scripts, dotfiles, graphics, etc sync'd across all my workstations 6. phpStorm: I used to rag on heavy IDEs. Now, I couldn't do without it 7. Bluefish: My favorite light-weight IDE. It works with SFTP so I can mount a remote server and make quick changes with all the colorization, syntax hilights, and code suggestions one needs. 8. GIMP: I often find the need to make quick changes to a graphic, or to grab a layer from a PSD. 9. LESS: A language, yes, but moreso an important tool for keeping organized CSS and compiling out minified CSS 10. Nano: Once you know how to use it, nothing else matters.
  8. By the looks of it, you have an error in your code on line 17. Update that and you should be rockin' and rollin'!
  9. You don't need to extend the validation class to do this. Just utilize the validation class normally. example usage (the form_validation lib is autoloaded in this app)
  10. I like it, do we get to keep our "Freak"-iness or is this only for today?
  11. Why would you imagine you'd need to encrypt the config file? If somebody has access to your server files, they wouldn't need to know your encrypt key to access the information that would be encrypted anyway. I think your paranoia has blinded your thought process.
  12. Did you load the model into the controller? $this->load->model('model_name', 'short name');
  13. Well, though these issue remain, I have developed a workaround by using cURL() for the downloads and using a hard-copy of the WSDL with these options in the SoapClient constructor $this->Client = new SoapClient( "path/to/local.wsdl", array( 'soap_version' => 1.1, 'trace' => TRUE, 'stream_context' => 'context' ) ); Further, had to remove a schema import from the xml. Am still looking for an answer as to why these changes need to be made.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.