Welcome Guest, Not a member yet? Register   Sign In
anchor()
#1

[eluser]Unknown[/eluser]
pls am finding it difficult using the anchor() method to call a controller function.each time i try using it,it gives me errors,more like it cannot locate the controller function that is suposed to call the page appended to the anchor() method.
#2

[eluser]cideveloper[/eluser]
Post some code and you might get some help.

And please use the code tags.
#3

[eluser]InsiteFX[/eluser]
Code:
anchor('Controller/method',,);

InsiteFX
#4

[eluser]Unknown[/eluser]
turns out the problem is with my .htaccess file.when i use the "index.php", the anchor() method works properly.
#5

[eluser]InsiteFX[/eluser]
Did you try adding this to your .htaccess file?
Code:
RewriteCond $1 !^(index\.php|assets|user_guide|robots\.txt|favicon\.ico)
RewriteRule ^(.*)$ index.php/$1 [NC,L,QSA]

Works for me!

InsiteFX




Theme © iAndrew 2016 - Forum software by © MyBB