Hello everybody, I'm trying to build an autocomplete using jquery plugin autocomplete from this site.
Now I managed to achieve autocomplete using local results pre-loaded into website as a part of document ready function, its quite easy doing it localy.
Here is with what I struggle with, pulling results from php file. Here is how I tr...
Hi ..., I'm trying to implement mutiple database in CI. My code Is here:
//database.php
$active_group = "default";
$active_record = TRUE;
$db['default']['hostname'] = "localhost";
$db['default']['username'] = "root";
$db['default']['password'] = "root";
$db['default']['database'] = "ravelex";
$db['default']['dbdriver'] = "mysql";
$db['...
Hi ..., I'm trying to implement mutiple database in CI. My code Is here:
//database.php
$active_group = "default";
$active_record = TRUE;
$db['default']['hostname'] = "localhost";
$db['default']['username'] = "root";
$db['default']['password'] = "root";
$db['default']['database'] = "ravelex";
$db['default']['dbdriver'] = "mysql";
$db['...
Hello,
I was looking on many template libraries, som I have fair mess in general idea what is out there ready to download/use and what I want to use, so maybe you could help me with this.
I'm currently learning CodeIgniter, thinking about moving to Kohana later. I would like to include controllers/modules(/module function maybe?) based...
Can anyone point out a good many-to-many database tutorial for CodeIgniter.
Just trying to work out the process of creating, and then updating a many-to-many relationship. My example uses a multi-select of values, wondering how you take care of monitoring changes on update etc.
...
hello,
I have been following a tutorial on creating a style switcher with PHP and jQuery, now in the tutorial the PHP function uses get data, which is not available in codeigniter, I was hoping someone would be able to help me tidy up my sorry attempt?
My PHP function
function setBackground() {
$style = $this->uri->segment(3)...
All previous attempts at a JOIN have left me with either the disc or item data populating the id, title keys of the result (maybe a clash is occuring).
So I have:
item table
fields: id, title
disc table
fields: id, title
item_disc table
fields: item_id, disc_id
How do I construct a double join so that I can access the related discs...
Here's my exported BD table:
CREATE TABLE `hta_users` (
`id` int(11) NOT NULL auto_increment,
`nombre` varchar(100) collate utf8_spanish_ci NOT NULL,
`apellidos` varchar(255) collate utf8_spanish_ci NOT NULL,
`nif` varchar(10) collate utf8_spanish_ci NOT NULL,
`direccion` varchar(255) collate utf8_spanish_ci NOT NULL,
`cp` v...
I'm building a basic CodeIgniter site that requires a login before you can access any of the site.
If a user visits some site url, something like this:
http://www.mysite.com/project/detail/2049
AND they are current logged out, I have it set to automatically kick them back to the login page.
My question is, after they login, what is ...
Sorry for my Dummy Question, but...
I am making a script on php/mysql (codeigniter) and I am extremally interested in knowing if there is a way without big architectural changes of the script make a load balancing.
I mean, that for example now I will rent a medium dedicated server with 2GB ram, 200GB memory and good processor, and this...
Im thinking about using CodeIgniter for a new project. I was reading the user-guide for CI and I noticed a few things. In all their examples, they seem to put all the logic in the Controller and just use the model to get and set data. I like to put all my logic in my Model.
Are all of their functions universal to all 3 parts (model, vie...
Using codeigniter to develop my latest project. With that said, what's the "best" way to deal with login sessions? Right now, I check the username/password against the DB. if it's a match, I set various session variables, one of them being the username. Throughout my site, I check to see if the user is logged in. I also read various blog...
Hello,
I have several questions regarding CI application design.
Q. When creating a new form and your using CI's form_helper I'm creating arrays in the controller and passing it to the view/form_input() method. Should I be doing this in the controller, the view, or a separate file?
Q. In my controller, I create a method for my form...
I just implemented Adam Shaw's popular calendar called 'fullcalendar' (http://arshaw.com/fullcalendar/) using CodeIgniter. But I require addition and other operations on events from my database. I was able to find one CakePHP plugin with the same purpose from here, http://bakery.cakephp.org/articles/view/events-plugin.
Since I'm not in...
I'm just mucking around with codeIgniter, doing the video tutes etc. was wondering if you can specify markup output to follow strict html, I've noticed that helper form inputs etc. have a closing slash, that is contradictory to HTML 4 Strict.
Is it a case of just using xhtml for this framework because that's what it's mostly geared towa...
Hello, I'm starting with CodeIgniter and after several hours diving in Google I'm a bit confused.
Let's try to explain my question with a easy example: I have a table 'car' with the fields 'name' and 'color'. Therefore I want to have a php class Car, so that my code could look finally like this:
$car = new Car('BMW', 'red'); //new $ca...
(This is for a codeigniter project)
I'm developing a user-profile page, that lists the user's profile very similarly to Stackoverflow's profile page.
I have a simple echo command in the view file:
<? echo $members->row()->password?>
This displays the md5 string. (I'm not too familiar with terms--I'm a beginner).
How can I display th...
Im building an application where a user will need to go through a multiple page form which will have 30+ fields of data, including image uploads.
What im wondering is what the best way of setting up my database will be? Do I split the data up over multiple tables, or would it be better to put all the data into one table?
Im not sure, I...
I'm trying to build VERY basic model->controller->view structure with CodeIgniter. I'd rather use models (and model functions, more importantly) and controllers than executing queries within each view.
First off, here's the model:
class Leads extends Model {
function Leads()
{
parent::Model();
}
function fetch...
Hey SO,
So I'm new to both Joomla and Expression Engine, and want to know if I can use it like I'd like. I've already made a full site, and would like to integrate blogging into the site. The site is on CodeIgniter.
Is there a way that I could create a form template for submitting a post which would then save to my Joomla/CodeIgnit...