codeigniter-3

Codeigniter 3: send account activation email fails

给你一囗甜甜゛ 提交于 2019-12-23 18:27:38
问题 I am working on a Register and Login application with CodeIgniter 3 and Twitter Bootstrap. When a user registers , an email should be send to the address he/she provided, with an account confirmation link . The problem is that the confirmation email does not send . In the Usermodel I have: public function activationEmail($first_name='', $last_name='', $email='', $verification_key='') { $this->load->library('email'); $config = Array( 'protocol' => 'smtp', 'smtp_host' => 'smtp.code-love.tk',

Codeigniter 3.1.6 - How to remove index.php from url

微笑、不失礼 提交于 2019-12-23 12:02:06
问题 I am working on codeigniter 3.1.6. I added the .htaccess file. I also changed the base_url path to my project path, removed the index.php from index_page and changed the url_protocol to REQUEST_URI . Still, while I am redirecting the url to any controllers method it throwing an error as ' The page you requested was not found .' I also searched and applied different .htaccess but its not working. If I am addling /index.php at end of base_url then its working but its wrong though. It should

Validation is not working in codeigniter

老子叫甜甜 提交于 2019-12-23 06:19:07
问题 Validation is not working. All the form fields are coming dynamically. It depends on the user how many fields he chooses.If he chooses 2 and it will display 2 fields in the view. If select 3 then it will display 3 fields and so on.I have more than 30 fields I set 3 arrays(for testing purpose I set only 3. It will be total no of fields ) in my form validation page. If I remove the last array than validation is working because I am getting only 2 fields in the view. I am not able to use the

Validation is not working in codeigniter

给你一囗甜甜゛ 提交于 2019-12-23 06:19:06
问题 Validation is not working. All the form fields are coming dynamically. It depends on the user how many fields he chooses.If he chooses 2 and it will display 2 fields in the view. If select 3 then it will display 3 fields and so on.I have more than 30 fields I set 3 arrays(for testing purpose I set only 3. It will be total no of fields ) in my form validation page. If I remove the last array than validation is working because I am getting only 2 fields in the view. I am not able to use the

Codeigniter pagination showing duplicate records with page query string

最后都变了- 提交于 2019-12-23 06:08:38
问题 i have created pagination with codeigniter 3. On every page i am getting same results: my final url seems like: http://localhost/shoping/products/mobile-phones?cid=3&page=2 Controller file: public function category(){ $category_id = $this->input->get('cid', TRUE); $slug = $this->uri->segment(2); $sortby = $this->input->get('sort', TRUE); $sorttype= 'ASC'; $limit = 10; $config = array(); $config['base_url'] = base_url() . 'products/'.$slug.'?cid='.$category_id; $config['total_rows'] = $this-

Getting the same data on pagination in Codeigniter

不羁的心 提交于 2019-12-23 05:14:47
问题 I am getting the same data when I am clicking on the next button of pagination in CodeIgniter with the following code public function view($slug){ $data['title']= $slug; $data['description']= "None"; $postdatacount = $this->Constant_model->snippettagscount($slug); $checktags= $this->Constant_model->gettags($slug); if($checktags>0){ if ($postdatacount>0) { $config = array(); $config["base_url"] = base_url() ."tags/".$slug; $config["total_rows"] = $postdatacount; $config["per_page"] = 6;

cron job return login page html in codeigniter

一世执手 提交于 2019-12-23 03:31:49
问题 In my application i need to set cron job for daily updation. I am using CodeIgniter 3.0 My config.php file $config['index_page'] = ''; $config['uri_protocol'] = 'AUTO'; Here is my controller class Cron extends CI_Controller { public function cron_job(){ if (!$this->input->is_cli_request()){ echo 'test'; //show_error('Direct access is not allowed'); } else{ echo 'call'; } } } and i have set path in cpenal like /usr/bin/php /home/public_html/my_app/index.php cron cron_job But this return html

Unexpected end of JSON input in Http get request from Angular 2 to Codeigniter

南楼画角 提交于 2019-12-21 13:39:13
问题 Angular 2 with Codeigniter Hello World Program running perfectly. But I am getting error "Unexpected end of JSON input" while sending Http get request from Angular 2 to Codeigniter Controller "Entry.php" Plunker code is at this link: https://plnkr.co/edit/MHVVkWwFqEggqSI5b6B2?p=info Same code is pasted here also: app.module.ts import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { HttpModule } from "@angular/http"; import { AppComponent }

after adding the product in the cart and the user refreshes the page then how can I display the data which is added in the cart

被刻印的时光 ゝ 提交于 2019-12-20 05:58:25
问题 I am using the CodeIgniter shopping cart. I am displaying records like Row 1 AFGFD ANAND trdsd@gmail.com ActivityName | duration | price | Action cricket | Select duration | 100 | Add to cart Row 2 POIUY ANAND mnbsd@gmail.com ActivityName | duration | price | Action cricket | Select duration | 100 | Add to cart Badminton | Select duration | 200 | Add to cart Note duration is a select dropdown which is below <select name="memberDuration" class="form-control dropdownDuration"> <option selected

Message: Uninitialized string offset: 0 while inserting dynamic input field data

一世执手 提交于 2019-12-20 04:52:46
问题 I am using CodeIgniter, I am getting dynamically select boxes. From the second select box, the user can select the status and according to the status input field will display. Check this below screenshot, If the user clicked on Add More then below select box will display. Now from the second select box, I choose Status one so according to the selected value, remark input field displayed. Check below screenshot. If the user wants more fields for ID 2 then the user will click on add Bank . For