Scaffolding Path[solved] - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Scaffolding Path[solved] (/showthread.php?tid=4786) |
Scaffolding Path[solved] - El Forum - 12-16-2007 [eluser]r@mtbb_[/eluser] Hello CI-ers, I've start learning codeigniter this morning, and of course I tried by applying the video tutorials. So, it felt simple until i got to the scaffolding part. I cannot manage mysql table records because scaffolding requests an invalid path (eg. http://localhost/CI/index.php/blog/index.php/blog/scaffolding/delete/0) so I get an extra "index.php/blog/". I am using the latest wamp version, and followed the tutorials step by step. What could be the problem? Update: I figured I can skip this part and then added records to database manually but now I can't retrive query results neither. The code is exactly as in the tutorial and I get this error: Quote:Fatal error: Call to a member function get() on a non-object in C:\wamp\www\CI\system\application\controllers\blog.php on line 17 Update2: The scaffolding problem was solved by defining the base path . Now, there's only the get() issue. Here's the code: Code: class Blog extends Controller { Thanks! //fixed...I wasn't loading the database lib. I was expecting to have that explained in teh tutorial Scaffolding Path[solved] - El Forum - 12-19-2007 [eluser]Unknown[/eluser] Same problem here... What exactly do you mean by defining base path? I echoed BASEPATH and it's currently defined as "C:\wamp\www\CI/system/" does it need to be defined as something else? Scaffolding Path[solved] - El Forum - 12-19-2007 [eluser]Michael Wales[/eluser] 1. Visit the Installation Instructions 2. Follow them, specifically #3, as follows: Code: /* A highly likely candidates for this setting: Code: $config['base_url'] = "http://localhost/"; Scaffolding Path[solved] - El Forum - 01-05-2008 [eluser]fender21[/eluser] Thank you for this post! Fixed my issue ;-) |