Posts

Showing posts with the label codeigniter-3

How can I do to use Angular 5/6 for frontend and Codeigniter 3 for backend in the web same app?

How can I do to use Angular 5/6 for frontend and Codeigniter 3 for backend in the web same app? I want to buid a web using Angular 6 for frontend and Codeigniter 3 for backend . The problem is that I don't know how to combine the two, and all the tutorials I looked were using AngularJS which is the version 1 whereas i'm using version 6 , and it didn't really work. I am looking for something like JavaScript & CSS Scaffolding using Angular 6 (and not AngularJS ) with Codeigniter 3 What I want is to set the view to be the Angular app and let Codeigniter do the routing and handle the server Can anyone help me?? 1 Answer 1 You can create APi's in codeigniter and then implement those in Angular or any other front end language. I forgot to tell I am new to this, so please can you tell me exactly how to do that or redirect me to a place where I can find ...

Onclick function not working with custom popup

Onclick function not working with custom popup I have created custom popup to show my records. I am using CodeIgniter, I am fetching records from database and display on the view page which is working. Now I have records in the view page like this EmpName EMPID Mobile No. Status Action xyz 122 0012141010 Pending view archive mnb 123 0124541021 Pending view archive poiu 124 0000000000 Approved view archive What I am doing is, When user click on " pending" then it will ask for confirmation popup "Are you sure want to continue?" If the user clicks on "Later" button then the popup will close. It will not take any action. There is no issue till now. " pending" "Are you sure want to continue?" "Later" Now let's talk about Sure button. Sure button not taking any action. I don't understand why it's not calling the submit action. Even it's not working on the archive. Sure Note: I don...

what should be the necessary 'routes setting' to successfully request a specific controller for ajax request in codeigniter?

what should be the necessary 'routes setting' to successfully request a specific controller for ajax request in codeigniter? shows error 404 page not found, when send ajax request Here is my codeigniter's routes file. routes.php $route['request_handler/search_service'] = 'Request_handler/search_service'; $route['(:any)'] = 'pages/view/$1'; $route['default_controller'] = 'pages/view'; $route['404_override'] = ''; $route['translate_uri_dashes'] = FALSE; Here is my jquery code for ajax request to a Request_handler controller script.js $(document).ready(function(){ $('#search_service').on('keyup', function(){ var request_url = "<?php echo base_url('request_handler/search_service');?>"; var ss = $('#search_service').val(); if (ss != '') { $.ajax({ url:request_url, method:"POST", data: {search:ss}, ...