484 Topics
| |
| 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 … |
| Hey guys, At the moment more for convenience I'm giving my codeigniter files recursive 777 permissions which is bad. I'm still in the development stage so it is not an issue. But upon release for a production environment what is the best practice for the permission of the files. Specifically … |
Hello I am build pagination but its give me stuck. **admin_cont Controller Page** $this->load->library('pagination'); $config['base_url'] = "http://localhost/Job-portal-CI/admin_cont/search_me"; $config['total_rows'] = $this->db->get("admin_emp_job_description")->num_rows(); $config['per_page'] = 2; $config['num_links'] = 20; $this->pagination->initialize($config); $data['records'] = $this->db->get('admin_emp_job_description',$config['per_page'],$this->uri->segment(3)); $this->load->view('admin_jobseeker/search_lists',$data); **View Page** <?php echo $this-> table-> generate($records); ?> <?php echo $this->pagination->create_links(); ?> **Problem** Its give me Link but when … | |
Just upgraded to Firefox 30.0 and sessions no longer seem to work. The cookie just doesn't set. Using `$this->session->set_userdata()` Not using Firebug, although reading on the web indicated it has been a culprit with similar issues. | |
| 3.0 is out. Anyone used it? Is it worth migrating to... Is it stable? |
| 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 … |
| 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 … |
Hello everyone. Here just page refresh Counter++. $this->db->select('Counter_field'); $this->db->where('id', $id); $cnt = $this->db->get('Job_Description'); $new_cnt = $cnt+1; $data = array('Counter_field'=>$new_cnt); $this->db->where('id',$id); $query = $this->db->update('Job_Description',$data); What is wrong with above Query.. Every time i want increment and go to update results store in DB. | |
I want To make a file downloadable using codeigniter. | |
| Hi I am using codeigniter and I want to use a constant defined in the config>constant file. For example, my color theme for my view might be blue, so I save this in the constants file. define('blue', '#3fsefe'); Now I can use this in all my views... works fine. But … |
| I'm just wondering what the codeigniter caching library does and where it might be useful, or what problems people have encountered with it are. |
Aplication developed in PHP is more stronger than Codeigniter Aplication ? | |
Hello EveryOne I confuse of bellow code <?php if($True == 0){ ?> <a href="/#"> Apply </a> <?php}else{?> <a href="/#"> Aleary applied </a> <?php }?> **Given Me Error** `Parse error: syntax error, unexpected '}'` **BUT Solved It**: When i replace '<?php' **else** to '<?' it could be solved. But why it … | |
| 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 … |
Hello I have use 'LIKE' query in Model $this->db->like('job_title','keywords','both'); $query = $this->db->get('job_description',$data); which generate Query Output like SELECT * FROM (`job_description`) WHERE `job_title` LIKE '%keywords%' LIMIT 1 **Problem:** How could i remove the LIMIT that automatic generate in Query **OR** can i given Infinite LIMIT in CI Query. Can you … | |
Hello Everyone, I wrote this script way back in 2008 as Version1. However, I was forced to forget about this, because it was criticized by many developers with BS, MS, and "Seasoned PHP Developer" under their names. During those days, I couldn't stand up for my own reasons, because I … | |
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 | |
| foreach ($query->result() as $row) { echo anchor("forum/topic/$row->topicid", my_html_escape(($row->name)), 'attributs'); echo ' by '; echo $this->Stuff->get_topic_author($row->topicid); echo ' replies '; echo $this->Stuff->get_replies($row->topicid); echo ' Last post '; echo $this->Stuff->get_topic_last_post($row->topicid); echo br(); } How do I conveniently pass that to my view. Calling a model function within the original query->result has perplexed … |
| Sup. I'm using codeigniter with twitter bootstrap modal window and I would like it to talk to the controller... How... Cheers in advance. |
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;"> … | |
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' … | |
I am Learning so Can suggest some code. How can i add Multi select Box in Codeigniter. Thank You | |
here, home.php is one controller file and i want to redirect into another controller file login.php but this code is not working. if you have any idea then plz help me... *home.php* <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Home extends CI_Controller{ function __construct(){ parent::__construct(); $this->check_isvalidated(); … | |
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 … | |
| foreach ($query->result() as $row) { echo anchor("forum/topic/$row->topicid", my_html_escape(($row->name)), 'attributs'); echo ' by '; echo $this->Stuff->get_topic_author($row->topicid); echo ' replies '; echo $this->Stuff->get_replies($row->topicid); echo ' Last post '; echo $this->Stuff->get_topic_last_post($row->topicid); echo br(); } This has been bothering me for a while. Let's say I have that code I want to pass this … |
| Evening ladies and gents. Just wondering what is common practice but once a session is set I have been using a validate session in each method/function in my controller. Seems like a lot of typing... necessary ... still a lot of typing. Is this what everyone else does? Ta. |
I have the Ajax call listed bellow inside a jquery function, and the ajax call is not working. I've used "alert" to debug and its like the jquery function didn't even had the ajax call. Nothing inside it is processed, with no sucess and no errors. Isn't it possible to … | |
| Hey guys, At the moment I have an `if == admin then show admin form` on my views. I guess it was more for the sake of convenience rather than anything else. Is it best practice to create a separate controller and view for an admin panel and place this … |
Hello, I am trying to download my online website: [gsaconst](www.gsa-constructionspecialist.com) offline - and set it to work offline, yet I haven't been successfull. In my offline website I receive this error message: -------------------- A Database Error Occurred Unable to connect to your database server using the provided settings. Filename: C:\xampp\htdocs\gsaconst\system\database\DB_driver.php … | |
class Index_model extends MY_Model { protected $user_id=array(); private $last_id; public function __construct(){ $this->load->database(); $this->_table='profiles'; } public function insert_step_1($spram) { $firt_name= $this->session->userdata('first_name'); if($first_name == '' || $last_name == '' || $relationship_to_senior == '' || $email == '' || $insurance == '' || $price_range == '' || $if_insurance == '' || $facility_placement … |
The End.