Below are my code and I refer all examples in stack overflow and codeigniter user guide. still I unable to solve this public function send() { $config[‘protocol’] = ‘smtp’; $config[‘…
Tag: codeigniter
check file type in dropzone
I have following code to upload excel sheet using dropzone.js with certain condition such as maximum number of file is 1 and only excel type is accepted… when multiple file is uploaded with correct …
Codeigniter Having undefined index
I need to access a table by referencing another table ID and by doing so I created first a foreach loop to retrieve the first table data then give its ID reference to the second table. I have done it in my other function but I don’t know in this function prompts me that it’s undefined index. Here is my
Codeigniter controller not found
I have create a controller in codeigniter. The problem is that when I hit the controller name and function name in url then Its give me error that 404 not found. I am new to codeigniter and I did not understand where I am going wrong Here is my controller and my view is like this I am creating my
Your application folder path does not appear to be set correctly error in codeigniter
I get a error called “Your application folder path does not appear to be set correctly. Please open the following file and correct this: index.php”. I use the site within a folder in main domain. My .htaccess file is as follows, if required. Answer You should post also your ‘config’ file, usually this come from a base_url or something messing
Codeigniter: Joining multiple tables
I have 3 tables with the following columns ITEMS -id -name -category_id -brand_id ITEM_BRAND -id -name ITEM_CATEGORY -id -name I joined them by $this->db->order_by(‘items.name’, ‘ASC’); …
what is $this->load->view() in CodeIgniter
$this is use for current class and view is method but what is load. Is this a property? Is this example correct? Answer Yes, load is a property. Think of it like this: This syntax is called chaining.
Fatal error: Class CI_Session_files_driver contains 1 abstract method
Fatal error: Class CI_Session_files_driver contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (SessionHandlerInterface::open) in C:xampp…
How to fetch title of an item from a database and send it to the header template in CodeIgniter
I am writing an application in CodeIgniter where I specify the <title> meta-tag on every page in every controller which I have managed to send to my header template. However, now I have created an application that fetch credit cards and their titles from the database, through an CodeIgniter model. I would like to automatically fetch and use the credit
CodeIgniter Multiple File Upload not working
I am trying upload multiple file in a folder but it’s giving the error “You did not select a file to upload.” A PHP Error was encountered Severity: Warning Message: is_uploaded_file() expects parameter 1 to be string, array given Filename: libraries/Upload.php Line Number: 412 Backtrace: File: C:wampwwwmshaadiapplicationcontrollersEmail.php Line: 55 Function: do_upload File: C:wampwwwmshaadiindex.php Line: 293 Function: require_once Controller view Answer