459 Topics

Member Avatar for
Member Avatar for Saddam_4

Hi all, I wanna use Payment Gateway integration with CodeIgniter, I am new to this thing, so I don't have any idea about that yet... can you guys help me with this ?

Member Avatar for AH
0
235
Member Avatar for shahir_1

if click second link the url pass value but then i click next the url value will empty. any one healp me ...! this is my controllere public function search() { $this->load->library('pagination'); $prdictive= $this->input->post('printable_name'); $category=$this->input->post('category'); $area=$this->input->post('area'); $this->load->library("pagination"); $config = array(); $config["base_url"] = base_url() . "Main_control/search/".$area.'/'.$category; $area2 = $this->uri->segment(3); $category2 = …

0
284
Member Avatar for minitauros

Hello there. I'm at a point where I have to set up a continuous integration environment. I have contributed to projects using CI before, but I have never set it up. I roughly know what it is supposed to do, but I could definitely use some help. In my head …

Member Avatar for rproffitt
0
473
Member Avatar for durga_4

I have site using php frame work codigniter where I am using the mattdiamond/Recorderjs to record an audio file in blob content type then i am uploading it to the server but it is taking top much time to upload I want to minimize my uploading time. Max size of …

Member Avatar for rproffitt
0
338
Member Avatar for destiny_3

Hello Everyone. Please how can i make a Like button in PHP.. i want the button to be clicked. the button see the far i 've gone with the attachements... like feature starts from... line 84 - 107

Member Avatar for rubberman
-1
6K
Member Avatar for Junie30

Hello, I'm trying to edit data from a selected table row by using contextmenu. But when I try to select a row for edting instead the **LAST DATA in a row** will fetch. Table: <div class="container"> <div class="row"> <div class="col-md-12"> <div class="table-responsive"> <table id="ppmpsupplies" class="table table-bordered table-hover" cellspacing="0" width="100%"> <thead> …

0
220
Member Avatar for anmol.raghuvanshi1

In my registration page i want user to select multiple images and upload it i am saving images name in database for reference. I am successful in uploading single images in database and can also show image in view but now i have problem in uploading multiple images. <?php if …

Member Avatar for Rizvan_1
0
7K
Member Avatar for davy_yg

How to create a website by pressing a button? With one button "create a website" while the user press that button it will create another website which is exactly the same like the first one. The only difference is that it will allow the user to select any name as …

Member Avatar for AssertNull
0
344
Member Avatar for KagaKuro

Hello. I'am using php codeigniter for my task here. i just have to use it. its all set up at the first. so i kinda not understand the path. I've read some of the explainatiion and try from scratch but when I try to apply it to my task its …

Member Avatar for KagaKuro
0
3K
Member Avatar for shashigowda

Hi, i am beginer to codeignitor,i know how to write basic active queries in CI. i want to know how to write a query(having multiple conditions,double parentheses) in which supports CI. query is: $query="SELECT * FROM `apply_special_leave` WHERE ((`from_date` <= '$dt1' AND '$dt1' <= `to_date`) OR (`from_date` between '$dt1' AND …

Member Avatar for diafol
0
352
Member Avatar for iamthwee

I'm beginning to wonder... I hope someone can clarify my doubts. First let me explain. So I've been using codeigniter's session library without much thought. I assumed the code was just some wrapper for PHP native sessions. So I assumed it was stored server side so encryption and all that …

Member Avatar for owlowl076
0
8K
Member Avatar for SeanKann

Having an issue passing info from the modal to the model so that I can do a where statement. The first line below is the link to open the modal. Works fine no issues. <td><a href="javascript:;" class="openModal" data-toggle="modal" data-target="#email_details_<?php echo $SP->fit_tv_rollout_info_id;?>"> <span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span> </a></td> <div id="email_details_<?php echo $SP->fit_tv_rollout_info_id;?>" …

Member Avatar for gottaloveit
0
286
Member Avatar for davy_yg

controllers/Cspages.php public function index() { $this->load->helper('url'); $this->load->model('gallery_model'); $pic_unique_id = 18; // slider $data['pic'] = $this->gallery_model->get_picture($pic_unique_id); $this->load->view('index', $data); } views/index.php <?php foreach($pic as $pic_item): ?> <img src="<?php echo base_url('assets1/images/slider/'.$pic_item->pic_item );?>"> <?php endforeach;?> models/gallery_model.php public function get_picture($pic_unique_id) { $query = $this->db->get_where('galleries_pictures', array('picture_unique_id' => $pic_unique_id)); return $query->result(); } Now the result is: A …

Member Avatar for diafol
0
6K
Member Avatar for Adam_34

When accessing from ######1.co.uk (which has an SSL) to document root ###/production everything works fine. However when accessing ###/production from ######2.co.uk (which doesn't have an SSL - set up in the vhost file) the home page displays fine but the other pages are returning a 404. Here's the entry in …

Member Avatar for Dani
0
291
Member Avatar for kaungzaythu

In creating dropdown in my project encounters problems(errors). I'm very new to codeigniter. Please check and advise what is wrong with with my code? **Model** Public function get_region() { $return = array(); $query = $this->db->get('region')->result_array(); if( is_array( $query ) && count( $query ) > 0 ) { $return[''] = 'please …

Member Avatar for cereal
0
5K
Member Avatar for davy_yg

This is to enter the admin page: http://localhost/masterlinkci2/admin/ admin/views/login.php <?php $this->load->library('form_validation'); ?> <?php echo validation_errors(); ?> <?php echo form_open('cpages/ceklogin'); ?> <div class="login-card"> <center><?php //echo $warning; ?> <?php echo $this->session->flashdata('warning'); ?> </center> <h2>Gionda CMS Login</h2><br> <form> <div class="login"><input type="text" name="username" placeholder="Username"></div> <div class="login"><input type="password" name="password" placeholder="Password"></div> <br> <input type="submit" name="login" class="login …

0
157
Member Avatar for davy_yg

Hello, I am trying to make this program load the style.css correctly. Can anyone help me out? admin/views/login.php <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>CodePen - Log-in</title> <link rel='stylesheet' href='http://codepen.io/assets/libs/fullpage/jquery-ui.css'> <link rel="stylesheet" href="<?php echo base_url('assets/style.css'); ?>" media="screen" type="text/css" /> </head> <body> <br><br><br><br><br><br> <?php $this->load->library('form_validation'); ?> <?php echo validation_errors(); ?> <?php …

Member Avatar for Dani
0
2K
Member Avatar for davy_yg

site/views/index.php <?php foreach($pic as $pic_item): ?> { <img src="<?php echo base_url('assets1/images/slider/'.$pic_item->pic_item );?>"> } <?php endforeach; ?> controllers/Cspages.php public function index() { $this->load->model('gallery_model'); $pic_unique_id = 18; // slider $data['pic'] = $this->gallery_model->get_picture($pic_unique_id); $this->load->view('index', $data); } models/Gallery_model.php public function get_picture($pic_unique_id) { $query = $this->db->get_where('galleries_pictures', array('picture_unique_id' => $pic_unique_id)); return $query->result(); } How to fix …

Member Avatar for Mark_k
0
293
Member Avatar for davy_yg

Hello, Sending messages to this contact address giving an error message. Can anyone interpret why the error message appearing? ----- Forwarded Message ----- This message was created automatically by mail delivery software. A message that you sent could not be delivered to one or more of its recipients. This is …

Member Avatar for cereal
0
203
Member Avatar for davy_yg

Hello, I am trying to open pdf link that I place through tinymce. I add the link button through toolbar add or plugin in tinymce: https://www.tinymce.com/docs/plugins/link/ http://www.gsa-constructionspecialist.com/articles/article/detail/visi-dan-misi-training-names-gsa I wonder why I cannot open the pdf link that I place without having to enter the cpanel password? I already set the …

Member Avatar for diafol
0
278
Member Avatar for davy_yg

Fatal error: Call to a member function get_where() on a non-object in C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\masterlinkci2\application\site\models\gallery_model.php on line 10 I try this : Line 10: $query = $this->db->get_where('galleries_pictures',array('pic_id'=> $pic_unique_id)); class Gallery_model extends CI_Model { public function get_picture($pic_unique_id) { $query = $this->db->get_where('galleries_pictures',array('pic_id'=> $pic_unique_id)); return $query->result(); } } IN Controller: public function index() …

Member Avatar for davy_yg
0
2K
Member Avatar for davy_yg

The following code: <a href="<?php echo base_url('cpages/viewpicture/'.$this->uri->segment(3)); ?>" class="delete">BACK</a> Shows: BACK uri->segment(3); I am trying to erase uri->segment(3); part but do not know how to?

0
136
Member Avatar for davy_yg

Hello, I am trying to place pdf link in CI: http://www.gsa-constructionspecialist.com/articles/article/detail/tugas-lpjk-ke-5 I wonder why I cannot link it. I already place the file address name, yet it comes back to the original file when I click it. Try another file which I copy exactly from the cpanel: http://www.gsa-constructionspecialist.com/articles/article/detail/visi-dan-misi-training-names-gsa It has …

Member Avatar for davy_yg
0
503
Member Avatar for davy_yg

Update has been successful. Setting has been successfully updated! A PHP Error was encountered Severity: Warning Message: Invalid argument supplied for foreach() Filename: views/settings.php Line Number: 68 Backtrace: File: C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\companygiondaci\application\views\settings.php Line: 68 Function: _error_handler File: C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\companygiondaci\application\controllers\Cpages.php Line: 683 Function: view File: C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\companygiondaci\index.php Line: 315 …

Member Avatar for cereal
0
952
Member Avatar for davy_yg

Hello, I am trying to insert link with TinyMCE in Codeigniter web program. I use Roxyfilemanager as my filemanager. I store the pdf file in upload folders in root folders. Whenever I try to click the link nothing opens up to show the pdf file instead it shows me the …

Member Avatar for davy_yg
0
455
Member Avatar for davy_yg

I am trying this paging simulation but I have not yet successful. models/name_model.php <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Name_model extends CI_Model { public function __construct() { parent::__construct(); } public function get_name($num, $offset) { $query = $this->db->get('name', $num, $offset); return $query->result(); } } controllers/cwelcome.php public …

Member Avatar for Reeaz
0
328
Member Avatar for davy_yg

controllers/home.php $this->page_model->counter($this->data['post_detail']->post_ID); $this->data['post_list'] = $this->post_model->post($this->data['post_detail']->post_ID); $this->data['gallery_list'] = $this->post_model->post($this->data['post_detail']->post_ID, true); $isAjax = array('news-post'); if (in_array($this->data['post_detail']->template_name, $isAjax)) { if ( ! $this->input->is_ajax_request()) redirect($this->data['page_detail']->post_alias); return $this->load->view($this->data['post_detail']->template_name, $this->data); } $this->load->view($this->data['post_detail']->template_name, $this->data); views/news.php <?php $this->load->library('pagination'); $config['base_url'] = 'http://gsa-constructionspecialist.com/articles/article'; $config['total_rows'] = 14; $config['per_page'] = 5; $this->pagination->initialize($config); ?> <div class="w626 content right"> <?php if ($post_list){ foreach ($post_list …

Member Avatar for davy_yg
0
638
Member Avatar for Dani

Dazah API uses Redis to handle rate limiting. The goal is to limit every each client_id/user_id pair from making over 5,000 requests every 5 minutes. We use Codeigniter 3.x and it looks something like this: $flood_control = $CI->cache->get("user_limit:{$token_obj->client_id}:{$token_obj->user_id}"); if ($flood_control === false) { $CI->cache->save("user_limit:{$token_obj->client_id}:{$token_obj->user_id}", 0, 300); } else if ($flood_control …

Member Avatar for cereal
0
763
Member Avatar for mark_59

/* initialize the calendar -----------------------------------------------------------------*/ var date = new Date(); var d = date.getDate(); var m = date.getMonth(); var y = date.getFullYear(); /* selects the events to load in the calendar -----------------------------------------------------------------*/ $.ajax({ url: 'process.php', type: 'POST', data: 'type=fetch', async: false, success: function(response){ json_events = response; } }); $('#calendar').fullCalendar({ //events: …

0
176
Member Avatar for ashalatha

Controller: function addblogs() { $this->load->library('form_validation'); $this->form_validation->set_error_delimiters('<br /><span class="error"> ','</span>'); $this->form_validation->set_rules('blog_title','Blog Title'); $this->form_validation->set_rules('description','Blog Description'); $this->form_validation->set_rules('category_id','Category Name','required'); $this->form_validation->set_rules('position','Position'); if($this->form_validation->run()== FALSE) { $data['categorylist']=$this->blogs_model->categories_dropdown(); $data['mainpage']='blogs'; $data['mode']='add'; $this->load->view('templates/template',$data); } else { $this -> blogs_model -> insertblogs(); $this->flash->success('<h2>blogs Added Successfully!</h2>'); redirect('blogs'); } } Model: function categories_dropdown() { $this->table = 'categories'; $this->where('status',1); $categorylist=$this->dropdown('category_id','category_name'); return $categorylist; } function …

0
224

The End.