Hi, this post is just to know if anyone here has done something similar and what do you think about the right way to do that.
My first idea was start storing every word in the db ignoring words with 2 or less characters and every time a word is repeated just add one to a counter row (say importance) to appear first on the list of frequ...
Hi,
I basically can’t get the pagination bit to work, I did before I changed my database query and now I’m stuck.
My model looks like:
function get_properties($limit, $offset) {
$location = $this->session->userdata('location');
$property_type = $this->session->userdata('property_type');
if($property_type == 0)
{
$sq...
I have created a generic "Page" controller for my site. These pages serve up mostly static information, they pull the most recent version of the page contents, and the update date from a database. On each page they have a section menu and a resource menu. The section menu is dictated by what logical section of the site the page reside...
I have a controller that is represented in the database by two tables, pages and page_contents. pages contains the author information, unique id for the the page, and creation timestamp. page_contents contains the page uid as a FK, the contents of the page, last editor, and edit timestamp.
When a page it requested I need to pull the o...
I have code that authenticates against Active Directory using LDAP and boilerplate PHP code. However, I'm left wondering is there a more standard way to do this from within the CodeIgniter? Is there some plugin out there that makes this easier? So far, Google has failed me.
...
Wondering how I can do this with CodeIgniter?
Any help is greatly appreciated!
Thanks.
...
I am creating an intranet application in php that is running on a client's local server. I need to be able to "push" certain data from my MySQL database out to a file or list of files that need to be able to be read by his public website, hosted on a shared hosting environment.
I plan on sending these files out every hour via FTP to th...
Hello,
i am building admin area for my app with CodeIgniter, i created a base Admin Controller in the library named: MY_Admin_Base that extends the CI Controller. and there i checking in the DB if the admin has access to the method.
class MY_Admin_Base extends Controller {
function __construct()
{
parent::Controller();...
I'd like to learn PHP with a view to using CodeIgniter to make a few apps. Does this alter what or how I should approach PHP to start with?
I'm a designer with good front-end skills. I used Coldfusion in University but want to build stuff in a language more widely supported (and respected?). CodeIgniter seems great but I'd like to know ...
Seriously, I'm lost in the UTF-8 world. Here is my situation (everything is happening on a mac):
I get a web service response with perl+lwp and store it in mysql database; response is encoded in UTF-8 and I use DBI module to store data in Mysql UTF-8 table (urf8_general_ci encoding);
when I get strings from database with CI model; outp...
If I don't provide the value in the URL for Codeigniter, it'll display a PHP Error was encountered saying it's missing argument for a function call. I do NOT want it displayed at all. If there's no argument in the URL, it should just reroute to its index function. How do I prevent that from happening?
For example, www.example.com/profi...
I have a timestamp like 1397105576 and I need to convert it to data format. I used:
echo $today = date('20y-m-d H:m:s',"1397105576");
I am getting:
Severity: Warning
Message: date() expects parameter 2 to be long, object given
in the codeigniter framework.
update:
i found the answer
the vaiable should be converted to long...
Hi Guys,
I'm doing a project in codeginiter these days, i want to print just the text area when the print button is clicked? can you guys help me to achieve this?
regards.
Rangana
...
All of the pages and resources that php will give through readfile() exist in a database table entities. The entities table includes the uri alias for the object, what type of object it is so it can properly route it. Should I just include it in application/config/routes.php, should I write some helper functions and include them in the...
I have a .htaccess file to remove the index.php part of the codeigniter-style URL. It's been working fine on one computer but when I copied the file over to my laptop it doesn't seem to do anything. I'm using localhost on both machines. They both run mac osx 10.6 with the bundled apache and php and the latest version of mysql. Everything...
I'm using the CodeIgniter reCAPTCHA library (here, forum here). For some reason, no variables are being passed from the reCAPTCHA library to the view that has the reCAPTCHA field code.
Here is my controller (the pertinent parts):
$this->load->library('recaptcha');
$this->load->library('form_validation');
$this->lang->load('recaptcha')...
Hi Guys,
I'm doing a search using CI and Jquery, well i'm very novice to this, this is my first time,
i have done this code but i can't figure out how to send data to the controller and search for a value entered in the text box? can you guys help me to figure this out?
here is my code
$(document).ready(function(){
$('#search').liv...
Hello everyone, I'm starting a new project using Linux and PHP, but for the early dev state i'm now, I'm trying to use XAMPP for now.
I'm Running Ubuntu 10.04 x64 on a laptop, And got everything I need. The site I should build is based upon CodeIgniter and some implementation of smarty, but I think this is not that important because the...
Hello,
I am trying to figure out the way to edit a row of table by button with jquery and jeditable.
My aim is to have a "edit" button which will change desired row cells to edit mode.
As per now I have:
$(document).ready(function() {
$("#addrowbutton").click(function() {
$("#addrow").show();
});
$("#canceladd")....
I am having a problem with PHP at the moment, I am getting this error,
Object of class stdClass could not be converted to string the error occurs when I run this portion of code in my site,
function myaccount() {
$data['user_data'] = $this->auth->get_userdata($this->uri->segment(3));
//var_dump($data['user_data']);
$this-...