484 Topics
| |
Hello, I am looking at a git course and codeigniter best practice in tutsplus. I am totally lost with all the installations I did since yesterday. I installed git, cygwin and composer. Now in the cygwin terminal I write: <code>composer -V</code> and I get my composer version. Then I go … | |
Hi there ! The code(in model) given below generates the list structure: function getNavigation($parent_id = 0, $show_product = 0, $flg = 0 ){ $query = $this->db->get_where('categories', array('parent_id' => $parent_id)); //var_dump($query->result()); //exit; if($query->num_rows() ){ $this->navigation .= '<ul id="browser" class="filetree">'; foreach($query->result() as $v){ $this->navigation .= '<li> <span class="folder">'; if($flg) { if($v->categories_id == … | |
I’m pretty much new to codeigniter and PHP. I need help with insertion of data in the db from multiple clone form fields(not using implode, I have used implode and managed to push data which I will post here), this from clone form fields(If I click add, it should display … | |
Hello, I need help with htaccess and a sub domain. I have a site I developed with ci 2.1.3 My folders structure is: c:\sites\mysite c:\sites\mysite\application c:\sites\mysite\system c:\sites\mysite\public_html\index.php c:\sites\mysite\public_html\assets In the public_html folder I have the htaccess file: RewriteEngine On RewriteCond $1 !^(index\.php|assets|images|robots\.txt|captcha) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ … | |
Hi there, I am developing a site for a recruitment agency, and I have now come to the point where I need to develop a ranking system of some kind to pull the best candidates for a particular job out of the database and display it or notify the candidates … | |
Hello, I am developing a site with CI 2.1.3 I have a blog module, in this blog I have a form to post a comment. I am calling this form inside a view with: `echo Modules:: run('blog/comment');` When I submit this form with ajaxForm, or refresh the page, the values … | |
Hello dear DaniWeb users and thanks for reading this thread. Eight months ago I started a forum CMS project, but alone it's very hard to develop fast and quality. My intentions of writing this thread are to make some interest over the developers of this massively huge website and to … | |
Hello, I am developing a web site with codeigniter 2.1.3 I am using an ajax call to post data to my controller, but for some reason the data is not being sent. I am using ajax calls all over the application and they all work well just not this one. … | |
hi there i have a website develop in codeigniter framework i have upload the website in subdomain but the the problem with url rewrite. the website home page works fine oes.techpawer.com but when i open the login page or any other page it will not work like to open login … | |
Hi all, I'm new to codeigniter, and i want to know how to approach or a small example as to how to get the following: 1) If I have a form, and it has fields say asking for number of some category for example: first in a drop down we … | |
I have two forms the first one is as follows: ![5364b88b6acff4f96bf8734c448984c4](/attachments/large/4/5364b88b6acff4f96bf8734c448984c4.jpg "5364b88b6acff4f96bf8734c448984c4") In the first one, I enter the customer details and the type of house he wants, and the number of rooms he has, and I have set a session once I hit the next button. This is spanning … | |
Hello, I am developing a site with Codeigniter 2.1.3. I am creating a pdf file with mpdf and I save the file in a folder outside the root folder. So my folders look like this: c:/mysite/uploads/mypdffile.pdf c:/mysite/public_html I looked at all kind of tutorials and forum posts about the php … | |
Take note this was just done for the sake of experimentation to headstart my journey in CodeIgniter. :D Hello Stackoverflow. Why is it that my page only echoes the username of the given inputs? Could you please tell me on what part did I screw up?? <?php $data = array( … | |
I have a form as follows, and I have set the session on clicking next. Each type of house is with a different set of rooms. Say, if I click Independent, I get a list of rooms below. If I choose Villa/Duplex, a different set will pop out. In the … | |
What's the best way to overwrite the show_error() function in Common.php? | |
![50e59f3e9c4e5d94efdbea6bc00b2e2c](/attachments/large/4/50e59f3e9c4e5d94efdbea6bc00b2e2c.jpg "50e59f3e9c4e5d94efdbea6bc00b2e2c") I have three tables, and I'm going to show the third table. What I want to know is how to delete each entry from it? As, the first and the second tables ids are fetched and inserted in the third one. As in, I have my model as … | |
In my codeigniter php login form i'm facing these issues.Password is encrypted in the database.I'm going to decrypt it from the database and allow login.I checked where is the problem.I could find it's in decrypt part.So if anyone can help me i really appreciate that.This is my code. Model function … | |
This is not working: class Post extends CI_Model{ function get_posts($num=20, $start=0){ //$sql="SELECT * FROM users WHERE active=1 ORDER BY date_added DESC LIMIT 0,20;"; $this->db->select()->from('posts')->where('active',1)->order_by('date_added','desc')->limit($num, $start); $query=$this->db->get(); return $query->result_array(); } } and giving me a: `[20-Jun-2013 17:42:21] PHP Fatal error: Call to a member function select() on a non-object in public_html/codeigniter/application/models/post.php … | |
CodeIgniter error logging set to 1: /* |-------------------------------------------------------------------------- | Error Logging Threshold |-------------------------------------------------------------------------- | | If you have enabled error logging, you can set an error threshold to | determine what gets logged. Threshold options are: | You can enable error logging by setting a threshold over zero. The | … | |
I am developing a site with Codeigniter 2.1.3 I am using HMVC to create ion_auth modules. I am trying to separate my frontend and backend login system. I created two modules for ion_auth: application/modules/auth - for the frontend application/modules/admin - for the backend Both have the same files, except the … | |
hi everyone, i run a website and the email script for some reason is sending emails to users trash/spam folder, or npt sending at all. it seems to be on most yahoo email addresses, and possibly gmail. the email script is written with php in codeigniter, and it runs on … | |
I have to sync with two tables in the database The following is the error I get: *A database error has occurred Error Number: 1054 Unknown column 'Array' in 'field list' INSERT INTO `client` (`interior_client_name`, `Interior_client_email`, `interior_client_mobile`, `interior_house_id`) VALUES ('a', 'b', '8989898', Array) Filename: C:\xampp\htdocs\ThinkInterio\system\database\DB_driver.php Line Number: 330* These are … | |
#This is for Laravel 3.*# ## Hello, ## With this snippet I'm providing a simple way to automatically filter `Input::get()` and `Input::old()`. To achieve this result we need to make few changes: * extend Input and Redirect classes by creating new files in `application/libraries/`, the files are: **input.php** and **redirect.php**; … | |
hi master, i have problem with my ci web, i use force_download in my controller but why redirect() cannot work, please tell me what my problem. $filedown = $this->input->post('filedown'); $datas = file_get_contents(base_url() . "down/" . $filedown); // Read the file's contents $name = "$filedown"; force_download($name, $datas); i have error, if … | |
Hello all, This is my first site project using codeigniter. The frontend is all html and I am using codeigniter for the backend. Everything was working fine until I added the frontend files and modified my htaccess file to not redirect to index.php but instead to index.html. htaccess looks like … | |
hi coders.. i need live availability code i am using codeigniter. i am inserting values(username,password,email,phone number) by using array . if the email is already in databse i need to show error message.. with out reloading the page.... thanks in advance. | |
this is my controller i am very new to codeigniter. -------------------------------------------------------- public function joinus() { if($this->input->post('submit')) { $this->load->library('email'); $to=$this->admin_model->get_goinmail(); $from=''; $subject=''; $message=''; $config['mailtype'] = 'html'; $config['protocol'] = 'sendmail'; $this->email->initialize($config); $this->email->set_newline("\r\n"); $this->email->from($from); $this->email->to(@$to); $this->email->subject(@$subject); $this->email->message(@$message); if($this->email->send()) { $data['mail_status']="sucess"; }else{ $data['mail_status']="Un sucess"; } } $data['get_goinmail']=$this->admin_model->get_goinmail(); $data['content'] = $this->load->view($this->view_dir .'joinus',$data,TRUE); $this->load->view('template',$data); } i … | |
Hello Masters, I need help.I can't apply **WHERE** Condition clause in my Multiple selected checkbox value.like If i select 'accounitng' or 'php' then i want here use a condition like **WHERE** **("skill", "php")** here, skill table field name and php checkbox selected value.If i select a category 'PHP' so all … | |
Hello Masters, I am new in Codeignitor but i enjoy here.I have one problem like, I want only display value comparison last date *less then or equal* current date. **Last date <= current** date.here last date mention by user.If last date *greater then current date* then those value auto delete … | |
Showbiz carousel and cycle problem Hello, I am looking for a jquery guru that can help with a plugin that I bought. The developer of the plugin does not answer me and I need to go live next week. The plugin is called: Showbiz Carousel. It is a carousel for … |
The End.