Welcome Guest, Not a member yet? Register   Sign In
add url suffix not working
#1

[eluser]jude[/eluser]
Hi

I'm working on Windows with Code Igniter 1.6 - which by the way is cool!
In config/config.php I added .html in the add-suffix-to-url section. no action.
Has anyone else had this problem? Any causes?
#2

[eluser]tonanbarbarian[/eluser]
are you using anchor or site_url functions to create all of your links?

maybe you should provide some example of code that is not working so others can debug and tell you if it is a real problem or you are just not doing things correctly
#3

[eluser]jude[/eluser]
Thanks for the reply. I have not done any sophisticated coding, since mine is a minimal CI 1.6 application. I have stuck to the default .htaccess file, duly filled in the database and config files (base url WITH slash etc) and removed index.php as suggested by the user guide. In the config file I have filled in ".html" for add-URL-suffix.

In the controller file I have added a php5 constructor but have not put anything unique in it - except the code suggested by the CI user guide. (I have run the program with/without the constructor function: nothing changes).
In the controller file, I have then called the URL helper, then proceeded to add code to access a database. The view file contains the normal calling-up-database code. Everything works fine, except for the fact that the promised suffix does not materialize.

Is there any additional coding one must do to get this suffix?




Theme © iAndrew 2016 - Forum software by © MyBB