Hi,
i tried to use wordpress and codeigniter for a intelligent join between the best CMS and the best PHP Framework. Actually i intended to use codeigniter for database managemnent and wordpress for display. But i wanted to use codeigniter inside wordpress. So, i have a file tree like that:
www
- codigniter-core folder
- .htaccess
- ...
I'm using CodeIgniter with codeigniter sessions that are stored in a MySQL database.
I need to do a multi page redirect as shown below:
some_form.php -> processing.php -> another_form_based_on_processing.php
Everything's okay going from some_form.php -> processing.php
But when I redirect the page from processing.php -> another_form_...
My user is uploading an image of any size XX x YY. I want to find the larger dimension and shrink the image to a square of 250x250 with transparent padding being added to make up the difference. Is there any way to accomplish this with CI's Image Lib?
...
I'm starting to get to grips with CodeIgniter and came across it's support for the Active Record pattern.
I like the fact that it generates the SQL code for you so essentially you can retrieve, update and insert data in to a database without tying your application to a specific database engine.
It makes simple queries very simple but ...
My situation is a bit complex. I want to create $config rules for my form_validation so that my code is cleaner, but the problem is here:
if( $this->input->post( 'usertype' ) == "new_user" )
{
$this->form_validation->set_rules('new_email', 'E-mail Address', 'required|valid_email' );
$this->form_va...
Dear all,
my code is below.it show the output in table format having no problems.
But when the particular tr gets long output from database then the table break.
Now how can i fixed the tr width strictly?let say i want each td cannot be more than 100px.
How can i do it?
Note: Here table means html table,not the database table.
...
I have a script that takes a while.
I'd like to display a page during the processing of the script then redirect when the process is complete.
E.g.: form.php -> processing.php -> display_result.php
I would like that processing.php is displayed immediately after form is submitted showing (Processing your information, please wait...)
O...
I am using codeigniter framework.
where should i sanitize PHP input - controller or model ?
...
I made a PHP-function which returns an array and then I move its value to a variable $a. How can I output it to a web page on CodeIgniter?
...
Is it possible to add price values to product options in the Codeigniter Cart Class. For example: T-shirt price is $10.00, but the XXL size is an extra $2.00.
$data = array(
'id' => 'abc',
'qty' => 1,
'price' => 10.00,
'name' => 'T-Shirt',
'options' => array('Size' => ...
Function:
function do_upload() {
$config = array(
'allowed_types' => 'jpg|jpeg|gif|png',
'upload_path' => $this->gallery_path,
'max_size' => 2000
);
$this->load->library('upload', $config);
$this->upload->do_upload();
$image_data = $this->upload->data();
$config = array(
'imag...
Are there anyone who can help me out on how to connect a codeigniter-application with couchDB?
I have tried to find drivers or libraries, but without any success. What can I do to make it work?
Thanks!
...
I have XAMP installation, with htdocs in D drive. I copied Codeigniter/System folder to E drive. Now when i type http://localhost, i should able to access E:/Codeigniter/System/index.php
How can i achieve this.
...
When creating a CodeIgniter project, what is the best way to handle relations between models? Should models contain other models that they are related to, should this be handled in the controller, or is there some other way to handle these scenarios? I'm thinking about one-to-one, one-to-many, or many-to-many relationships.
example: let...
I am currently developing a little ecommerce application to help me get to grips with CodeIgniter and programming in general.
I have a 4 step checkout process.
Customer name, email, shipping country
Shipping option, shipping address
Billing option, billing address
Review and submit
Currently I am storing all this data in the session...
I want to convert a model query to json with json_encode, it doesn't work. But with a ordinary array it does.
$arr = array("one", "two", "three");
$data["json"] = json_encode($arr);
Output
<?php echo "var arr=".$json.";"; ?>
var arr=["one","two","three"];
But when I try to convert a query codeigniter throws an error. Wh...
How the heck do I increment a variable that's inside a session?
If I declare $attempt, each time a user unsuccessfully attempts to login, I want $attempt to increase by 1. In the event it gets to 3, display a captcha.
This doesn't seem to work. :-P
$this->session->set_userdata('attempt',$this->attempt++);
...
I'm new to PHP, started with Code Igniter and MAMP. I start the server from the MAMP application, and write PHP in the text editor.
When errors occur in the code, the page doesn't display anything! Is there anyway to see the errors on console? or PHP just doesn't show errors?
I'm used to Eclipses console when developing Java, is there...
I am using Codeigniter to develop an application, and have been reading bits about Ruby on the Rails. In particular Skinny Controller, Fat Model seemed to make perfect sense. It really allows me to look at the controller and know what the hell is actually going on, and allows very very quick adjustments and bug fixes.
However the one st...
I have se the below date format in the codeignitor config.php
$config['log_date_format'] = 'd/m/Y';
Ans wen I enter '30/04/2010' in the text input field and tried to save, got he following error
ERROR: date/time field value out of range: "30/04/2010" HINT: Perhaps you need a different "datestyle" setting
Corresponding query is bel...