Integrating FCKEditor in CodeIgniter
Hi ..... I want to integrate fckEditor in CodeIgniter. Can you help me to implement it ? ...
Hi ..... I want to integrate fckEditor in CodeIgniter. Can you help me to implement it ? ...
Codeigniter php framework URLs look like the above. I'm surprised that apache maps this request to index.php at the server root. I expected it to interpret /index.php/abc/def as a file 'abc' in a directory /index.php/abc, and as a result a 404 Not Found (given that no such file exists). Can anyone explain why index.php gets executed i...
I'm trying this: function send_sms() { $liveQuery = $this->db->get('liveList'); $counter = 0; foreach($liveQuery->result() as $row): $counter = $counter+1; echo("Not hatin', just iteratin'. Message " . $counter); endforeach; } When liveList has 8000 records it runs just fine, but when I try with 9000 rows it generates a downl...
Hello - I'm running Apache 2.046 with PHP 5.x and I am experiencing very odd behavior on a CodeIgniter app. The frustrating thing is that it is not consistent. Occasionally when I call up my app Apache returns nothing. I mean nada. But then I hit refresh and everything works as expected. Sometimes I have to hit "refreash" several ...
Hi all, I have a quick question about refactoring php code. Below are three functions. The first two appear quite similar, and only differ with one if statement. The third combines the first two through use of a flag. Is this the best practice? Here it seems okay to use a flag, but what if we need to add more flags in the future?...
I'm designing a simple web-app in CI. I have a registration controller, and a paypal controller. Both work fine separately, but I need to use some functions of the paypal controller as a part of registration. How can I borrow those functions w/o pasting new functions into the registration controller? It really wouldn't be a problem t...
Hi all, Can I call a controller with a pre_controller hook. Something like this, where ControllerHook is a normal controller. $hook['pre_controller'][] = array( 'class' => 'ControllerHook', 'function' => 'controllerHookFunction', 'filename' => 'ControllerHook.php', 'filepath' => 'hooks', ); I tried this already, it works ...
I'm building my first real CI app. I have to build a survey system--If the specifics are important, I'll elaborate. What is the best way to post the info to the db from the user? In a single row, comma separated? I'm a noob here, so detail would be appreciated! :) I should add: the user needs to have the ability to try multiple times...
I am trying to let the "trac" directory and all of it's subdirectories be accessible through the url http://www.domain.com/trac/ I am working with the codeginiter framework and my directory structure looks like .htaccess index.php system trac I can access the abov url fine, but the problem is the scripts and other files contained in ...
Hello everybody, I want to create one insert function in php, which I will use to insert data into database. Of course all inserts are not the same, some use one table others use other, tables have different column numbers etc. What is the best way to do this ? I'm currently on the web page for member registration, now I don't want to ...
I've been using ASP.NET for a while but decided it's time to learn a PHP framework. Looking at an article NetTuts+ It looks like CodeIgniter is the simplest, and one of the lightest and easiest ways to go. I am however, a huge jQuery fan, and am wanting to know if jQuery integrates well with the framework? Any experience? ...
I'm writing a simple app. I need to block user from a page if their credit is < 0. I have a table "User_profiles" with a "credit" row. How can I set up a model in conjunction with the controller to send the user to another page if the value of "credit" is 0? This should be straightforward, but I'm new at the select->where stuff... I...
I've never used either before. I'm not a pro php programmer, but want to be. I like "state of the art" tools and code. Is there any reason I shouldn't go for Kohana? I noticed there were not books on amazon about kohana. Input is appreciated! ...
I have a controller which has several methods which should all share common informations. Let's say my URI format is like this: http://server/users/id/admin/index http://server/users/id/admin/new http://server/users/id/admin/list http://server/users/id/admin/delete I need to retrieve some informations from the database for id and have...
In my CI config file I have this logging treshold set: $config['log_threshold'] = 1; In index.php, I have set the following error reporting: error_reporting(E_ERROR); My expectation is that this will log any CI errors that I log (using log_message('error','my error message')), as well as any PHP errors. However, I would expect that...
I need a way to tell if it's a user's first time to log in--so I can display relevant information to that user about what they need to do. How can this be achieved? I'm at a loss here and examples would be appreciated! :) ...
Hi, I'm an advanced designer, but also starting out a career in development: I'm a PHP intermediate user. I (unfortunately) learnt procedural development, and not OOP. My current project is a multi-user game web-app and I was developing procedurally only for my Boss to insist that it has to be OOP, so I needed to start learning OOP (I b...
I'm looking for an introduction in creating application using CodeIgniter and Integrating it to Expression Engine. ...
Hi ... I wanna ask you best practices about blog front page. I wanna build blog application using CodeIgniter framework. I have 2 type of page (front page, and admin page) Supposed I have several controller in my front page (home, post, page, and link). By default I have include viewer of for all of these controller: header.php, footer...
Hi, This is a framework/programming language challenge. I'm looking for programming language that would be best approach for the next project. I want to get some score (out of 10) of their Time to Develop, Scalability, and Security. Form Builder that will read and write to Database(MYSQL) User Authentication and User Management Easy f...