Codeignitor saving unique page views
What's the best way to count and them add to a total in my database the unique views of a page? ...
What's the best way to count and them add to a total in my database the unique views of a page? ...
I am developing application, where i want to make theme independent of system in code igniter. these themes are just css files and images, not necessarily views. in codeigniters MVC. these theme shall be selected by database variable. how can id do this? ...
How do i remember sessions, even after browser is closed. is there any alternative than extending expire time of cookies. i am using code igniter ...
Today one of my websites started showing Error Number: 2006 MySQL server has gone away It's a low-traffic client site running under Apache 2.2.9 (Debian), PHP 5.2.6-1+lenny3 (using CodeIgniter 1.7.1 framework) and MySQL 5.0.51a. I obviously reasearched about the error but all the possible solutions imply that there are big queries goin...
I am attempting to create an image-upload form with CodeIgniter 1.7.2 However, when I attempt to upload an image, CI informs me the upload directory is invalid. To check this, I uploaded a file to the uploads directory called test.txt with the content Hello, World! I then echoed out the contents of it, and lo and behold, it says hello...
Hi , I am having a bit of a problem. I am duplicating my website to a test environment on a new server with a new domain. I have it working fine with the database etc but here is my error. On the live site if I click suppliers it goes to the page fine If I click it on the test environment it does not work. These are two links h...
I would like to add some PHP to my Codeigniter view, for, say, a dynamic date in the footer. What is the very best way to manage this? ...
Hi I have a CodeIgniter application, but one of my controllers must call a data processing function that I have also written myself. The only problem is I can't seem to figure out how to do this. Looking through the user guide it seems that I should put my function inside the class declaration, and prefix it with an underscore (_) so th...
Hi Basically I have a table with a couple of columns marked Unique. I have a script that dumps a bunch of values into the table with a command like this: $this->db->query("INSERT INTO `table` (`col1`, `col2`, `col3`) VALUES (`val1`, `val2`, `val3`)"); Every so often my script will try to insert a row which would violate the uniquenes...
I have the following two tables. I want to get all from menus table and also path from pages table. I tried it but I am not able to get the pages.path. Can anyone point out my mistakes please. CREATE TABLE IF NOT EXISTS `pages` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL DEFAULT '', `keywords` varchar(2...
Let me elaborate on the question... I have a custom CMS (built on codeigniter FTW) that includes many different types of modules. Every time we have a new project come through the door, it is a variation and amalgamation of a few of the existing modules. Sometimes a project comes through with requirements that are not satisfied ...
Hello, I am currently building a backend to a site using the codeigniter framework, I have hit a bit of a problem, I needing a way to allow the user to upload a zipped folder of images, on completing the form, zipped folder must be unzipped, and the files need to be moved to a folder else where on the server, have thumbnail version of e...
Alright, I have a wordpress site, that I want to have a clientportal built with codeigniter in it. For the sake of continued theme, I would like to have the codeigniter program where the page/text would normally be. Here is the site http://foretruss.com/wordpress/?page%5Fid=8 you can see the error I get when I have php_exec plugin insta...
I know this is going to be really simple once I post it, I am writing a form, which has a select menu in it, I want the values to pulled from the database, so I thought it would be something along these lines, My view <?php echo form_open('admin/save_content'); echo form_fieldset(); echo form_dropdown('categories', $select_o...
Does anyone know if there is a viable library for PDO database access for CodeIgniter? I only ask because I am in the process of migrating over to CI and am having trouble integrating my old Database classes as libraries in the CI framework - can't seem to get them to utilize CI's config constants for database access. Any thoughts? It...
I am using codeigniter and its routes system successfully with some lovely regexp, however I have come unstuck on what should be an easy peasy thing in the system. I want to include a bunch of search engine related files (for Google webmaster etc.) plus the robots.txt file, all in a controller. So, I have create the controller and upda...
I have a controller with different methods, but they all have to set a variable containing a list of items to be shown in a box in the view, I extract data from the DB and set $data['categories']. Can I set it once and have it visible by all methods? ...
Hello, I am trying to get a multiple upload library working for my codeigniter based website, I have it working almost but I have a slight problem if I upload more than one image, the file extentions get screwed up, for example, if I upload three JPEGS, I get this in my uploads folder, image1.jpg image2.jpg.jpg image3.jpg.jpg.jpg I ...
my host account is something like: ~ ~/public_html ~/public_html/system/application to access my web, I need to put http://example.com/~userid in address bar I install codeigniter in the ~/public_html directory, I can access http://example.com/~userid. The Welcome page shows correctly, and the related user guide pages show correctl...
Hey, I was wondering if there was a way for a controller to, instead of returning a string, or a view, return an image (be it JPG, PNG etc). For example, instead of ending with a $this->load->view('folder/special_view.php), I'd like to do something like $this->load->image('images/gorilla.png'), and have it so if my user were to go to t...