Welcome Guest, Not a member yet? Register   Sign In
all in one controller?
#1

[eluser]Asinox[/eluser]
Hi, i want to know ...if the correct thing is put all in one controller.... get_articles, read, add, edit.

i asking because i need to know about the private seccion....


some tutorial?

Thanks Smile
#2

[eluser]bapobap[/eluser]
You can do what you want.

I prefer to keep the admin section separate if I'm the only one who uses it, so a different controller for both types of use.

If users use both, I'd keep them in the same controller.

It doesn't really matter either way, you can do it whatever way you want.
#3

[eluser]mglinski[/eluser]
Use Logic, works every time.

Assemble controllers that control all the functions of a specific group(like a blog).
Separate the admin to save execution time on the frontend.
Create a model to access the DB like an API( $this->db_model->getArticles(10) ).

Follow my advice and you are on your way. Wink
-Matt
#4

[eluser]Asinox[/eluser]
Thanks guys Smile




Theme © iAndrew 2016 - Forum software by © MyBB