Welcome Guest, Not a member yet? Register   Sign In
Hello World problem for beginner
#12

[eluser]xwero[/eluser]
Rabbi the path should have all forward slashed, this means the str_replace function isn't doing it's work. The problem is the framework relies ot the unix style separators to prevent the use of the DIRECTORY_SEPARATOR constant otherwise if you want to call a view in a subdirectory for instance you would have to do
Code:
$this->load->view('directory'.DIRECTORY_SEPARATOR.'viewfile');
instead of the str_replace function you could try the preg_replace_all function but that is slower.


Messages In This Thread
Hello World problem for beginner - by El Forum - 06-01-2008, 01:11 AM
Hello World problem for beginner - by El Forum - 06-01-2008, 01:15 AM
Hello World problem for beginner - by El Forum - 06-01-2008, 01:20 AM
Hello World problem for beginner - by El Forum - 06-01-2008, 01:31 AM
Hello World problem for beginner - by El Forum - 06-01-2008, 01:38 AM
Hello World problem for beginner - by El Forum - 06-01-2008, 01:40 AM
Hello World problem for beginner - by El Forum - 06-01-2008, 01:44 AM
Hello World problem for beginner - by El Forum - 06-01-2008, 01:47 AM
Hello World problem for beginner - by El Forum - 06-01-2008, 02:02 AM
Hello World problem for beginner - by El Forum - 06-01-2008, 02:08 AM
Hello World problem for beginner - by El Forum - 06-01-2008, 02:21 AM
Hello World problem for beginner - by El Forum - 06-01-2008, 02:29 AM
Hello World problem for beginner - by El Forum - 06-01-2008, 02:44 PM
Hello World problem for beginner - by El Forum - 06-01-2008, 07:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB