Welcome Guest, Not a member yet? Register   Sign In
scaffolding question
#1

[eluser]Peter74[/eluser]
Hi all, in the introduction movie i learn, how easy is buildt a blog with scafolding, so i need to know two thinks

1) is segure use scaffolding por this purpose or i have to buildt other similar class?
2) i need use this 2 times (one for a blog, other for a simple news system), how i declare 2 instances for scaffolding?

very txs for reading
#2

[eluser]tonanbarbarian[/eluser]
Scaffolding is not recommended for a live site.
It is really only there to allow you to populate date while developing
It is expected that you will replace the scaffolding with similar code of your own
#3

[eluser]Ebot Ndip-Agbor[/eluser]
To start with, I will not encourage you to use scaffolding for a live site.

But if you must, (for a blog especially) you can use it for deleting comments. I will not advise you to use it for adding, editing or deleting articles.

As for you second question, to use scaffolding twice, load it($this->load->scaffolding) in two different controllers.
#4

[eluser]Peter74[/eluser]
iam clear now, very txs for ur comments
i hope, show you soon, my advances Big Grin

right now, iamd dealing wiht the urls , grrr base_url to link to other pages and stuff

btw .. may i question here that problem?
i have 2 files, one controller front.php and the view front_view.php

in the front_view.php i have this
Code:
<a href="&lt;? base_url();?&gt;inicio.php?lang=es">Idioma en español</a>

and de inicio.php going to create the other page, but ...
Not found , grrr
The requested URL /inicio.php was not found on this server.

txs again!
#5

[eluser]Ebot Ndip-Agbor[/eluser]
Do it like this instead,

Code:
<a href="&lt;?=base_url();?&gt;inicio.php?lang=es">Idioma en español</a>

I have a question, what page are you trying to call?
#6

[eluser]Peter74[/eluser]
I test that, i thing is something with the route.php or config.php iam reading, i dont find anwers yet.
anyway txs for feedback Smile
#7

[eluser]Peter74[/eluser]
i dont see ur last question, i want to call the controller inicio.php

my first page is front ( containt the language selection
<a href="&lt;?=base_url();?&gt;inicio.php?lang=es">Idioma en español</a><br>
<a href="&lt;?=base_url();?&gt;inicio.php?lang=en">Idioma en ingles</a><br>
and four more

that :S
txs for reply xD
#8

[eluser]Peter74[/eluser]
this way work

Code:
<a href="&lt;?=base_url();?&gt;system/application/controllers/inicio.php?lang=es">Idioma en español</a>

is good to write all that?
i mean is the idea?

iam sorry, iam tired
and my english is so bad Sad




Theme © iAndrew 2016 - Forum software by © MyBB