484 Topics

Member Avatar for
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
956
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
460
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
640
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
765
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
180
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
248
Member Avatar for Anmol_4

i have a array like array(2) { [0]=> array(18) { [0]=> array(8) { ["attandance_id"]=> string(3) "162" ["entry_date_time"]=> string(19) "0000-00-00 00:00:00" ["attandance_date"]=> string(10) "2016-04-06" ["class_id"]=> string(5) "11232" ["user_id"]=> string(5) "53697" ["status"]=> string(1) "3" ["timestamp_key"]=> string(27) "99b2f75ac6de8a52_1460025757" ["create_by"]=> string(1) "0" } [1]=> array(8) { ["attandance_id"]=> string(3) "163" ["entry_date_time"]=> string(19) "0000-00-00 00:00:00" ["attandance_date"]=> …

Member Avatar for ryantroop
0
212
Member Avatar for davy_yg

Hello, I need help with CI. Who can help me throughly for my CI problem. Please gives me several alternatives. Thanks in advance.

Member Avatar for diafol
0
176
Member Avatar for brianbabu

I am really having a problem with the facebook login with codeigniter. I am getting the login part, session and db query execution working just fine, but sometimes i keep getting a facebook api exception error screen. How can i get rid of this? Is there any work around for …

Member Avatar for cereal
0
170
Member Avatar for Mario A._1

I´m in disgrace with the framework Codeigniter version 2.2.0, it only displays the json response, no errors, no chart... Code **Model** function get_pata() { $this->db->select('theyear, cantidad_alumnos, rawkw, rawkwxgei'); $this->db->from('pdc_factor_gei'); $query = $this->db->get(); return $query->result(); } **Controller to handle data from Model and display in view;** function data_fik() { $data = …

Member Avatar for Mario A._1
0
371
Member Avatar for rjusman90

i am doing this in all my Controllers for Menu But i want to do that i give it once in core folder of CI Any Suggestion ? $data['cms_menus']=$this->database_model->GetRecords('cms_menus',false, array('FKMenuID'=>null)); foreach ($data['cms_menus'] as $key => $datas){ $data['cms_menus'][$key]['childs']=$this->database_model->GetRecords('cms_menus',false, array('FKMenuID'=> $datas['PKMenuID']));} `

Member Avatar for cereal
0
1K
Member Avatar for Ventech_IT

Hi guys just a quick question...when you upload a file to the database and the file name is saved and encrypted in codeigniter how do i make a link that when clicked will download the file associated with the id of the table entry? for instance this is my view …

Member Avatar for cereal
0
1K
Member Avatar for chandnee

$sql = "SELECT doc FROM file_loc where file_id='1'"; while($results = mysql_query("$sql") or die("Invalid query: " . mysql_error()); { // set the header for the image header('Content-type: application/pdf'); header('Content-Disposition: inline; filename = "' .$results . '"'); header('Content-Transfer-Encoding: binary'); if (isset($results)) { $pdf = new FPDI(); // get the page count $pageCount …

Member Avatar for cereal
0
792
Member Avatar for Muhammad_117

Hi friends, I am going to build a website like http://www.myadsinn.com/. This site is about posting ads free. I am also needs feature like https://www.olx.com.pk/ Can any one is interested in it

Member Avatar for rproffitt
0
1K
Member Avatar for ecinevenice

$filename ="cs_orderfrequency.xls"; $contents = $this->load->view('reports/order_frequency_excel',$data); header('Content-type: application/ms-excel'); header('Content-Disposition: attachment; filename='.$filename); This code enables me to export directly a view to excel file without having to use PHPExcel as thirdparty. Although it gives me an error of *"The file your trying to open is in a different format than specified by …

Member Avatar for cereal
0
247
Member Avatar for eno_1
Member Avatar for josh.sm

I started new Ecommerce website ..developed in php.(codeigniter)..and it is SEO friendly but we are in only gifting category .but any one please suggest me how attract people to our website.?

Member Avatar for jacks009
0
197
Member Avatar for Harmeet_2

Hi i m new with codeigniter Kindly help me how i display data in dropbox from database and save into datbase.

Member Avatar for Ajay Gokhale
0
137
Member Avatar for Prateek_2

I want to set cron job using codeigniter, in godaddy shared hosting i used the following code to execute `movies` controller's `cool` method. /web/cgi-bin/php5 "$HOME/html/MOVIESDOM.COM/index.php" movies cool Problem is it always execute default controller. Pls tell me how to execute `movies` controller's `cool` method

Member Avatar for Arfan_1
0
6K
Member Avatar for RudyM

Hi all, I'm using CodeIgniter with MSSQL and works ok for basic queries. But then I do the following: Add a varbinary(max) column to my table (new_col) Change the query in the model: `$this->db->get_where('user_stats_backup',array('new_col' => "0xD9E6762DD1C8EAF6D61B3C6192FC408D4D6D5F1176D0C29169BC24E71C3F274AD27FCD5811B313D681F7E55EC02D73D499C95455B6B5BB503ACF574FBA8FFE85")` When I load the page, it doesn't seem to be returning anything. I created …

Member Avatar for RudyM
0
315
Member Avatar for RudyM

Hi all, I've been wrestling with CodeIgniter to work with MSSQL. Turned out to be a whole ordeal with changing the functions to use the newly updated sqlsrv functions. After all that, I still seem to have issues with it. While I'm working this out, I wonder if anyone has …

Member Avatar for RudyM
0
161
Member Avatar for mohammed_22

I want to get all the related pics corresponding to the pic selected.... here is my view page <?php foreach($detail as $row){?> <img class="primary-image" ima="<?php echo base_url();?>images/<?php echo $row->image;?>" src="<?php echo base_url();?>images/<?php echo $row->image;?>" alt="" /> <?php }?> my control page looks like this.... public function product_details($p_id) { $data['active_mn']='product_details'; $data['product']=$this->roxmodel->get_product_details($p_id); …

Member Avatar for diafol
0
197
Member Avatar for prieku

I have a base64-encoded string on database row. How to create a .pdf file from this encoded string using codeigniter and mpdf ? foreach($report as $files) /* send email confirmation*/ $this->data['email'] = TRUE; require_once APPPATH.'third_party/MPDF561/mpdf.php'; $mpdf=new mPDF('c','A4','','',10,10,20,20,10,10); $mpdf->SetDisplayMode('fullpage'); $this->load->helper('custom_email'); $emailTo ="email@address.here"; $emailFrom =$this->config->item('email'); $emailSubject ='Subject Here'; $emailMessage ='Your PDF files …

Member Avatar for gabrielcastillo
0
2K
Member Avatar for mohammed_22

i want to display all related images according to the image selected here is my code... my control looks like this.. public function product_details($p_id) { $data['active_mn']='product_details'; $data['detail']=$this->roxmodel->get_related_image($p_id,4,0); var_dump($data['detail']); $this->load->view('product_details',$data); } my model looks like this public function get_related_image($p_id,$limit,$offset) { $this->db->order_by("gallery.id","desc"); $this->db->where('category_id',$p_id); $query=$this->db->get('gallery',$limit,$offset); return $query->result(); } my view page looks like …

0
101
Member Avatar for mohammed_22

here i want to display images according to the numbers given here is my view page <div class="limiter hidden-xs"> <label>Show</label> <select> <option selected="selected" value="">9</option> <option value="">12</option> <option value="">24</option> <option value="">36</option> </select> per page </div> my controler section is this public function look_book() { $data['active_mn']='look_book'; $config['base_url'] = base_url().'roxcontrol/look_book'; $config['per_page'] = 9; …

Member Avatar for diafol
0
350
Member Avatar for Anmol_4

Hello,I need help in updating user image in form. I have form of around 10 fields in there is options for updating images(images which have been uploaded at time of reg)** Max 5 images is allowed **now i am successful in saving data to database and at time of updating …

Member Avatar for diafol
0
174
Member Avatar for shakayu

how to create a waiting list for an appointment in php with codeigniter...any guide please

Member Avatar for diafol
0
1K
Member Avatar for mohammed_22

hi...iamb struggling with this code please help me my controller is this public function men_clothing() { $data['active_mn']='men_clothing'; $data['men']=$this->roxmodel->get_category_by_parent($p_id=8); $data['kids']=$this->roxmodel->get_category_by_parent($p_id=9); $data['galllery']=$this->roxmodel->get_galleryImages($p_id); } my model section is this public function get_galleryImages($p_id) { $this->db->where('gallery.category_id',$p_id); $query = $this->db->get('gallery')->result(); return $query; } and my view page is this <?php foreach($galllery as $row){?> <!-- single-product start …

Member Avatar for cereal
0
1K
Member Avatar for UK-1991

I have created a function for displaying the shortcode within my content same as like don in wordpress not totally like it but some the thing is that when the regex becomes true will display shortcode for the given name but what happening now is it's displaying all within the …

0
136

The End.