Welcome Guest, Not a member yet? Register   Sign In
Changes to welcome_message takes a lot of time to update
#1

[eluser]luc_pop[/eluser]
Hello,

I just started using CodeIgniter and have a problem with updating the welcome_message view or any other view.

I changed the files (added some text), uploaded the file to the server and reloaded the page. I can not see the text I have added.

I have updated the config.php with these values:

Code:
$config['sess_cookie_name']        = 'ci_session';
$config['sess_expiration']        = 0;
$config['sess_expire_on_close']    = TRUE;
$config['sess_encrypt_cookie']    = FALSE;
$config['sess_use_database']    = FALSE;
$config['sess_table_name']        = 'ci_sessions';
$config['sess_match_ip']        = FALSE;
$config['sess_match_useragent']    = TRUE;
$config['sess_time_to_update']    = 0;

I have tried viewing the file in Chrome, Firefox and IE but the changes cannot be seen.

After some time I could see the changed text.

Question:
I want to update the files and see the changes ASAP, is there a configuration setting that I have missed? How can I see the new views/controllers a soon I have updated them?


Thank you in advance

/luc
#2

[eluser]XMadMax[/eluser]
Hello:

Be sure you don't have cache enabled in your welcome controller:

$this->output->cache();

This line activate page caching, so the changes takes some minutes to be refresed.



Xavier
#3

[eluser]luc_pop[/eluser]
Nope, I don't have cache activated.

Here is the whole file:

Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Welcome extends CI_Controller {

    /**
     * Index Page for this controller.
     *
     * Maps to the following URL
     *         http://example.com/index.php/welcome
     *    - or -  
     *         http://example.com/index.php/welcome/index
     *    - or -
     * Since this controller is set as the default controller in
     * config/routes.php, it's displayed at http://example.com/
     *
     * So any other public methods not prefixed with an underscore will
     * map to /index.php/welcome/<method_name>
     * @see http://ellislab.com/codeigniter/user-guide/general/urls.html
     */
    public function index()
    {
        $this->load->view('welcome_message');
    }
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */
#4

[eluser]DirkZz[/eluser]
Where did you make the changes? It should be in
Application - Views - Welcome_message.php

When I first started with CodeIgniter the tutorials were very helpful to me.
Be care full as the structure has changed a little over the months.
#5

[eluser]XMadMax[/eluser]
The view must to be located under /application/views/welcome_message.php

Another possibility is that you have HMVC installed, and the welcome_message.php is under /application/modules/welcome/views/welcome_message.php
#6

[eluser]luc_pop[/eluser]
[quote author="XPerez" date="1311699140"]The view must to be located under /application/views/welcome_message.php

Another possibility is that you have HMVC installed, and the welcome_message.php is under /application/modules/welcome/views/welcome_message.php[/quote]


[quote author="DirkZz" date="1311698707"]Where did you make the changes? It should be in
Application - Views - Welcome_message.php

When I first started with CodeIgniter the tutorials were very helpful to me.
Be care full as the structure has changed a little over the months.[/quote]


I triple checked everything. Also, as I mentioned before, after some time I could see the changed text so it is the correct file.
#7

[eluser]DirkZz[/eluser]
And this with the CodeIgniter you download from here? With out any further modifications besides 1 View.
#8

[eluser]luc_pop[/eluser]
yes.

I downloaded it last week.

the modifications I made are in the config.php :

Code:
$config['base_url']    = 'http://pretentiousart.se/admin/CodeIgniter/';

and the ones mentioned above.

I added 1 view and 1 controller: the blog example in the user-guide, but they are not interfering with welcome_message. The blobview has the same problem: it takes a while to see the changes.




Theme © iAndrew 2016 - Forum software by © MyBB