[eluser]smdbzdmr[/eluser]
Hi
I just start codeigniter and read/watch tutorials. I think i learn ci basics
But i need help about this routings
I always use same url structure.
Home
Code:
http://localhost/codeigniter/
For example general pages
Code:
http://localhost/codeigniter/contact
http://localhost/codeigniter/about
http://localhost/codeigniter/gallery (just photo list)
And category system or other pages
Code:
http://localhost/codeigniter/products/ (category)
http://localhost/codeigniter/products/notebooks/ (category)
http://localhost/codeigniter/products/dell-inspiron-6400-notebook (product page (no / at the end of it))
My old theme system has 4-5 files like
Code:
tpl.index.php (home)
tpl.page.php (general pages (contact, about...))
tpl.product.page.php (product page)
tpl.products.php (products list (category template))
I just want to know how can i make this with codeigniter? I think i need Page, Category, Product_page, Home (i am not sure about home) controllers and some views and models. Views and models not important i can write them but can you help me about routings?
(sorry for my english)
Regards