I'm about to start building a tumblr clone that handles multiple users (so premade clones like Gelato won't cut it) and I'm not sure which framework I'd like to build this is.
Right now, I'm only intending to build a prototype. Something I can get a dozen friends on to test the concept and grow to maybe a couple hundred users to prove ...
Hi
i want to insert php calendar to my page ..
which is the best way to do it
...
Hi,
Can anyone recommend a great CodeIgniter Registration/Login/Logout library for beginners to web development?
I read on stackoverflow that Redux was highly recommended at one time. What is the current recommendation?
...
I use this in my controller,
function phpcalview()
{
$year = $this->input->post('yearvv');
$year1 = $year+1;
//echo $year1;
$this->load->view('phpcal',$year1);
}
How to $year1 value to my view phpcal and get that value in the textbox yearvv
...
Morning y'all
This is probably an easy one but I barely got any sleep last night and am struggling to comprehend anything.
I've got a CodeIgniter library I've made called Points.php. Here's the contents of Points:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
class Points
{
function __construct()
{...
Hai
I am using codeigniter...I my function phpcalview()...
This is my function
function phpcalview()
{
$year = $this->input->post('yearvv');
$data['year'] = $this->adminmodel->selectyear();
$data['date'] = $this->adminmodel->selectmonth();
print_r($data['date'] );
$this->load->view('phpcal',$data);
}
I am printi...
Hi,
I have created a registration page using CI that works fine. However, I encoded the password using sha1 (see code snippet below), and now that I plan to create a login page, I need to check whether the password the user enters in the login page is the same as that password encoded using sha1 stored in the database. However, I just r...
Hey SO,
So I'm trying to perform a couple inserts at once that are kind of co-dependent on each other. Let's say I'm doing a dog rating website. Anyone can add a dog to my database, but in doing so they also need to add a preliminary rating of the dog. Other people can then rate the dog afterwards. The dogs to ratings is a many to o...
Hey SO,
I'm new to transactions in general, but especially with CodeIgniter. I'm using InnoDB and everything, but my transactions aren't rolling back when I want them to. Here's my code (slightly simplified).
$dog_db = $this->load->database('dog', true);
$dog_db->trans_begin();
$dog_id = $this->do...
Hi guys,
I was just curious as to what the rule of thumb was for models. Generally, I use them only for situations where I need to add/edit or update database entries for an object.
However, I'm building an app at the moment that has a "config" table which holds various data, such as last updated, which will control when certain featu...
Say you construct an activerecord query that will always just return a single value, how do you just address that single value instead of getting an array in return? For instance I am using an ActiveRecord query to return the SUM of a single column, it will only return this one single SUM, instead of having to parse the array is there a ...
Hi
i am creating a calendar i which i filled the year and date like this
<<<<< Year >>>>>>
<<<<< month >>>>>>
by clicking on the arrow marks the year and month can be increased and decreased
now i have to fill the dates for the year and month selected
I calcul...
I want to generate multiple pdf reports on click of single print button and zip all the pdf's and store it in a folder.
Any help please. I need this functionality in my project.
...
I am having some problems parsing this piece of XML using SimpleXML. There is always only one Series element, and a variable number of Episode elements beneath. I want to parse XML so I can store the Series data in one table, and all the Episode data in another table.
XML:
<Data>
<Series>
<id>80348</id>
<Genre>|Acti...
I want to ensure that a certain text field does not contain a specific value. Is there any way for me to do this using CI's Form Validation class or do I have to write my own extension for it?
...
I have quite a few libraries and models that get loaded into a controller, and each library/model creates an instance of CI using $this->CI =& get_instance(); in the __construct function.
Are there any performance issues with this and is there a better way?
...
Hello,
I've written a new model for my CodeIgniter framework.
I'm trying to load the database from within the constructor function, but I'm getting the following error:
Severity: Notice
Message: Undefined property: userdb::$load
Filename: models/userdb.php
Line Number: 7
Fatal error: Call to a member function database() on a non-ob...
If so.... any idea how?
...
I want to stop people from viewing the contents of my images directory. I've built an app using Codeigniter and notice that they just have index.html pages with a 403 Forbidden message in all directories - is this a secure method to use? Is an index.html page in the directory sufficient or do I need to update config or .htaccess?
...
Hi...
I want to create an online phone book where user can add as many contact as he want and he must be able to create and divide those contact into groups. For eg. Friends, Family etc. All the groups must be created or deleted by the user. Can anyone help me..
Any good tutorial or a book reference will do. I will be using PHP, MySQL ...