I realise this request goes against the example provided in the CI documentation (which advises a separate 'success' page view), but I would like to reutilise a given form view after a form has been successfully submitted - displaying a success message then displaying a blank form. I've tried a few ways unsuccessfully to clear the valida...
I'm still very new to codeigniter. The issue i'm having is that the file uploads fine and it writes to the database without issue but it just doesn't return me to the upload form. Instead it stays in the do_upload and doesn't display anything. Even more bizarrely there is some source code behind the scenes that appears to be the message ...
Hello,
I am building a Codeigniter shopping cart. On the cart details page I have a form input field allowing the user to type in the quantity required of a product, and a submit button to post the information to the update function.
When there is just one item in the cart, when updating the quantity everything works as it should. Ho...
Basically I'm looking for a solution where a user is notified five minutes before the session expires.
The ideal solution will be count down notification that will have an option to renew the session.
If the countdown timer expires without the user refreshing the page, I need to log them out.
...
I've just published my site, created with codeigniter.
the entire directory is in my public folder, including the config file (in public/system/application/config).
I just wanted to double check: do I have to move this file to another, non public, directory? I think codeigniter doesn't allow any direct access, but I am not 100% sure..
...
Below is my script that i'm using to upload different files. All the solutions I've found deal only with multiple image uploads. I am totally stumped for a solution on this. Can someone tell me what it is i'm supposed to be doing to upload different files in the same form? Thanks
function do_upload()
{
$config['upload_path'] = './up...
I started an app that was initially a testing platform--user management, and managers that can view their employees tests.
Recently, functionality has been extended (not built yet) to allow users to complete a test in place of an employee--basically adding a record, but no user.
I have three tables in use for this: users(contains user ...
There are lots of suggested fixes for this but none of them work for me. I have tried making the upload class (using the following methods: http://codeigniter.com/forums/viewthread/148605/ and http://codeigniter.com/forums/viewthread/125441/).
When i try to upload an mp3 i get the error message "The filetype you are attempting to upload...
Dear all,
I have develop a project on codeignator.On xamp server.The pagination is working fine on that project on xamp server but when i shift the same project in to my linux server then the whole project work but the pagination is not working.
Can anybody give me any solution on that issue? why the same code pagination is not working...
hi, i need to make a simple site search with a pagination in it, can anyone tell me how to do it with out affecting the url structure. currently i m using default ci url structrue and i have removed index.php from it. any sugestion guys?>....
...
What is the purpose of "Get Instance" in Codeigniter?
How would you explain this to a total beginner?
...
I have a working controller and library function, but I now need to pass a URI segment to the library for decision making, and I'm stuck.
Controller:
function survey($method)
{
$id = $this->session->userdata('id');
$data['member'] = $this->home_model->getUser($id);
//Convert the db Object to a row array
$data['manager'...
Is there any method to capture the time taken from the alert message displayed till the users action to confirm the message using javascript
...
How do I create an if statement saying something like this?
Basically, how do you use the URI class to determine if there is a value in any segment?
$segment = value_of_any_segment;
if($segment == 1{
do stuff
}
I know this is pretty elementary, but I don't totally understand the URI class...
...
I've got a script that is a notify_url from paypal that is supposed to update multiple tables in my database using the following code:
//update first table
$this->db->where('someid', $somid);
$this->db->update('table', $data);
///update second table
$this->db->where('somesecondid', $somesecondid)
$this->db->update('anothertable', $dat...
I don't even know if that's the right term.
May it be known that I'm a major novice!
I have three tables: users, profiles, and survey. Each one has user_id as it's first field, (auto-increment for users), and they're all tied by a foreign key constraint, CASCADE on DELETE.
Currently, for each user, let's say user_id 1, they have a co...
Hi,
I read this
http://stackoverflow.com/questions/1328420/the-best-way-to-make-codeigniter-website-multi-language-calling-from-lang-arrays
for language inclusion...
i wonder how the url will appear for multi languages...
How to show the language in url so that it will also be indexed in search engines...
for example sitenameDOTcom/es...
Hi,
I want to integrate the dhtmlxScheduler calendar with the codeigniter framework. But I am not sure how to connect with the model instead of the db directly and also, how to manage the interaction between the controller, the model and interface.
thanks
...
I have setup remote debugging in netbeans. It works except codeigniter only loads the default controller (home page).
I have enabled query strings with
$config['enable_query_strings'] = TRUE;
The debugger opens up a page with the following url
http://blinkfilms.ben.dev/myid/tests?XDEBUG_SESSION_START=netbeans-xdebug
So codeignite...
Hi All,
Basically i developed my app on a localhost wamp server with PHP 5. ON uploading to the actual host i notice that
The server is running php 4.4.9
Everytime i upload my .htaccess file, the server removes it completely.. seems to not be allowed
When i test out the set all i get is a 404 page not found
Any help on how to make...