Welcome Guest, Not a member yet? Register   Sign In
Tutorial questions
#1

[eluser]Unknown[/eluser]
Question 1 (which has been discussed in this post http://ellislab.com/forums/viewthread/67149/) is, why does using the scaffolding cause the framework to keep adding redundant "index.php/blog/scaf" bits to the URL.
For instance this is the blog scaffolding url: http://localhost/ci/index.php/blog/scaf/ when on that view hitting "create new record" gives me back a 404 with the following URL:
http://localhost/ci/index.php/blog/scaf/...g/scaf/add.
It will keep adding another "index.php/blog/scaf" each time I click that link.

Question 2 is regarding the whole database issue. As far as I could tell (after I inserted data manually to the blog entries table) I was able to view existing entries without doing an autoload or $this->load for the database, although I couldn't manage to edit/delete/insert anything, which could be related to the malformed URL discussed in (1).
Can anyone shed light on this for me?

thanks,
db
#2

[eluser]Michael Wales[/eluser]
Quote:Question 1 (which has been discussed in this post http://ellislab.com/forums/viewthread/67149/) is, why does using the scaffolding cause the framework to keep adding redundant “index.php/blog/scaf” bits to the URL.
For instance this is the blog scaffolding url: http://localhost/ci/index.php/blog/scaf/ when on that view hitting “create new record” gives me back a 404 with the following URL:
http://localhost/ci/index.php/blog/scaf/...g/scaf/add.
It will keep adding another “index.php/blog/scaf” each time I click that link.

Because you didn't edit config.php and setup your application correctly.

Quote:Question 2 is regarding the whole database issue. As far as I could tell (after I inserted data manually to the blog entries table) I was able to view existing entries without doing an autoload or $this->load for the database, although I couldn’t manage to edit/delete/insert anything, which could be related to the malformed URL discussed in (1).
Can anyone shed light on this for me?

I'm not positive (because I never touch scaffolding) but based on the description you have provided it wouldn't be a stretch of the imagination if the scaffolding library didn't load the database class itself. In fact, I'd be surprised if scaffolding didn't ensure the database was loaded since it would be useless without it.

And yes, the edit/delete/insert isn't working because of the issue in #1.




Theme © iAndrew 2016 - Forum software by © MyBB