codeigniter

Linking to pages with Flash in a web framework

I'm using CodeIgniter but I think this can apply to any web framework. The "nav bar" and the site I'm making is Flash. Normally when you link to a page in CodeIgniter, you use the anchor() function, which you pass URL segments to, and it builds a hyperlink. But how can I link to pages within Flash? Hopefully there's a way other than cha...

Slow Response in checkbox using JQuery

Hi to all. I'm trying to optimize a website. The flow is i tried to query a certain table and all of its data entry in a page(w/ toolbars), work fine. When i tried to edit the page the problem is when i click the checkbox button i have to wait 2-5sec just by clicking it. I limit the viewing of entry to 5 only but the response on checkbox...

Getting raw SQL Queries in CodeIgniter

I'm trying to debug some code in my first serious CodeIgniter app and I can't seem to find where I can simply get the raw SQL that my ActiveRecord code just generated. $where = 'DAY(`datetime_start`) = '. date('d',$day) .' AND '; $where .= 'MONTH(`datetime_start`) = '. date('m',$day) .''; $this->db->from('events')->where($where); ...

Building a real object oriented framework in PHP, suggestions wanted

I've been using the CodeIgniter framework, however after learning Java and awesome features like Interfaces, Abstract classes, packages, and that PHP 5 also supports most of these features, I'm ready to graduate and build a real OO framework in PHP which uses all of these features (including namespaces), so I can build much more elegant ...

Show each date only once

All right, this must be an absolutely easy question, and I apologize for that. I also apologize if I simply failed in finding the right search terms to use to come to an answer on my own. I did try, but my lack of fluency in PHP kind of makes me suck at searching. I'm looking for a simple way to show each date only once within a foreac...

Creating an object from a class in Codeigniter

The following codes are from http://d.hatena.ne.jp/dix3/20081002/1222899116 and codes are working well. This is an example of using snoopy in codeigniter. Q1. Am I correct to say that I can't use, $this -> load -> library('snoopy') since Snoopy.php does not create an object. And the example below is the way to do it? If so, can you ...

googleapp email codeigniter

hi guys, how do I use googleapps email service to send mail in codeigniter using the email library? what settings do I use to make my app from within codeigniter since the email class kinda prefers smtp and I was going through the clients googleapps account and I can't find any place with settings for smtp. Any clues? God Bless ...

Multi-dimentional array question: Where does ['children'] come from?

I am confused about multi-dimentional array. In the following db, php and html, I don't understand the usage of foreach ($navlist as $key => $list){ foreach ($list as $topkey => $toplist){.. and foreach ($toplist['children'] as $subkey => $subname){... And also this code is confusing for me. Is ['children'] php? $data[0][$row->p...

Randomly selecting rows with MYSQL

hi I have a question, to randomly select records from one table do i have to always set a temporary variable in php or what? I basically need some help with selecting random rows with a model in codeigniter and displaying 3 different ones in a view everytime my homepage is viewed. Anythoughts? ...

Facebook Profile Boxes

I am trying to build a profile box for my fbml facebook app. When this code is executed the only thing that is rendered is the provided url, while what should happen is that it uses the content of that url. i think it has something to do with the refreshRefUrl call as it is returning error 1: unknown error. $user = $this->facebook->req...

How to send to view $data and $data2 at same time?

Hi friends, I use codeigniter and issue about how to send to view $data and $data_cat2 at same time? $data['records'] = $this->gallery_model->get_all(1); $data_cat2['records'] = $this->gallery_model->get_all(2); $this->load->view('gallery/index.php',$data); I tried to put an another load->view for $data_cat2. and it just repeated...

get renamed file names of multiple upload form [js array] in codeigniter

Hi friends, I use codeigniter. I have a multiple image upload form. The code below is working well for uploading, but I also need to save file names to database. How can I get the names in here? I spent hours & hours :/ but could not sort it :/ Appreciate helps!!! uploadform.php echo form_open_multipart('gallery/upload'); <inpu...

Can I use Mysqli and php5 syntax with Code Igniter?

Im starting a new web project, and I figured I'd try using a framework. I know CI is coded in php4... but will I be able to use the mysqli functions of mysql, as well as php5 syntax (when it comes to OO especially) while coding for CI? Or would I have to go with Kohana? ...

smtp codeigniter gmail error

Hi again, I am sorry I keep coming back with this issue. I checked my account and it’s fine( signed on no captcha) and still nothing. It still returns this to me: 220 mx.google.com ESMTP d13sm702743fka.52 hello: 250-mx.google.com at your service, [82.128.53.160] 250-SIZE 35651584 250-8BITMIME 250-AUTH LOGIN PLAIN 250-ENHANCEDSTATUSCOD...

ajax wih CodeIgniter

Hi all,i'm trying to create 3 textfield with CI by using form_input. One is for enter price,one is for enter the desire discount value,the last one is for the discounted price which is calculated from price and discount value..How do i achieve it with CI?Thanks a lot.. ...

CodeIgniter: How can I create a new instance of a library whenever the method is called?

just some snippet of the code function __construct() { $this->ci = &get_instance(); ... ... } function run() { foreach($run_2_time as $run){ $this->deduct_user_point(); ... ... } } function deduct_user_point() { $this->ci->load->library('user_lib'); ... ... } Firstly, i know that by executing $this->ci->load->...

Is there anything like Code Igniter's DBForge for C#?

The Database Forge Class contains functions that help you manage your database. It can: Create or drop a database Add fields and keys Create, drop and modify a table I was wondering if anything like that existed for C# or .Net. Otherwise, I think I have a little project on my hands. ...

CodeIgniter and PostgreSQL - Retrieving data from Function returning refcursor

I have a PostgreSQL function that selects data and returns it via a refcursor, similar to the following declaration: CREATE OR REPLACE FUNCTION my_function() RETURNS refcursor AS ... How do I retrieve data from this function via a CodeIgniter model? I can't just SELECT directly from the function as it does not return the data dire...

Building a CodeIgniter GUI Installer

I'm building a self-hosted web app using CodeIgniter and I need a nice GUI-ified installer which will present the user with a form for database info, validate and test the info, write that info to the database.php config file, and then set up the DB structure. Any tips for this? Should it be inside of CodeIgniter (as a Controller perhap...

How do you setup Codeigniter to handle multiple projects with shared ci base?

Hello, I've seen several CI implementation examples that claim you can put project folders under the "applications" folder for Codeigniter. However I've not been able to see this work as promised. Here is what I have done and what I would like to do - maybe you can help out. For the sake of argument my document root is /www/(It's not,...