codeigniter

error Access-Control-Allow-Origin header on codeigniter

心已入冬 提交于 2020-05-12 01:53:00
问题 i am getting the error of XMLHttpRequest cannot load, No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://abc' is therefore not allowed access.. i am very new in php and codeigniter and so i cannot really understand what is going on. i tried reading other materials here in stackoverflow but it just left me blank. I am sorry if this is a duplicate post to you but I really need help. here is the ajax call for the view: $("#btnLoginFB").click(function() {

PHP Fatal error allowed memory size exhausted

感情迁移 提交于 2020-05-09 04:55:53
问题 I'm writing a codeigniter application, upon doing a query i get hit with the following fatal error. Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 262144 bytes) in /var/www/html/cryd/_zcore/core/Loader.php on line 262 I could increase the allowed memory size, but it seems that the issue could be much more graver, that if it is a memory leak, i'd just be giving php more memory to play around with. The query is not even that intensive, it just returns one row

PHP Fatal error allowed memory size exhausted

南楼画角 提交于 2020-05-09 04:51:11
问题 I'm writing a codeigniter application, upon doing a query i get hit with the following fatal error. Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 262144 bytes) in /var/www/html/cryd/_zcore/core/Loader.php on line 262 I could increase the allowed memory size, but it seems that the issue could be much more graver, that if it is a memory leak, i'd just be giving php more memory to play around with. The query is not even that intensive, it just returns one row

PHP: visualize your app workflow and function to function relation

女生的网名这么多〃 提交于 2020-05-08 05:51:27
问题 i'm searching for a software that would help me visualize my application workflow, and function to function relation. i'm using codeigniter, and my app is growing bigger and bigger ever day, and as i'm working alone. i'm starting to get schizophrenic ! today i'm a building db models, tomorrow may be view js, and html, day after controllers, etc.. so will all this going around i started to forget how i did this or that.. and i have to go back and forth reading my old code.. along with too many

What is the cause of this wrong image upload error message in my Codeigniter 3 application?

拟墨画扇 提交于 2020-05-01 06:42:51
问题 I am working on a basic blog application with Codeigniter 3.1.8 and Bootstrap 4 . There is, among others an "Edit account information" form, which has an image upload field. In the controller, the update() method contains the logic for the image upload action: public function update() { // Only logged in users can edit user profiles if (!$this->session->userdata('is_logged_in')) { redirect('login'); } $id = $this->input->post('id'); $data = $this->Static_model->get_static_data(); $data['pages

REST_CONTROLLER cors not working (Codeigniter)

邮差的信 提交于 2020-04-30 09:37:45
问题 I need some help, because this problem is bugging me for days and i don't know how to proceed further. I'm developing my application with VueJs2 and Codeigniter (Rest controller) as my API. I'm using node web-pack server (npm run dev) so my front page app runs on http://localhost:8080. This app is making requests to my Codeigniter application (I'm using nginx virtual host, so i can access my apis on my http://myapp.test) The problem is following. My VueJs application is making GET request

REST_CONTROLLER cors not working (Codeigniter)

青春壹個敷衍的年華 提交于 2020-04-30 09:34:05
问题 I need some help, because this problem is bugging me for days and i don't know how to proceed further. I'm developing my application with VueJs2 and Codeigniter (Rest controller) as my API. I'm using node web-pack server (npm run dev) so my front page app runs on http://localhost:8080. This app is making requests to my Codeigniter application (I'm using nginx virtual host, so i can access my apis on my http://myapp.test) The problem is following. My VueJs application is making GET request

CI new default controller not working

試著忘記壹切 提交于 2020-04-30 04:59:47
问题 Have problem with CI 3.0 if i leave default controller in routes.php file "welcome" everything is working perfectly. BUT if I change it i.e. "main" CI starts to throw 404 error main controller for first steps is the same as welcome. I just copied files. renamed, changed class name (ofcourse), and in index() loading view. any suggestions? also I forgot to tell on wamp localhost everything is working.. but in server NOT.. :/ And one more thing... i.e. if I try go to mydomain.com/welcome -

CI new default controller not working

本秂侑毒 提交于 2020-04-30 04:59:26
问题 Have problem with CI 3.0 if i leave default controller in routes.php file "welcome" everything is working perfectly. BUT if I change it i.e. "main" CI starts to throw 404 error main controller for first steps is the same as welcome. I just copied files. renamed, changed class name (ofcourse), and in index() loading view. any suggestions? also I forgot to tell on wamp localhost everything is working.. but in server NOT.. :/ And one more thing... i.e. if I try go to mydomain.com/welcome -

Codeigniter website showing error 404 on Google Virtual Instant Live Server

痴心易碎 提交于 2020-04-18 12:33:54
问题 When I go open up my Codeigniter website on my localhost using Wamp and XAMPP, both works. But when I move it to Ubuntu on Google Cloud, it only works for the first page, afterward, it shows the error when going to another page. I'm using: Codeigniter ver 3 Apache2 php7.3 Does anyone know what might have caused this? Other Pages 回答1: It would be ideal if you check first the class name and the record name that both should be title case (start with a capital letter). So if the class name is