codeigniter + gigya
Has anyone tried using Gigya social widgets with codeigniter? I keep getting unable to connect error for all the widgets. ...
Has anyone tried using Gigya social widgets with codeigniter? I keep getting unable to connect error for all the widgets. ...
Hello, I am trying to build a system the remebers the users interactions with website, for example my site allows the users to build there own navigation system, but I want the system to be able to remember the navigations system they choose with out the user having to sign up, I assume I need to user sessions/cookies for these, and fu...
The following codes works without jquery. I insert data but it does not update with ajax. I have to refresh to show the update. Could anyone have a look at it and point out what I am doing wrong please? Thanks in advance. Jquery is this one. $(document).ready(function(){ //global vars var inputUser = $("#nick"); var inputMessage = ...
Hi I use NearlyFreeSpeech.Net as my host, and my php app (coded in CodeIgniter) needs to make exec() calls. As this is not allowed under safe-mode, we are given a "special" was of executing things via a perl script. See details here: https://members.nearlyfreespeech.net/wiki/HowTo/PHPExec However, following those instructions causes th...
Busy building my first web application in CodeIgniter and wanted to work out the best way of gathering ID in my Admin function for Edit, Delete statements. I realised I can use any of the following: Pass the ID through the controller. Collect the ID from the URI segment. Collect the ID from a hidden form field. Which is the best bas...
On my site the user is greeted with a yes/no menu what determines whether they see it, is this peiece of code. if(!isset($_COOKIE['bangUser'])) { // Get createRandomId() method and return a unique ID for the user $unique = ''; // Setting the cookie, name = bangUser, the cookie will expire after 30 day...
I am doing a multiple upload using the Multiple_upload library in codeigniter, and form some my loop that creates thumbnails only fires on the first iteration it would seem here is my code function saveContentImages() { $this->load->model('categoryModel'); if($query = $this->categoryModel->getCategoryByContentId($this->input->po...
Hello, I have query that runs in the controller: $data['query'] = $this->Member->select_sql($id); $this->load->view('myform'); and then outputs data in the view: foreach ($query->result() as $row): echo $row->post_title; echo $row->post_user_id; endforeach; So this outputs me a list of posts made by a user. Now I would l...
hi All programmer I wanted to update a row using active records in codeigniter, and I only want to increment a field value (received_qty = received_qty +1) , I realized that I can do that in usual sql, but I cant in codeigniter active records $update['received_qty'] = 'received_qty + 1'; $update['received_date'] = date("Y-m-d"); $this-...
This is my function to get stuff from a SQL db... Is there a more elegant way to do this? function getResults_1($id) { $this->db->select(array("a_1","a_2"))->from('Survey'); $this->db->where('user_id', $id); return $this->db->get(); } function getResults_2($id) { $this->db->select(array("a_6","a_8","a_13","a_14"))->fro...
Hi all, I am planning to use doctrine to write a module of my app which is built with codeigniter. I have a very basic question : lets say I have a table called "user", with doctrine generate-models from db, 3 classes are generated BaseUser.php, User.php and UserTable.php. Now as I saw in the examples they use User class straigtaway. ...
ok, decided to use the tutorial from ibm.com for the addressbook to learn codeigniter, scrapped the first project, but after I submit the form, I get the following error:Fatal error: Class 'Mcontacts' not found in C:\xampp\htdocs\AddressBook\system\libraries\Loader.php on line 184 what am I doing wrong? please help! I really want to lear...
I have the following array outputs. Array ( [day] => 17 [eventContent] => event 1 of 17th [eventTitle] => 17th event 1 ) Array ( [day] => 19 [eventContent] => event 1 of 19th [eventTitle] => 19th event 1 ) Array ( [day] => 05 [eventContent] => event 1 of 5th [eventTitle] => 5th event 1 ) Array ( ...
I am working on my and I am struggling to work out how to send PUT and DELETE arguments in PHP. In a few places I have seen people using the options: $this->option(CURLOPT_PUT, TRUE); $this->option(CURLOPT_POSTFIELDS, $params); Annoyingly, this seems to do nothing. Is this the correct way to set PUT parameters? If so, how do I set ...
I have a CodeIgniter project with a very simple test application. Controller opens a view (PHP page) which has a text box and a submit button. When I press the submit button, instead of redirecting to the appropriate function call in the controller, I get redirected to localhost/xampp. here's the code on my view, which SHOULD be redire...
UPDATE: SOLVED! For the broken pages I simply made an admin controller. That has a function for each model now :) Happy days! Trying to house my admin function in the same controller as my front-end code. To do this I am setting up some custom routes so that admin can be accessed via: /admin/controller/id // instead of /controller/admi...
I have this SELECT * FROM categoryTable WHERE categoryId NOT IN ( SELECT categoryId FROM userMenuTable WHERE cookieId = 'bang4b544417a41b6' ) but I would like it use codeigniters active record class so using $this->db syntax, I was hoping someone would help me convert this? ...
Hello, I have just moved my working codeigniter site to a new xampp installation on new computer and now when the view loads the php inside the view doesn’t work!! e.g. the addresses in my links have the code in them instead of the base address of the site!!! Can anyone explain this strange behavior??? (using windows 7) Thanks! jk ...
I created a "callback" function to check if the username exists in the DB. I have multiple rules for the "username" field, but the only thing that work is my callback function. It refuses to check against the other rules. I tried leaving the field empty, and the "required" rule never kicked in. Controller: account.php function registe...
I am attended to develop with framework. so, I'm Very confused, about which easier in learning curve to start develop with.. that I need to develop a project using a framework as soon as possible. ...