277 Topics

Member Avatar for
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 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
238
Member Avatar for Ventech_IT

Hi guys was wondering if someone could shed some light for me on how relational tables work in codeigniter, for example if i uploaded an image to the database through a from that collects data let's say a blog post. How would i link the two tables and then retrieve …

Member Avatar for Tpojka
0
90
Member Avatar for riwakawd

I would like to know if possible in my php codeigniter modelto be able to insert my file names where it matches up with the link insert post. The link post are in array i.e. <input type="text" name="link[]" /> Not sure whats best the name of the file inserts but …

Member Avatar for mtho
0
6K
Member Avatar for Ventech_IT

Hi guys, Could someone please help me with a small problem i am having? I want to display a message if there are no entry's in a table but for some reason i cant get this right. Here is my Controller: ----------------------- <?php if ( ! defined('BASEPATH')) exit('No direct script …

Member Avatar for Ventech_IT
0
257
Member Avatar for iamthwee

Hi guys, This one has got me completely stumped. Here are my trouble shooting notes. My upload script works absolutely fine without any changes on localhost. However, on the live production server my files do not get uploaded. My view is: <?php echo form_open_multipart('upload/do_upload');?> <input type="file" name="userfile" size="20" /> <br/> …

Member Avatar for iamthwee
0
9K
Member Avatar for iamthwee

This is driving me mad, I'm sure I'm missing something. I save the £ sign into the database and it displays fine when I check the database, but when I print this out in a pdf it displays as £. I can't use modify headers because I'm previewing a pdf …

Member Avatar for iamthwee
0
123
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
645
Member Avatar for Ventech_IT

Hi Guys i am currently building an app and using codeigniter as my framework and bootstrap to handle the Site so my question will be prashed in two parts. Im new to Codeigniter so please bear with me. Part One: Codeigniter Here is my current website header and i would …

Member Avatar for Ventech_IT
0
324
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
262
Member Avatar for Nabeel_2

on localhost add to cart is working fine $config['sess_cookie_name'] = 'ci_session'; $config['sess_expiration'] = 7200; $config['sess_expire_on_close'] = FALSE; $config['sess_encrypt_cookie'] = FALSE; $config['sess_use_database'] = TRUE; $config['sess_table_name'] = 'ci_sessions'; $config['sess_match_ip'] = FALSE; $config['sess_match_useragent'] = TRUE; $config['sess_time_to_update'] = 300; CREATE TABLE IF NOT EXISTS `ci_sessions` ( session_id varchar(40) DEFAULT '0' NOT NULL, ip_address varchar(45) …

Member Avatar for Nabeel_2
0
596
Member Avatar for divyakrishnan

Hi I have added a custom form validation in codeigniter. The callback function returns true/false & the value of validating field. // JavaScript Document class Test extends CI_Controller { /*custom validation function*/ function _checkdate() { $post = $this->session->userdata('post'); echo $fdate = $post['frmDt']; if (preg_match('/^[0-9-: ]*$/', $fdate)) { return true; } …

Member Avatar for cereal
0
156
Member Avatar for Dani

Trying desperately to get CodeIgniter and Nginx to play nice. I was able to get it working once a long time ago and I cannot seem to reproduce what I had. I am trying to follow: http://wiki.nginx.org/Codeigniter However, it works fine where / gives me the default controller/method, and I …

Member Avatar for Adrian_5
0
2K
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
Member Avatar for hxinen

In reference to this: http://sqllessons.com/categories.html *Change parentid NULL to 0* Let's say I have 6 levels of subcategories. How do I have chained select dropdown based on the main category which has a 0 value under parentid, then show it's subcategoryLevel1 > SubcategoryLevel2 > and so on. Stops when there …

Member Avatar for pritaeas
0
184
Member Avatar for jovstudios

Hello Guys, I have a Question, it possible storing image to dabase using blob in the Framework of CI? This is my Code in Controler. function get_data_from_post(){ $data['page_headline'] = $this->input->post('page_headline',TRUE); $data['page_title'] = $this->input->post('page_title',TRUE); $data['keywords'] = $this->input->post('keywords',TRUE); $data['description'] = $this->input->post('description',TRUE); $data['page_content'] = $this->input->post('page_content',TRUE); $imageName = $_FILES['featured_img']['name']; $data['featured_img'] = $this->input->post(file_get_contents($_FILES['featured_img']['name']),TRUE); return $data; …

Member Avatar for jovstudios
0
8K
Member Avatar for iamthwee

Bit of an open question I must admit but I began working on my own CMS in codeigniter. Trouble is - it is getting massive and taking very long. Now I like that wordpress has most of the things already integrated so I was just wondering who here has integrated …

Member Avatar for iamthwee
0
2K
Member Avatar for ravi142

Hello Everyone. I have make Form with use of set_value('Name'); in codeigniter but In Input type Textarea not given value. **Code:** <?php $last_goals = ''; if($this->session->userdata('user_from') == 'log') //After login value come From db { $last_goals = $getdesired[0]->ds_goals; } else { $last_goals = set_value('career_goals'); // without login this value come …

Member Avatar for ravi142
0
3K
Member Avatar for iamthwee

Hi guys, I just came across an interesting article regarding codeigniter cookie sessions. http://www.dionach.com/blog/codeigniter-session-decoding-vulnerability It seems it is fixed in 3.0 but I know that version isn't stable. I wonder what Dani thinks about this?

Member Avatar for Dani
0
523
Member Avatar for iamthwee

So I was briefly looking over laravel, I doubt I'm close to switching, but I do like the way routing works. In codeigniter it seems so convoluted. I gotta create a controller to load the view, then I got to create a controller to process the information then I have …

0
93
Member Avatar for iamthwee

Hey guys, I'm creating an ultimate CMS with codeigniter, at the moment I've got the following -login system with email -installer -menu builder with drag and drop -forums with search and create categories -Blog and and edit posts I'm looking for a page builder now. Specifically to drag and drop …

Member Avatar for diafol
0
948
Member Avatar for iamthwee
Member Avatar for cereal
0
353
Member Avatar for iamthwee

So I'm becoming very familiar with codeigniter now and loving it, but I'm just wondering about the migration (for db tables and structures) class and how you would use it. Is it actually useable in a real world example. It sounds great in theory but I'm unsure. Can someone clarify …

Member Avatar for veedeoo
0
129
Member Avatar for iamthwee

Morning guys, I would like someone to clarify my doubts with Codeigniter's file structure. The CI default structure is -application -system but I have a lot of other files in the same directory like, phppdf, images, etc is it better to further separate them into another subdirectory for clarity such …

Member Avatar for Tpojka
0
216
Member Avatar for iamthwee

I'm intending on doing a database for hairdressers (as an example) So there will be: 1. Customers 2. The hairdresser can check their calendar to see who is booked on that day. 3. Customers can search of available times slots. 4. The hairdresser can enter customers onto the system, customers …

Member Avatar for diafol
0
369
Member Avatar for ravi142

Hello I faced this type of Error in codeigniter. Can you suggest me any solution... *ERROR : You must use the "set" method to update an entry.* In Model Code is.. $this->db->where('user_id',$user_current_id); $this->db->update('admin_resume_expertise',$data); Thank YOu

Member Avatar for krishnanair
0
179
Member Avatar for ravi142

Hello, I am learning codeigniter So I have 3 radio button. My code as under **View Page** <li id="AgencyType" style="z-index: 93;"> <label class="mandatory" for="ExternalAgency">Are you an employment agency?</label> <ul> <li style="z-index: 92;"> <?php $data = array( 'id'=>'ExternalAgency', 'name'=>'ExternalAgency', ); echo form_radio($data);?> <label for="ExternalAgency">No, we recruit directly.</label> </li> <li style="z-index: 91;"> …

Member Avatar for iamthwee
0
137
Member Avatar for ravi142

I am learning codeigniter when i create rule for validate dropdown box but its not given me error message **View File** <?php $option = array('0' =>'[ Please select an Experience Level ]', '1' => 'Without experience', '2' => 'Internship', '3' => 'Less than one year', '4' => 'One year', '5' …

Member Avatar for iamthwee
0
2K
Member Avatar for winbala5

In my new project I decided that I will use RedBean ORM system with Codeigniter PHP Framework. How can I get all records from table with simple relation? I know, that I can use R::exec or R::getAll queries but I want to make sure if there any other solution(s). TABLE …

Member Avatar for winbala5
0
255

The End.