Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Can't access to config->item from routes.php
Post: Can't access to config->item from routes.php

Hello, I created a personal config_cars.php file who is autoload from autoload.php I can access to my datas like this $this->config->item('') from my controllers but I can't from my routes.php fil...
1,175 Views
1 Replies
05-22-2019, 10:04 AM
peter
    Thread: PHP sessions expire after X minutes
Post: PHP sessions expire after X minutes

Hello, Since few days, I have a problem with my sessions with codeigniter. They expire after approximately 16/17 minutes. Nothing change in my code and everything was working good before. Sessions a...
1,001 Views
1 Replies
05-01-2019, 04:45 AM
peter
    Thread: [Important] Bypass email validation
Post: [Important] Bypass email validation

Hello, If i simply use this code to check an email in CI : PHP Code: -- $this->form_validation->set_rules('email', 'email', 'trim|required|valid_email'); -- I just to need to send a form with...
2,427 Views
1 Replies
11-25-2018, 02:43 AM
peter
    Thread: Routing URLs and trailing slashes
Post: RE: Routing URLs and trailing slashes

Canonicale is a solution yes, but there isn't any solution with codeigniter routes and htaccess ? :(
14,137 Views
8 Replies
03-27-2015, 07:08 AM
peter
    Thread: Routing URLs and trailing slashes
Post: RE: Routing URLs and trailing slashes

The problem is that I need urls like that mypage.html and mycategorie/, I need both. So look my my complete routes.php PHP Code: -- $route['default_controller'] = "site"; $route['404_overrid...
14,137 Views
8 Replies
03-26-2015, 08:48 AM
peter
    Thread: Routing URLs and trailing slashes
Post: RE: Routing URLs and trailing slashes

Nothing change with this rule :(
14,137 Views
8 Replies
03-25-2015, 11:12 AM
peter
  Information Thread: Routing URLs and trailing slashes
Post: Routing URLs and trailing slashes

Hello, I have a little problem with codeigniter because I want to have urls like that http://site.com/dogs/ or http://site.com/cats/ etc. So see my routes.php file : PHP Code: -- $route['([0...
14,137 Views
8 Replies
03-25-2015, 06:43 AM
peter
    Thread: Using codeigniter in QUERY_STRING mode with php fast CGI
Post: RE: Using codeigniter in QUERY_STRING mode with ph...

Yes you are a genious, I don't think about $routes[], I always use my htacess for my rules... Great job, thank you :)
21,922 Views
0 Replies
03-25-2015, 03:21 AM
peter
    Thread: Using codeigniter in QUERY_STRING mode with php fast CGI
Post: RE: Using codeigniter in QUERY_STRING mode with ph...

Yes but I want use my own urls ! For exemple, I want to have an url like that "my-super-page.seo" I just can do that with an htaccess, but it's not working... It's realy hard to use codeigniter w...
21,922 Views
0 Replies
03-24-2015, 08:38 AM
peter
    Thread: Using codeigniter in QUERY_STRING mode with php fast CGI
Post: RE: Using codeigniter in QUERY_STRING mode with ph...

Yes it's works with : PHP Code: -- $config['url_suffix'] = '.html'; -- But only if my method have the same name that my url. The htaccess doesn'y change nothing : Code: -- RewriteRule ^c...
21,922 Views
0 Replies
03-23-2015, 03:26 AM
peter
    Thread: Using codeigniter in QUERY_STRING mode with php fast CGI
Post: RE: Using codeigniter in QUERY_STRING mode with ph...

Still not working for me :( When I use : PHP Code: -- $config['uri_protocol'] = 'REQUEST_URI'; $config['allow_get_array'] = TRUE; $config['enable_query_strings'] = TRUE; -- and this h...
21,922 Views
0 Replies
03-22-2015, 03:25 PM
peter
    Thread: Using codeigniter in QUERY_STRING mode with php fast CGI
Post: RE: Using codeigniter in QUERY_STRING mode with ph...

RogerMore Wrote: (03-20-2015, 09:29 AM) -- ok, a print_r() of $_GET will give you an empty array because CI stores the data from $_GET elsewhere and empties $_GET as explained. But you should be a...
21,922 Views
0 Replies
03-20-2015, 11:55 AM
peter
    Thread: Using codeigniter in QUERY_STRING mode with php fast CGI
Post: RE: Using codeigniter in QUERY_STRING mode with ph...

The $this->input->get('data') change nothing, is still empty. I use this controler : PHP Code: --
21,922 Views
0 Replies
03-20-2015, 08:28 AM
peter
    Thread: Using codeigniter in QUERY_STRING mode with php fast CGI
Post: RE: Using codeigniter in QUERY_STRING mode with ph...

And I set to TRUE, If i do PHP Code: -- -- It's not working because codeigniter go to this url http://site.com?admin/ instead of http://site.com/admin/
21,922 Views
0 Replies
03-20-2015, 02:12 AM
peter
    Thread: Using codeigniter in QUERY_STRING mode with php fast CGI
Post: RE: Using codeigniter in QUERY_STRING mode with ph...

Avenirer Wrote: (03-20-2015, 12:56 AM) -- why is this set to false? $config['enable_query_strings'] = FALSE; -- I'ts change nothing if I set to TRUE :(
21,922 Views
0 Replies
03-20-2015, 02:06 AM
peter
  Rainbow Thread: Using codeigniter in QUERY_STRING mode with php fast CGI
Post: Using codeigniter in QUERY_STRING mode with php fa...

Hello, I need to use codeigniter in QUERY_STRING mod ($config['uri_protocol'] = 'QUERY_STRING') because of my hosting. Indeed, my hosting use php fastcgi mod. So, on my config file I have this ...
21,922 Views
0 Replies
03-19-2015, 03:27 PM
peter

Theme © iAndrew 2016 - Forum software by © MyBB