Welcome Guest, Not a member yet? Register   Sign In
newbie need ur help!!
#6

[eluser]iConTM[/eluser]
well i'm not a .htaccess hero either :p

did you try to set 'index.php' in the url you want to access?
e.g.: http://localhost/index.php/hello

I know that you can define which directories or files can be accessed or not by the user.
This is a verry important file when setting up CI.

here are some interesting links about this:
http://ellislab.com/codeigniter/user-gui.../urls.html
http://opinionatedcoder.wordpress.com/20...-htaccess/

the function parameters can be passed by url
e.g.

Code:
<a href="&lt;?php echo base_url() ?&gt;home/article/15">link</a>

home = controller
article = method
14 = param for article method (optional)

Code:
function article ($id)
{

}

Quote:and why would i point to the controller while i want to load the view and my page is in the view folder??

This is how CI works:

the view is loaded within each controller
each controller can be accessed by the url

it's all explained in the userguide Smile


Messages In This Thread
newbie need ur help!! - by El Forum - 06-20-2010, 04:47 AM
newbie need ur help!! - by El Forum - 06-20-2010, 05:23 AM
newbie need ur help!! - by El Forum - 06-20-2010, 05:35 AM
newbie need ur help!! - by El Forum - 06-20-2010, 06:09 AM
newbie need ur help!! - by El Forum - 06-20-2010, 08:31 AM
newbie need ur help!! - by El Forum - 06-20-2010, 03:50 PM
newbie need ur help!! - by El Forum - 06-20-2010, 04:18 PM
newbie need ur help!! - by El Forum - 06-20-2010, 07:21 PM



Theme © iAndrew 2016 - Forum software by © MyBB