Welcome Guest, Not a member yet? Register   Sign In
Scaffolding : about to give up =(
#1

[eluser]webdezzo[/eluser]
Ok,

Really trying to get into the CI framework. But this silly scaffolding problem is driving me up a wall =(

It appears that the functionality of the scaffolding is working, insert, edit delete etc. However, I am getting the following PHP warnings spit out on the page:

------------------------------------
A PHP Error was encountered

Severity: Notice

Message: Undefined variable: scaff_view_records

Filename: views/header.php

Line Number: 23
-------------------------------------
A PHP Error was encountered

Severity: Notice

Message: Undefined variable: scaff_create_record

Filename: views/header.php

Line Number: 24
--------------------------------------
A PHP Error was encountered

Severity: Notice

Message: Undefined variable: scaff_edit

Filename: views/view.php

Line Number: 14
---------------------------------------
A PHP Error was encountered

Severity: Notice

Message: Undefined variable: scaff_delete

Filename: views/view.php

Line Number: 15
----------------------------------------

Not quite sure where they are coming from. All the other functionality seems to work great. Any help would be greatly appreciated!
#2

[eluser]Bunches McGinty[/eluser]
I think it's to do with your error reporting level set to something higher than the default. If you didn't define it in the script, then you'll need to alter your php.ini to change it.
#3

[eluser]webdezzo[/eluser]
Hey Bunches,

Thanks for the help mate, your right, the below fixed me up:

1- turn off php notices ( in /index.php , add this line )
error_reporting(E_ALL & ~E_NOTICE);

- A little shady about the variables being set that aren't being used, but I'll look into that later =)

Thanks a ton mate!
#4

[eluser]Bunches McGinty[/eluser]
The notices are just saying that variables have been used somewhere in the script that haven't been declared first. They're nothing much to worry about, really. Well, not in PHP anyway.
#5

[eluser]PoWah[/eluser]
[quote author="undecisive" date="1184311000"]Ok,

Really trying to get into the CI framework. But this silly scaffolding problem is driving me up a wall =(

It appears that the functionality of the scaffolding is working, insert, edit delete etc. However, I am getting the following PHP warnings spit out on the page:

------------------------------------
A PHP Error was encountered

Severity: Notice

Message: Undefined variable: scaff_view_records

Filename: views/header.php

Line Number: 23
-------------------------------------
A PHP Error was encountered

Severity: Notice

Message: Undefined variable: scaff_create_record

Filename: views/header.php

Line Number: 24
--------------------------------------
A PHP Error was encountered

Severity: Notice

Message: Undefined variable: scaff_edit

Filename: views/view.php

Line Number: 14
---------------------------------------
A PHP Error was encountered

Severity: Notice

Message: Undefined variable: scaff_delete

Filename: views/view.php

Line Number: 15
----------------------------------------

Not quite sure where they are coming from. All the other functionality seems to work great. Any help would be greatly appreciated![/quote]

I get the same errors after upgrade from 1.5.3 to 1.5.4 ://
It's no good if scaffolding errors forces you to turn off notices, which helps you with writing a cleaner code.
#6

[eluser]steelj[/eluser]
No matter what I do it not working just error's
A PHP Error was encountered
Severity: Notice

Message: Undefined variable: scaff_view_records

Filename: views/header.php

Line Number: 23
--------------------------------------
A PHP Error was encountered
Severity: Notice

Message: Undefined variable: scaff_create_record

Filename: views/header.php

Line Number: 24
--------------------------------------
A PHP Error was encountered
Severity: Notice

Message: Undefined variable: scaff_no_data

Filename: views/no_data.php

Line Number: 3
---------------------------------------
A PHP Error was encountered
Severity: Notice

Message: Undefined variable: scaff_create_record

Filename: views/no_data.php

Line Number: 4
---------------------------------------
Let me know if there is some kind of fix for this
#7

[eluser]PoWah[/eluser]
did you changed error reporting level in index.php to error_reporting(E_ALL & ~E_NOTICE); ??
#8

[eluser]Unknown[/eluser]
This change in the error reporting level needs to be reflected in the blog video tutorial if we want to avoid losing potential codeigniter converts.
#9

[eluser]steelj[/eluser]
I change it it working now but it is thank for the help.
#10

[eluser]andreiu81[/eluser]
Hello


I did the same thing when testing the tutorial on the blog. Now it "works" but instead of seing the links: "View records, Create New Record" i get some links "index.php/blog/secret/view | index.php/blog/secret/add"

How anybody fixed this issue?




Theme © iAndrew 2016 - Forum software by © MyBB