Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Help with simple routing please?
Post: RE: Help with simple routing please?

It was a problem with 1and1 host. So FIY 1and1 not good for Codeigniter. I tried a different host and it works just fine. I can't believe I wasted so much valuable time.
5,114 Views
8 Replies
06-15-2015, 12:30 PM
lexxtoronto
    Thread: Help with simple routing please?
Post: RE: Help with simple routing please?

Thank you, but still no luck. I tried both: Code: -- $route['([a-z]+)'] = 'tlc/view/$1'; and $route['(:any)'] = 'tlc/view/$1'; -- And also tried removing it altogether, doesnt work. Also if ...
5,114 Views
8 Replies
06-15-2015, 09:26 AM
lexxtoronto
    Thread: Help with simple routing please?
Post: RE: Help with simple routing please?

Still can't make it work. What are my options now? Do I just hardcode it in .htaccess similar to this? Code: -- RewriteRule ^pet-care/?$ pet_care_info_01_02_2008.php [NC,L] --
5,114 Views
8 Replies
06-15-2015, 08:30 AM
lexxtoronto
    Thread: Help with simple routing please?
Post: RE: Help with simple routing please?

Thanks, I will have to look into that. But for now I guess I will just read more on rewrite rules.
5,114 Views
8 Replies
06-13-2015, 11:25 AM
lexxtoronto
    Thread: SQL Server Not Returning Data
Post: RE: SQL Server Not Returning Data

>>I wonder why PHP didn't kick that out as an error? Is it in production mode? Errors will be suppressed. I also had a similar problem with db queries and it won't show any errors, but then I realize...
7,123 Views
7 Replies
06-12-2015, 11:45 AM
lexxtoronto
    Thread: Help with simple routing please?
Post: RE: Help with simple routing please?

Nope, still doesn't work, but thanks anyway as I at least I know where to look for a problem. I tried this: Code: -- RewriteRule ^(.*)/index/?$ $1 [L,R=301] -- And instead of 500 server it's just g...
5,114 Views
8 Replies
06-12-2015, 07:46 AM
lexxtoronto
    Thread: Help with simple routing please?
Post: Help with simple routing please?

Routing is my weak point, Im still not clear how it works although I read the docs many times. Anyhoo. This is my .htaccess file Code: -- RewriteEngine On RewriteCond $1 !^(index\.php|assets...
5,114 Views
8 Replies
06-12-2015, 07:07 AM
lexxtoronto
    Thread: Best place to have your view files?
Post: RE: Best place to have your view files?

Thank you
7,102 Views
7 Replies
06-12-2015, 06:52 AM
lexxtoronto
    Thread: $_SERVER['CI_ENV'] -- where is and ENVIRONMENT this set?
Post: RE: $_SERVER['CI_ENV'] -- where is and ENVIRONMENT...

I followed some examples and I tried to set it in .htaccess with some ifs depending on the url e.g. if it's localhost then set Development etc, and then setting it like this in index.php: Code: --...
49,932 Views
15 Replies
06-12-2015, 06:49 AM
lexxtoronto
    Thread: Making fonts awesome work ?
Post: Making fonts awesome work ?

I've been struggling with fa fa icons not showing up. Then I found this solution on SO and it worked: That's in config.php, I used to have $config['base_url'] = 'http://www.mysite.ca' Then I change...
17,843 Views
9 Replies
05-31-2015, 12:11 PM
lexxtoronto
    Thread: Best place to have your view files?
Post: RE: Best place to have your view files?

Thanks guys, yes I'm calling them that way, it works no problem on my localhost, but when I go live Im having problems therefore I was wondering if I should move them to views.
7,102 Views
7 Replies
05-31-2015, 10:03 AM
lexxtoronto
    Thread: Best place to have your view files?
Post: Best place to have your view files?

I have no idea, but for some reason when I started my project [btw, my first project] I placed my view files inside a folder in the views folder, and now I have problems with routing: - application...
7,102 Views
7 Replies
05-31-2015, 08:18 AM
lexxtoronto
    Thread: Problems with .htaccess and environments?
Post: RE: Problems with .htaccess and environments?

CLI command line interface? Im just editing these files fia ftp client. @mwhitney, @CroNix thank you for your time! But its not working. I'll just set it manually
6,058 Views
3 Replies
04-30-2015, 10:03 AM
lexxtoronto
    Thread: Problems with .htaccess and environments?
Post: Problems with .htaccess and environments?

Here is my .htaccess file: Code: -- RewriteEngine On SetEnvIf Host www.mysite.ca$ CI_ENV=production SetEnvIf Host test.mysite.ca$ CI_ENV=testing SetEnvIf Host localhost$ CI_ENV=development ...
6,058 Views
3 Replies
04-30-2015, 08:27 AM
lexxtoronto
    Thread: Form validation by my own method
Post: RE: Form validation by my own method

@Valery, Not sure how to pass 2 parameters. But if your users->get_access($usr,$pwd) takes two parameters and you don't supply any parameters or supply just one then get_access($usr,$pwd) will not be ...
7,492 Views
8 Replies
04-28-2015, 10:51 AM
lexxtoronto
    Thread: Form validation by my own method
Post: RE: Form validation by my own method

For example my controller calls a method in login_model like this: $usr_result=$this->login_model->get_user($username,$password); So in your case this would be: $this->users->get_access($username, $pa...
7,492 Views
8 Replies
04-26-2015, 11:30 AM
lexxtoronto
    Thread: More controllers good for modularity, bad for performance?
Post: RE: More controllers good for modularity, bad for ...

@RobertSF and kilishan: Thank you!
4,393 Views
4 Replies
04-24-2015, 08:35 AM
lexxtoronto
    Thread: More controllers good for modularity, bad for performance?
Post: More controllers good for modularity, bad for perf...

Of course it's nice to have different classes/controllers performing specific tasks e.g. email, login etc. But it also means I will have to load these controllers whenever I need to use them. Ever...
4,393 Views
4 Replies
04-23-2015, 04:46 PM
lexxtoronto
    Thread: Checking if a string is empty?
Post: RE: Checking if a string is empty?

@cartalot, Ah ok I understand, that's interesting too, thank you!
7,618 Views
9 Replies
04-23-2015, 04:39 PM
lexxtoronto
    Thread: Load->view or redirect?
Post: RE: Load->view or redirect?

Kk, I understand what you meant by reproduce. Thank you!
13,964 Views
5 Replies
04-23-2015, 04:38 PM
lexxtoronto

Theme © iAndrew 2016 - Forum software by © MyBB