459 Topics

Member Avatar for
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
264
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
227
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
260
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
100
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
309
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 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
777
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
381
Member Avatar for Ventech_IT

Hi there i want to create a news item that posts to my database (this works fine) but i want to be able to upload an image in the same form and submit the file path to the news table where all the other content is placed. Here is my …

Member Avatar for Ventech_IT
0
236
Member Avatar for SHAHAB UDDIN

------------------------------------------------------ Main code: ------------------------------------------------------ public function forum_detail_info($post_id) { $data = array(); $this->load->library('pagination'); $config['base_url'] = base_url() . 'welcome/forum_detail_info/'; $config['total_rows'] = $this->db->count_all('tbl_forum'); $config['per_page'] = 3; $this->pagination->initialize($config); $data['about'] = $this->welcome_model->about_info(); $data['about'] = $this->welcome_model->about_info(); $data['forum_post_info'] = $this->welcome_model->select_all_forum_post_info($post_id); //---------------more $this->load->view('website/include/header', $data); $this->load->view('website/master_page', $data); $this->load->view('website/include/footer'); } ---------------------------------------------- I want code: ---------------------------------------------- public function forum_detail_info($post_id) { $data …

Member Avatar for Web Dev Rob
0
312
Member Avatar for Ventech_IT

Hi Guys Please have a look at my model and then read below public function get_events(){ $query = $this->db->get('events',1, 1); return $query->result_array(); Okay so when i run the page i only get my message that no entry's are in the table! So when i insert a entry it displays the …

Member Avatar for Ventech_IT
0
398
Member Avatar for Sikander Nasar

# Security for Wordpress and Codeigniter # I want to integrate wordpress and codeigniter and I am confuse about security.My admin panel will be in codeigniter and frontend in wordpress.what type of security is there.

Member Avatar for mangel.murti
0
168
Member Avatar for Lorele

CodeIgniter 3.0 is available in development, and has been taken over by British Columbia Institute of Technology, taken over from Ellis Labs, and has moved to [CodeIgniter.com](http://www.codeigniter.com/). I am new to using PHP and databases, but after trying to figure out the best platform to work on a web project …

Member Avatar for lorenzoDAlipio
0
560
Member Avatar for veedeoo

and the new home for codeIgniter is (drumbeat please... and another drumbeat) ...The [British Columbia Institute of Technology (BCIT)](http://www.bcit.ca/) in Vancouver, Canada. Please read the official announcement from ellislab [here](https://ellislab.com/blog/entry/your-favorite-php-framework-codeigniter-has-a-new-home). IMHO, the decision made by the EllisLab is in the best interest of CodeIgniter. Although, I am not sure how …

Member Avatar for veedeoo
4
431
Member Avatar for dwlamb

I have some experience when it comes to CodeIgniter. I am trying to figure out a method for determining the window size of a browser and assign it POST or $this or the user session (also part of $this). I need the variable to persist for the session. In my …

Member Avatar for veedeoo
0
636
Member Avatar for Murphyv10

Hey there Im tring to insert to a database from a form , however I cant get it to insrt with the dropdwon list, any help would be loved <h1>Insert Data Into Database Using CodeIgniter</h1> <?php echo form_label('lecturer_id:'); ?> <?php echo form_error('dname'); ?> <?php echo form_input(array('id' => 'dname', 'name' => …

Member Avatar for Murphyv10
0
175
Member Avatar for Dani

How can I catch and log PHP fatal errors in CodeIgniter? if (defined('ENVIRONMENT')) { switch (ENVIRONMENT) { case 'development': error_reporting(E_ALL); ini_set('display_errors', '1'); break; case 'testing': case 'production': error_reporting(0); break; default: exit('The application environment is not set correctly.'); } } When environment is set to production and there's a fatal error, …

Member Avatar for Dani
0
261
Member Avatar for daniel36

i am working on codigniter . i am developing basic cms.my view code of generating dynamic pages at front end is <ul id="jsddm"> <?php for ($i=1; $i<=$url['10']['10']['10']; $i++) { ?> <li><a href="<?php echo site_url($url[$i]['0']['slug']); ?>"> <?php echo $url[$i]['0']['page_name']; ?> </a> <?php if($url['11'][$i]['11']>0){ ?> <ul> <?php for ($j=1; $j<$url['11'][$i]['11']; $j++) { …

Member Avatar for Nabeel_2
0
6K
Member Avatar for kakalahori

Hi i am having an issue with my website. My friend wrote the codes using codeignitor. I am a beginer just to add up . now the index page is only visible and i cannot access any other page than that. Not the admin pages as well. The live codes …

Member Avatar for kakalahori
0
229

The End.