codeigniter

PHP Queue System with Codeigniter. HOW? [closed]

陌路散爱 提交于 2020-01-04 09:27:07
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I am creating a website for a client where they need the ability to generate 25,000 - 100,000 barcodes. I have licensed a software that generates the codes but it takes around 20 - 30 minutes to generate an order

CodeIgniter : Disallowed key Characters in Chrome

匆匆过客 提交于 2020-01-04 09:08:17
问题 I'm using CodeIgniter and I'm getting the following error: Disallowed Key Characters. This only happens in Chrome. I've tried it in Firefox and it is working well. I don't use cookies, character # , or method "get". I need help how to solve this. Thanks 回答1: To allow the character # just add it in the following in your CONFIG file - $config['permitted_uri_chars'] = '\#'; And now the character # will be allowed. 来源: https://stackoverflow.com/questions/25599724/codeigniter-disallowed-key

error_get_last() returns null after set_error_handler(); php 7.0

六眼飞鱼酱① 提交于 2020-01-04 09:06:55
问题 The next code: $a["x"];//should trigger notice var_dump(error_get_last());//return the error array runs perfectly and returns an error array. but when I use set_error_handler it returns null function _do_nothing(){} set_error_handler('_do_nothing'); $a["x"];//should trigger notice var_dump(error_get_last());//return null This code works perfectly on PHP5.4 I had changed 3 month ago to PHP7 and since then I am getting nulls in error_get_last() I am using a shutdown function to check if an

How do I load custom configuration files with codeigniter?

隐身守侯 提交于 2020-01-04 09:06:09
问题 I've just started to use codeigniter and I have a question. I am using arrays for defining certain values like: $gender = array ('male','female'); Or: $maritalStatus = array ('married', 'single', 'divorced'); I am using these kind of arrays in different views. My question is, is there a chance to put all of these arrays in a configuration file and load it when I need it? Or is there another method to achieve this? Thanks a lot. 回答1: Yes, you can. Just place all your variables in an array, and

How do I load custom configuration files with codeigniter?

寵の児 提交于 2020-01-04 09:06:06
问题 I've just started to use codeigniter and I have a question. I am using arrays for defining certain values like: $gender = array ('male','female'); Or: $maritalStatus = array ('married', 'single', 'divorced'); I am using these kind of arrays in different views. My question is, is there a chance to put all of these arrays in a configuration file and load it when I need it? Or is there another method to achieve this? Thanks a lot. 回答1: Yes, you can. Just place all your variables in an array, and

File upload with jQuery and CodeIgniter (But no page refresh)

扶醉桌前 提交于 2020-01-04 08:57:49
问题 I'm building a web application for my friend. He wants this application to be "desktop-like" application which he means no page refresh "at all". So, I decided to build this application using CodeIgniter, jQuery, jQuery UI and MySQL. This application main window contains several tabs, each tab has its own content div. All of the page request, form submission, action and else are handle by jQuery to retrieve data. Then, these data will be sent to the specific controller to handle and response

Html2Pdf -Codeigniter -Image not loading

时间秒杀一切 提交于 2020-01-04 08:21:26
问题 I am using HTML2PDF Library for codeigniter See:https://github.com/aiwmedia/HTML2PDF-CI My problem is i am unable to load images using tag. Instead of image it always shows alt attribute. Tried giving the full path and relative path. View: <img src="<?php echo base_url(); ?>/uploads/pdf_images/1.jpg" alt="<?php echo base_url(); ?>uploads/pdf_images/1.jpg"/> Controller: $this->load->library('html2pdf'); $this->html2pdf->folder(APPPATH."third_party/samples/"); $file_name=$this->random_string(7)

Efficient Website Navigation with CodeIgniter

依然范特西╮ 提交于 2020-01-04 08:18:52
问题 I'm working on a site where there can be up to 3 levels of hierarchy in the navigation. main sections in the top header sub-navigation on the left optional sub-sub navigation below that In the past, when I've rolled my own with PHP, I would create a file navigation.php holding a class and arrays for all the sections and sub sections and a couple of functions to output the navigation. I'd set variables on every page in the site (current_section ='', current_sub_section='') so the navigation

Efficient Website Navigation with CodeIgniter

北慕城南 提交于 2020-01-04 08:17:20
问题 I'm working on a site where there can be up to 3 levels of hierarchy in the navigation. main sections in the top header sub-navigation on the left optional sub-sub navigation below that In the past, when I've rolled my own with PHP, I would create a file navigation.php holding a class and arrays for all the sections and sub sections and a couple of functions to output the navigation. I'd set variables on every page in the site (current_section ='', current_sub_section='') so the navigation

CodeIgniter result_array() on boolean error if the table is empty

☆樱花仙子☆ 提交于 2020-01-04 07:48:11
问题 I have this function in my Carros_model.php that is used to bring the last insertions and display them in the dashboard: public function select_all($limit = 3) { $this->db ->select('marca.nome_marca,' . 'combustivel.nome_combustivel,' . 'cambio.descricao_cambio,' . 'DATE_FORMAT(carro.data_criacao, "%d/%m/%Y") as criacao,' . 'DATE_FORMAT(carro.data_modificacao, "%d/%m/%Y") as modificacao,' . 'carro.*') ->from('carro') ->join('marca', 'marca.id = carro.id_marca') ->join('combustivel',