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

Username/Email:
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 10,472
» Latest member: sujeetyadav
» Forum threads: 67,218
» Forum posts: 420,683

Full Statistics

Latest Threads
Dropdown list in HTML for...
Forum: General Help
10 minutes ago
» Replies: 1   » Views: 21
Access to model functions...
Forum: Libraries & Helpers
24 minutes ago
» Replies: 2   » Views: 43
CodeIgniter JQXWIDGETS
Forum: General Help
30 minutes ago
» Replies: 0   » Views: 7
Need help related to my c...
Forum: Installation & Setup
48 minutes ago
» Replies: 23   » Views: 649
CI4 event listener
Forum: CodeIgniter 4 Discussion
1 hour ago
» Replies: 1   » Views: 41
Disappearance of Textboxe...
Forum: General Help
2 hours ago
» Replies: 0   » Views: 13
CodeIgniter 3.1.7 Release...
Forum: News & Discussion
3 hours ago
» Replies: 13   » Views: 4,690
Query inside transaction
Forum: General Help
6 hours ago
» Replies: 6   » Views: 127
Using ajax with codeignit...
Forum: General Help
8 hours ago
» Replies: 5   » Views: 178
debugging javascript in a...
Forum: Lounge
11 hours ago
» Replies: 4   » Views: 80

 
  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?


  again session class question
Posted by: El Forum - 07-18-2007, 06:47 AM - Forum: Archived General Discussion - No Replies

[eluser]EugeneS[/eluser]
hi,

lets imagine i have in session variable called "some_name" with the value "FALSE"

now my question:

how to define if such a variable exists in session or doesnt ?

as you know if some variable not registered in session, CI return me FALSE ... how to define if this is kind of VALUE OF EXISTED VARIABLE or VARIABLE WITH THIS NAME ISNT REGISTERED IN THE SESSIOn ?



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