ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Changes to welcome_message takes a lot of time to update

July 26, 2011 6:46am

Subscribe [3]
  • #1 / Jul 26, 2011 6:46am

    luc_pop

    3 posts

    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:

    $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 / Jul 26, 2011 7:09am

    XMadMax

    66 posts

    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 / Jul 26, 2011 7:40am

    luc_pop

    3 posts

    Nope, I don’t have cache activated.

    Here is the whole file:

    <?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
         *         <a href="http://example.com/index.php/welcome">http://example.com/index.php/welcome</a>
         *    - or -  
         *         <a href="http://example.com/index.php/welcome/index">http://example.com/index.php/welcome/index</a>
         *    - or -
         * Since this controller is set as the default controller in 
         * config/routes.php, it's displayed at <a href="http://example.com/">http://example.com/</a>
         *
         * So any other public methods not prefixed with an underscore will
         * map to /index.php/welcome/<method_name>
         * @see <a href="http://ellislab.com/codeigniter/user-guide/general/urls.html">http://ellislab.com/codeigniter/user-guide/general/urls.html</a>
         */
        public function index()
        {
            $this->load->view('welcome_message');
        }
    }
    
    /* End of file welcome.php */
    /* Location: ./application/controllers/welcome.php */
  • #4 / Jul 26, 2011 8:45am

    DirkZz

    15 posts

    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 / Jul 26, 2011 8:52am

    XMadMax

    66 posts

    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 / Jul 26, 2011 9:16am

    luc_pop

    3 posts

    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

    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.


    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 / Jul 26, 2011 9:57am

    DirkZz

    15 posts

    And this with the CodeIgniter you download from here? With out any further modifications besides 1 View.

  • #8 / Jul 26, 2011 10:44am

    luc_pop

    3 posts

    yes.

    I downloaded it last week.

    the modifications I made are in the config.php :

    $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.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases