Welcome Guest, Not a member yet? Register   Sign In
  Forcing lower case controller names
Posted by: El Forum - 05-20-2008, 09:54 AM - Replies (2)

[eluser]liquid_t[/eluser]
I just stumbled upon a problem with my site were people are linking to pages with the controller name in caps and getting 404 pages..not good Sad

For instance www.domain.com/contact is fine. www.domain.com/CONTACT is not. also I think this only happens with controller names. Not controller functions or their parameters.

So the question is: Can I force lowercase with routing or htaccess ... or something?

Thanks a lot!


  Fixed oci8 driver
Posted by: El Forum - 05-20-2008, 09:05 AM - Replies (2)

[eluser]Unknown[/eluser]
Fixes stored procedures. Now you can work with out parameters and cursors in php 5 (Not tested with php 4).

Please report bugs here.
Download


  where is $this->db-> functions
Posted by: El Forum - 05-20-2008, 08:38 AM - Replies (1)

[eluser]dexter21[/eluser]
Hi, i am trying to locate function of $this->db->

but i dont know where it is. I want to modified a function $this->db->queryAmpli .

Where can i locate all functions that use $this->db ?


Many thanks


  Accessing $this in a helper?
Posted by: El Forum - 05-20-2008, 08:26 AM - Replies (2)

[eluser]antiver[/eluser]
I created a user helper that contains functions such as login(), logout(), authenticated(), get_user(), etc. When I went to use it (no, I didn't test it before it was done lol), it threw a fatal error that I was using $this in a non-object context. Fair enough. I was trying to use CodeIgniter's session library, and to access that, I was using $this->session.

My first thought was to try and get $this into my functions, perhaps by

Code:
//usage: login($this);
function login($that) {
  $that->session->...
}
But I assume that'll just make a local copy of $this.

Now I'm thinking that I could fix my problem by rebuilding my user helper as a library, but that doesn't seem like an entirely logical solution and I was wondering if there was something I missed - where should I have written my user functions? Thanks.


  [Need help] it's strange
Posted by: El Forum - 05-20-2008, 08:24 AM - Replies (4)

[eluser]Leonard Yulianus[/eluser]
i am currently writing my personal page using CI. it works fine on my dev machine (localhost)

but when i'm trying to access it from another computer in the same network, it works but with no styles at all.

why could this happen? is there something wrong with my assets?


  Performance of multiple view calls
Posted by: El Forum - 05-20-2008, 08:19 AM - Replies (3)

[eluser]louis w[/eluser]
Wondering is there is performance considerations with making multiple view calls when building a site.

I am building a menu and wanted each row to be a view call. But it could be >10 calls just for 1 menu. Would this slow things down as opposed to calling a function for each row and hard coding html in it.


  DSN issue
Posted by: El Forum - 05-20-2008, 08:06 AM - Replies (8)

[eluser]yoda.pt[/eluser]
Hi,

Can someone give me a light about this?

I'm trying to use DSN to connect to another database, and I'm not sure about what does $this->load->database funcion returns.

My code:

Code:
$remote = $row['driver'].'://'.$row['username'].':'.$row['password'].'@'.$row['hostname'].'/'.$row['database'].'?char_set=utf8&dbcollat=utf8_general_ci&cache_on=false&cachedir=';
$this->_edb = $this->load->database($remote);

This code is placed inside a model. Everything should work fine, but I can't get the variable refeering the new database pointer. Tried assigning a variavle, using his name, and nothing worked so far.

Can anyone explain what should I receive when calling $this->load->database?



Thank you for your support in advance Smile


  Download helper
Posted by: El Forum - 05-20-2008, 07:41 AM - Replies (2)

[eluser]Ahmed Nuaman[/eluser]
Hi,

I had some issues with the download helper not sending files correctly when 'compress output' was turned on. It seems that if the file was small, it didn't work properly. Therefore, I change the following:

Line 94: echo $data to exit($data);

Now it works fine.


  HI , I AM A NEWBIE
Posted by: El Forum - 05-20-2008, 07:18 AM - Replies (6)

[eluser]Unknown[/eluser]
hi all,

i am new with code igniter and i am trying to start with php.

could somebody tell me what should i do to start,

i ve downloaded wamp and code igniter framework and i would like to know how to make something easy like a hello word

i mean , where should a i put my php pages and similar staff


thanks a lot Smile


  $this->validation->error_string; doesn't work in controller
Posted by: El Forum - 05-20-2008, 07:08 AM - Replies (7)

[eluser]KeyStroke[/eluser]
I'm trying to fetch the error string within my controller by using:

Code:
$this->validation->error_string;
but it returns an empty string when validation fails. It works fine when I place it in my View, but not in the controller.

How do I make it work?


Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Latest Threads
SQL server connection not...
by JustJohnQ
2 minutes ago
CVE-2022-40834 SQL Inject...
by kenjis
1 hour ago
Retaining search variable...
by pchriley
1 hour ago
How to use Codeigniter wi...
by sr13579
2 hours ago
Disable debug output in v...
by groovebird
2 hours ago
CI 4.5.1 CSRF - The actio...
by kenjis
4 hours ago
CodeIgniter v4.5.0 Releas...
by kenjis
4 hours ago
Cache best practice?
by BhambriRohunu
5 hours ago
Bug with sessions CI 4.5....
by InsiteFX
6 hours ago
Codeigniter Shield Bannin...
by kenjis
10 hours ago

Forum Statistics
» Members: 85,329
» Latest member: williampatel
» Forum threads: 77,578
» Forum posts: 375,995

Full Statistics

Search Forums

(Advanced Search)


Theme © iAndrew 2016 - Forum software by © MyBB