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

Username/Email:
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 10,781
» Latest member: Rahul1
» Forum threads: 67,406
» Forum posts: 421,560

Full Statistics

Latest Threads
localhost Website
Forum: General Help
5 hours ago
» Replies: 4   » Views: 119
Save Codeigniter config d...
Forum: Best Practices
9 hours ago
» Replies: 3   » Views: 140
PHP / jQuery Developer Ne...
Forum: Jobs
10 hours ago
» Replies: 13   » Views: 5,254
Facing a Forbidden issue
Forum: CodeIgniter 2.x
11 hours ago
» Replies: 5   » Views: 107
Send many emails
Forum: General Help
Today, 05:46 AM
» Replies: 5   » Views: 176
Bootstrap TagsInput with ...
Forum: General Help
Yesterday, 11:43 PM
» Replies: 0   » Views: 80
You need to set your "doc...
Forum: CodeIgniter 4 Support
Yesterday, 03:07 PM
» Replies: 2   » Views: 99
$this->output
Forum: General Help
Yesterday, 11:17 AM
» Replies: 1   » Views: 104
About oAuth2
Forum: General Help
Yesterday, 11:12 AM
» Replies: 3   » Views: 142
Old chestnuts
Forum: CodeIgniter 4 Discussion
Yesterday, 08:33 AM
» Replies: 1   » Views: 65

 
  Remove index.php from Url
Posted by: El Forum - 07-18-2007, 02:55 PM - Forum: Archived General Discussion - Replies (5)

[eluser]andreiu81[/eluser]
I read the CodeIgniter URLs from User Guide. I applied the rules from there but cannot make to dissapear the index.php from the url. Also when I type the url without index.php i get a 404 error (file not found).

Can you tell me the steps to do to remove index.php from the url?

Thnak you..


  regular expression trouble...
Posted by: El Forum - 07-18-2007, 02:24 PM - Forum: Archived Development & Programming - Replies (3)

[eluser]danoph[/eluser]
i am trying to route URLS such as http://localhost/contact to http://localhost/home/contact UNLESS $1 is sell or store using the following route. http://localhost/sell and http://localhost/store link to the right controllers, but if the method isn't one of those two, I get a 404 error. I am obviously doing this wrong. Can anyone help me out?

$route['!^(sell|store)'] = "home/$1";


  Download helper problem - Please help!
Posted by: El Forum - 07-18-2007, 01:52 PM - Forum: Archived General Discussion - Replies (2)

[eluser]Unknown[/eluser]
I am using force_download to transfer a text file to desktop.
But somehow I can't not get the whole contents of the file.
No matter the file size, the last few lines are always missing.
I hope someone can help me. Thanks!

Here is my code:
{
$this->load->helper('download');
$data = trim(file_get_contents("./tmp/some.txt")Wink;
$name = 'foo.txt';
force_download($name, $data);
}


  A simple question ..
Posted by: El Forum - 07-18-2007, 01:48 PM - Forum: Archived General Discussion - Replies (2)

[eluser]gops[/eluser]
When I use something like

echo form_open('email/send');

this in my CI code. How code igniter will find send function ?

1) Will it first search for a email controller and then send method ?

Or

2) Will it search for a email folder and within it , send controller ?

How can I change the behavior ?

Thanks.


  Read the config file matrix on a view file
Posted by: El Forum - 07-18-2007, 12:50 PM - Forum: Archived General Discussion - Replies (3)

[eluser]Unknown[/eluser]
Hello everybody.....

I need a little help...i want to read the matrix (basically the base_url value) in one view file. It that possible.
Or i need to pass the value throw the controller..

Thanks...


PS. sorry for my English..i working on it :-)


  Question About Uploading/Cropping
Posted by: El Forum - 07-18-2007, 10:34 AM - Forum: Archived Development & Programming - No Replies

[eluser]Unknown[/eluser]
nvm, its fixed


  PROBLEM WITH DB QUERIES
Posted by: El Forum - 07-18-2007, 10:03 AM - Forum: Archived Development & Programming - Replies (3)

[eluser]ReSTe[/eluser]
Hi all, i'm newbie about codeigniter, i'm developing an application for my 3rd year thesis at politecnico Milano... i have a question:

here is my code:

$user=$_POST["user"];
$pass=$_POST["password"];
$query = "select * from operatore where user='$user' and password= '$pass'";
$result=$this->db->query($query);
//echo "$query[nome]";
if($result->num_rows() > 0)
echo"ASDASD";


and i see this error:

Fatal error: Call to a member function num_rows() on a non-object in C:\www\codeigniter\CodeIgniter_1.5.4\system\application\controllers\tmfmagenta.php on line 31

(it's on $result variable)


WHY?!?!?!?!?!?!?!?


  Use variables from controller in views
Posted by: El Forum - 07-18-2007, 08:31 AM - Forum: Archived General Discussion - Replies (6)

[eluser]woracal[/eluser]
Maybe a stupid question. How do I use variables from a controller in a view? Appreciate any help. Thanks!


  prep_url adds http:// to mailto: urls
Posted by: El Forum - 07-18-2007, 08:09 AM - Forum: Archived Development & Programming - Replies (2)

[eluser]Al James[/eluser]
Using prep_url() in the url_helper.php adds http:// to mailto: urls!

Really (in my mind) it should check for any URL protocol (ftp: etc...) before adding the http://.


  [Secret] 404 errors
Posted by: El Forum - 07-18-2007, 06:49 AM - Forum: Archived General Discussion - Replies (2)

[eluser]@li[/eluser]
Hi,

On the latest version of CI, I'm getting a 404 error if I try to go to a URL such as:

http://localhost/blog/admin/create/123/

Blog is the directory where my app is placed. I do have a directory called 'admin' in application/controllers, and there's a controller called 'create.php' in that directory as well. Simply going to http://localhost/blog/admin/create/ works, but if I put something else after the URL, (e.g the /123/), I get a 404 error. I need to pass on some information to the controller through the URL, so I must be able to add more segments to it.

I found that in system/libraries/Router.php, on line #177, changing:

$this->set_method($segments[1]);

to:
$this->set_method($segments[0]);

fixes this, but it causes CI to give a 404 error in some other places.

Has anybody else noticed this problem? Any ideas?



  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2018 MyBB Group.