Category

Codeigniter

Category

if you allow true in $config[‘csrf_protection’] = true; within config file and you are also add autoload form than we can use. Step 1. within config folder autoload file upload form helper $autoload[‘helper’] = array(‘url’, ‘file’,’form’); Step 2. $config[‘csrf_protection’] = true; Step 3. while uploading in view folder <?php echo form_open_multipart(‘admin/file_upload’); ?> Otherwise, you can use only $config[‘csrf_protection’] = false;

1) Explain what is CodeIgniter? Codeigniter is an open source framework for web application. It is used to develop websites in PHP. It is loosely based on MVC pattern, and it is easy to use compared to another PHP framework. 2) Explain what are hooks in CodeIgniter? Codeigniter’s hooks feature provides a way to change the inner working of the framework without hacking the core files. In other word, hooks allow you to execute a script with a particular path…