Problem with Tutorial, part III - "Create News form"... |
[eluser]Matteo[/eluser]
Not sure what is happening, but after following the tutorial, all I get is a blank page following the 3rd part of the tutorial. My code is as follows: MODEL CODE (3.0) Code: <?php VIEW CODE (3.0) Code: <h2>Create a news item</h2> CONTROLLER CODE (3.0) Code: <?php Again, all the browser output is a blank screen. Viewing the source code for the browser shows an empty render. Any ideas? Also, I am now getting the same problem with the second part of the 2nd tutorial. The "view article" links also bring up a blank page in the browser; no errors, no 404 re-directs, etc. Just a blank page. Since the code for the 3rd tutorial includes the 2.2 code, I didn't recreate it here. Please help...
[eluser]Unknown[/eluser]
Hi, I had the same problem and i was able to fix the problem when i changed the base URL. Earlier to the problem i had my base URL as http://localhost but i changed the baseURL in config.php to http://localhost/CodeIgniter. [$config['base_url'] = 'http://localhost/CodeIgniter/';] CodeIgniter is the name of the folder/project inside the server. If you notice after you click on Create News item, the URL changes and your project name will disappear. Adding the project/folder name solves the problem. Hopefully this helps to solve your problem. :-) Best Regards, Prabesh Bhaskaran.
[eluser]Unknown[/eluser]
Hi All Could I also ask a question on this topic. I am pretty sure I have followed this beginner tutorial exactly but each time I submit my form it goes to the wrong url. What it seems to be doing is appending the form action value (news/create) onto the end of the existing URL rather than overwriting it. Has anyone got any suggestions on this for a newb? Many Thanks EDIT: Ahh i found the solution elsewhere - it was an issue with my base url http://stackoverflow.com/questions/88728...t-not-work |
Welcome Guest, Not a member yet? Register Sign In |