Welcome Guest, Not a member yet? Register   Sign In
Scaffolding in subfolder
#1

[eluser]bigdaddysheikh[/eluser]
When the scaffolding is triggered in a sub-folder controller, it is unable to load "add" or "view" pages.

I can view the main page but when I click on "new record" or view record, it does not work.

Anyone else run into this problem.
#2

[eluser]zdknudsen[/eluser]
Yes. As a matter of fact a lot of people have run into this problem.

However, as of 1.6.0 scaffolding is deprecated, and thus, will not recieve bugfixes.

I suggest you take a look at some of the user-contributed alternatives (CodeExtinguisher for instance).
#3

[eluser]Michael Wales[/eluser]
What is the URL when you click add/view?

This error is usually caused when you don't update your base_url.
#4

[eluser]bigdaddysheikh[/eluser]
Hey,

I have checked the base_url and it still does not work in sub folders. However it does work when the it is placed in the controller folder. I thought it would be the base_url as well at first.
#5

[eluser]EEssam[/eluser]
This is really sad. Why exactly scaffolding was deprecated?

It's one of the best features in CI Sad
#6

[eluser]bigdaddysheikh[/eluser]
I do not know,

I thought CI would be easy to implement and use. I have read the user guide and tutorials but having issues with subfolder and now having some troubles with the load->view pages in sub folders.

When I go to the link, the page is just empty without errors. what does that mean?
#7

[eluser]bigdaddysheikh[/eluser]
Oh playing around with it I have realized that it could be my form elements.

When I place this code:

<? echo form_open('admin/admin/login'); ?>
<? echo form_input('name' => 'username');?>
<? echo form_password('name' => 'username')?>
<? echo form_submit('mysubmit', 'Submit Post!');?>
<? echo form_close();?>

the page does not work. How come CI does not spit out any errors and just shows empty page?
#8

[eluser]bigdaddysheikh[/eluser]
Fixed it.

The code:
<? echo form_input('name' => 'username');?>
<? echo form_password('name' => 'username')?>

should be:
<? echo form_input('username');?>
<? echo form_password('username')?>

Lesson learnt.

Now I just wish CI would actually tell the errors rather than load an empty page.




Theme © iAndrew 2016 - Forum software by © MyBB