484 Topics

Member Avatar for
Member Avatar for praba_web

How to unlink multiple files in codeigniter? I have to delete records from database. delete records works . what i want, after deleting records also files should get delete form directory(/uploads/deals/) My scripts is below: public function delete($merchant_deals_id) { $deal = $this->admin_deal_model->get_single_deal($merchant_deals_id); $path = './uploads/deals/'; $image1 = $path.$deal['deal_images1']; $image2 = …

Member Avatar for cereal
0
2K
Member Avatar for praba_web

Hi there , How to retain value file upload input in codeigniter? Please give me an idea? i am using below one: but not working.. <input type="file" name="image1" value="<?php echo set_value('image1')?>" class="form-control" style="width:300px;" id="dealImg">

Member Avatar for praba_web
0
11K
Member Avatar for Ventech_IT

Hi there so i was just wondering how i would go about developing some sort of page to display whether or not a module has been loaded or not, is there some simple way to do this that can scan your web app on launch and then report if a …

Member Avatar for Ventech_IT
0
209
Member Avatar for praba_web

I am creating webinar project in codeigniter.How can I create live video streaming to be used for live video conferences/chatting in a PHP application.?

Member Avatar for diafol
0
1K
Member Avatar for praba_web

Hi there, How to change the status automatically without controller when the date crossed closing date in codeigniter? sorry for my terrible english...

Member Avatar for cereal
0
104
Member Avatar for praba_web

Hi there , How to write multiple update_batch query in codeigniter? My script is not working ... Please give some solutions for multiple update row using update_batch... getting below Error: A Database Error Occurred You must use the "set" method to update an entry. Filename: D:\xampp\htdocs\DEAL\system\database\DB_active_rec.php Line Number: 1273 mycontroller …

Member Avatar for praba_web
0
9K
Member Avatar for riwakawd

I have a helper function in codeigniter php where I can use helper like so load_controller('column_left', 'index'); for example "column_left" is the file and class name. How ever that works fine but I would like to be able to type a folder name in load_controller('some_folder/some_class', 'index'); and it would detect …

0
116
Member Avatar for praba_web
-1
159
Member Avatar for praba_web

Hi there, I follow this tutorial for my web app. link: http://www.thesoftwareguy.in/creating-multi-user-role-based-admin-using-php-mysql-bootstrap/#comment-4583 Can anyone give me idea to do this same app using codeigniter.? Thanks.

Member Avatar for diafol
0
1K
Member Avatar for murugami eric

am using ci 2.1.4 to create a simple crud application being new to ci and am having this error:'Unable to load the requested class: validation' here is my controller code: class Person extends CI_Controller{ //num of records per page private $limit = 10; public function __construct(){ parent::__construct(); //load library $this->load->library(array('table','validation')); …

Member Avatar for tapfumamanhanga
0
3K
Member Avatar for MtR_1

> while updating my form it retrieves all info from db in respective field but unable to display values in dropdowns > this is my controller for update function update($a_id) { $data['a_id'] = $a_id; $data['sector'] = $this->sf_model->get_sector(); $data['subsector'] = $this->sf_model->get_subsector(); $data['type'] = $this->sf_model->get_type(); $data['view'] = $this->sf_model->get_account_record($a_id); $this->form_validation->set_rules('a_name', 'Account Name', 'trim|required|xss_clean|callback_alpha_only_space'); …

Member Avatar for diafol
0
249
Member Avatar for Ventech_IT

Hi guys i have simple problem that i can't seem to solve and has been frustrating me for some time i am a newbie when it comes to Codeigniter so be kind hahah, okay so on to my problem i have form validation on a subscription form that seems to …

Member Avatar for lorenzoDAlipio
0
390
Member Avatar for jithinjohny

Hi, Previously I have worked on codeigniter Framework. Since codeigniter developers are not even sure about version 3.0 , I decided to work with a better/new framwork. The problem is, whichever the Framework I choose, it needed Composer to work on. First I choose laravel, then symfony , later cakephp. …

Member Avatar for jithinjohny
0
267
Member Avatar for Ventech_IT

Hi guys having some trouble here with my date's output currently it reads 2015-05-05 10:05:22 but i would like to have it render as eg. Monday 12 Mei 2013 how would i achieve this in codeigniter? Here is my code for creating the post: (Controller) public function new_post(){ if($_POST){ $data …

Member Avatar for Ventech_IT
0
340
Member Avatar for riwakawd

I would like to know if possible to convert this to the codeigniter active record way using this->db->join etc. What's the best. It works fine with the code I got but would like to make it work with codeigniter db active records. http://www.codeigniter.com/userguide2/database/active_record.html public function get_category($category_id) { $language_id = $this->check_language(); …

Member Avatar for cereal
0
229
Member Avatar for satheeshakira

I am used codegniter 1.7.1 older version for my real estate stie and it is working fine in local host xamp server. But when i uploaded in to server, the site not working , showing error as "Fatal error: Cannot redeclare class Locale in /application/libraries/Locale.php on line 12" pls help …

Member Avatar for Walid_1
0
1K
Member Avatar for Israel_2

So I have this simple query that if I run it on sql server management studio it gives me results. Select name, count(*) As thecount from Restaurants group by name I am using codeigniter and a wrapper library for datatables called [ignited datatable](https://github.com/IgnitedDatatables/Ignited-Datatables/wiki/Function-Reference) . I am using it because its …

0
263
Member Avatar for SeanKann

I have a page that has 2 forms on it. It's an inventory system. One form is to add items to your inventory. The second form is to update your qty of each item. The first one that adds items to the inventory works fine. But the second one will …

0
250
Member Avatar for amrak

Hi all, I am trying to create a multiple drop down list in my codeigniter project with the following hierarchy Dzongkhag(District)->Geog(Town) ->village. I am unable to get any display in the town and village drop down list. The following are the snippets from my project. //controllers/form.php $data['dzongkhags'] = array( 'Bumtang' …

Member Avatar for amrak
0
1K
Member Avatar for rjgapz

$this->db->select('referral1.*, client.*, employee.*'); $this->db->from('client'); $this->db->join('referral1', 'client.referral_id = referral1.referral1_id', 'inner' ); $this->db->join('assign_psychotherapist ', 'assign_psychotherapist.a_referral_id = client.referral_id', 'inner' ); $this->db->join('employee ', 'assign_psychotherapist.a_psychotherapist_id = employee.empid', 'inner' ); $this->db->where("referral_status ='Assigned' OR referral_status ='Accepted' "); $this->db->order_by("referral_date", "desc"); $this->db->select('referral1.*, client.*, volunteer.*'); $this->db->from('client'); $this->db->join('referral1', 'client.referral_id = referral1.referral1_id', 'inner' ); $this->db->join('assignvolunteer', 'assignvolunteer.Vreferralid = client.referral_id', 'inner' ); $this->db->join('volunteer', 'assignvolunteer.Vvolunteerid …

Member Avatar for mangel.murti
0
4K
Member Avatar for chaitu11

My Model : admin_login_model.php Unable to view them in browser as shown in the image below http://i.stack.imgur.com/fychj.png i am working on CodeIgniter version 3 Can anyone tell me what is the issue if ($email === $admin_email && $password = $password) { echo 'credential match'; $this->load->helper('cookie'); if ($remember_me == '1') { …

Member Avatar for alisajjad160
0
296
Member Avatar for chaitu11

I am using codeigniter if ($this->form_validation->run() ) always returns false. please help me out with this Here is my controller and view page as shown bellow This is controller admin.php <?php defined('BASEPATH') OR exit('No direct script access allowed'); class Admin extends CI_Controller { public function index() { $this->login(); } public …

Member Avatar for chaitu11
0
4K
Member Avatar for chaitu11

i am creating an admin panel in my project. So to sepeate admin files i am creating admin folder in my views can i also create admin folder in my controller and model. to seperate admin related file? is that a correct procedure?

Member Avatar for chaitu11
0
102
Member Avatar for Ventech_IT

Hi guys Just a quick question...I have recnetly created a contact form for my site in codeigniter and the email sends and all that but i seem to have a problem getting the $_POST data to display in the message body. After my validation is done and the form gets …

Member Avatar for Ventech_IT
0
311
Member Avatar for SeanKann

I'm trying to get this cronjob to work but it won't exec the the ffmpeg exec that I have in my controller file. When I try to run it via web browser it outputs the variables correctly but won't exec <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); …

Member Avatar for cereal
0
3K
Member Avatar for Anuj877

I am using the Html2pdf(dompdf) library for codeigniter,Its working fine but i cannot get images in pdf files. this is the url where i download the library. https://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&uact=8&ved=0CCgQFjAB&url=https%3A%2F%2Fgithub.com%2Faiwmedia%2FHTML2PDF-CI&ei=wijjVID8GIqWuATqnYBY&usg=AFQjCNFGnkCMd1t5K55fApAyeca4dCE-mQ&sig2=-ix5k0Vhj81f6BkzIY5pPQ&bvm=bv.85970519,d.c2E

Member Avatar for cereal
0
2K
Member Avatar for riwakawd

When I or user logs on it checks what permissions it has. And then on a form if has not got permission throws error. Example: <?php class Users_groups extends CI_Controller { public function update() { if (($this->input->server('REQUEST_METHOD') == 'POST') && $this->validateForm()) { // Modal stuff } } public function index() …

Member Avatar for riwakawd
0
259
Member Avatar for saadi06

Hi, I am using codeigniter for multiple file uploading and it is giving me serious problems. The data from the files are coming to my controller. But when I try to run the upload script it gives me error that the A PHP Error was encountered Severity: Warning Message: Illegal …

Member Avatar for chetra
0
780
Member Avatar for Ventech_IT

Hi guys just a quick question how do i send email from a form in codeigniter? I have searched and tried to get it right but it just keeps telling me that the page required could not be found? Here is my view: <div class="container"> <div class="row"> <div class="container"> <div …

Member Avatar for cereal
0
191
Member Avatar for riwakawd

I am having trouble with unserialize method does not seem to work for my codeigniter project. What is the best method to unserialize with codeigniter php. I get a error A PHP Error was encountered Severity: Notice Message: unserialize(): Error at offset 67 of 139 bytes Filename: extension/model_module.php Line Number: …

Member Avatar for pixelsoul
0
384

The End.