Welcome Guest, Not a member yet? Register   Sign In
Stupid question about include()
#1

[eluser]Phoenixheart[/eluser]
(Sorry, but I am new to CI)
Assuming I have a controller at projects.php, in which I have GetProjects() function. Also I have a view called projects_view.php.
I wanted to call GetProjects() along with the view. So in projects_view.php I put this code:
Code:
// my HTML here
<?php
    include('index.php/projects/GetProjects');
?>
// my HTML here
But I received this error:
Code:
Message: include(index.php/projects/GetProjects) [function.include]: failed to open stream: No such file or directory
Does it mean we can't use php's include() with CI's URI? Or am I doing something wrong?
Thanks in advance!


Messages In This Thread
Stupid question about include() - by El Forum - 08-26-2007, 08:57 AM
Stupid question about include() - by El Forum - 08-26-2007, 10:30 AM
Stupid question about include() - by El Forum - 08-26-2007, 12:26 PM
Stupid question about include() - by El Forum - 08-26-2007, 12:48 PM
Stupid question about include() - by El Forum - 08-28-2007, 07:01 AM
Stupid question about include() - by El Forum - 08-28-2007, 08:33 AM
Stupid question about include() - by El Forum - 08-28-2007, 08:38 AM
Stupid question about include() - by El Forum - 08-28-2007, 09:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB