codeigniter

UNION with codeigniter's active record

Hi all How to do UNION query with codeigniter's active record? ...

PHP and jquery, help passing PHP variable to javascript

Hello, I am trying to allow the users of my website, to upload images and then select one to be a back image, the uploading works fine, but I have a problem in my controller or view I think, i would appreciate it some could help me out, VIEW: <div id="background-select"> <?php $count = 0; if(isset($special)) { foreach ($s...

Enabling $_GET in codeigniter

I've been trying to figure out how to enable $_GET in CI. It appears the framework deliberately destroys the $_GET array, and that enabling it requires serious tinkering with the core classes. can anyone say why this is, and how to overcome it? mind you, i'm looking to keep URI parsing and routing the way they are, just simply have the...

Help ajax method calls same function in controller but needs to load different results in different areas

I am a bit stuck with my website, currently on the new section of my site(among others) the user rolls over a thumbnail and gets the articles abstract displayed below it, and then when they click on said thumbnail the article appears on the left of the page, The ajax works by pulling the href from the link that surronds the thumbnail i...

codeigniter php

hi, I downloaded the latest pyrocms zip file and I noticed something strange happening. On windows using xampp-lite 1.7.3 or 1.7.2 the installation process is successful and I am able to go to the admin login page. But as soon as I type the given username and password and attempt to login, apache in xampp crashes and an error comes up w...

Should I use Database Sessions or Native PHP File Sessions?

I've just moved over from my own MVC framework to a community supported one (CodeIgniter). I'm just converting my sessions over to the CodeIgniter functions and am noticing that they, by default, store the session data in an encrypted cookie. The alternative they offer are database sessions but not server-side file sessions like the na...

codeigniter php

hi, I want to ask one of those broad questions so please go easy on me. I know that phil is doing well with pyrocms but I would like to use pyro for my sites and also know how to write custom additions to the cms to suit my needs so what bums me out is how do you use it? where do i add my additions? how is it laid out? Like I said befor...

Structure CodeIgniter Application

Hi all, EDIT: What is the best way to structure complex applications with CodeIgniter? To make this question more specific, maybe to just focus on structuring controllers: If you have a Users controller, than should all functions be in this one file? In other words, you might have controller actions that tie to specific views, but a ...

CMS based on CodeIgniter

I’m looking for a CMS based on CodeIgniter. Can you suggest what CMS I could use? I want to learn how to build a CodeIgniter application based using a CMS as a reference. ...

How to properly declare variables in the function call - Codeigniter

Hello, I am using CodeIgniter and in my controller I have function index($var_22) { // BLABLA } So if I dont pass the $var_22 variable I will get an error: A PHP Error was encountered Severity: Warning Message: Missing argument 1 for Claims::index() But I dont need to pass it all of the time, what should I use when I do not pas...

codeigniter and ajax cannot access the post

On my website I am using ajax post request to show content around my site, this is done using this code, $("a.contentlink").click(function(ev) { ev.preventDefault(); $('#main_menu').hide(); var url = $(this).attr("href"); var data = "calltype=full&url="+url; $.ajax({ url:url, type: "POST", da...

Have anybody compared ASP.NET MVC to CodeIgniter?

Is there a lot of similarities? I can webforms ASP.NET and some CodeIgniter but haven't much grokked with the asp.net mvc. Have they a lot of similarities? ...

codeigniter pagination customizing

Hi everybody, I am browsing trough the CI documentation particularly http://codeigniter.com/user_guide/libraries/pagination.html . First thing that was stuck in my mind was "CodeIgniter's Pagination class is very easy to use, and it is 100% customizable, either dynamically or via stored preferences." but there always but something. My...

Remove element from HTML with jQuery

I am building a system where the user builds their own navigation system, the process is when the user visits the site there is a llist of available topics they can select slect a top creates and accordion that holds all that topics content, clicking the topic again should remove the top, currently I have this code, but it does not work,...

Help, first codeigniter application

Help, this is my first Codeigniter app and I am having the strangest problem, the View is not getting the values of the variables from the database. I followed this tutorial, and instead, when I load the page, the values from the foreach loop show like this $value instead of displaying the actual contents in the database. I'm confused! ...

Codeigniter cookies

I was hoping someone, could give some information on Cookies and Codeigniter, I have read there user guide on them so I have an understanding of how to set them, etc. What I want to know is how do I use for example if you look at the BBC website, you can drag and drop the boxes and it will remember where you placed them with out the need...

Codeigniter Cookies Help

Hello in codeigniter how would I check if the user is visiting the site for the first time, and if they are set a cookie? I am already using the Session library and database sessions which stores the session_id etc, but I need to to be able to check if the user is a first time visitor and if they have a cookie already ` $cookie = ar...

Codeigniter ORM SQLite

hi, I phpandstuff have a wonderful tut on setting up the doctrine ORM and CodeIgniter, my question is setting it up with SQLite got me kinda confused, SQLite does not require a dsn like all the others so where all that is required what do I do? And for the defaults that are set with MySQL for example: [code] Doctrine_Manager::getIn...

Codeigniter select multiple rows?

How do I select multiple rows from SQL? ie. $results->row(1,2,3,4,5,10) ...

How to get Controller, Action, URL informations with CodeIgniter

Hi all, I have these urls: .http://backend.domain.com/system/setting/edit/12 .http://backend.domain.com/product/edit/1 How to get controller name, action name from these urls. I'm codeigniter newbie. are there any helper function to get these info Ex: $params = helper_function(current_url()) $params --> array ('controller' => 's...