page from database |
[eluser]Unknown[/eluser]
Hi! I like this: http://www.domain.com/lang/aboutus - it found DB, page table, but lang class no method http://www.domain.com/lang/products - it found DB, page table, but lang class no method http://www.domain.com/lang/contact - it not found DB, page table, but lang class method ... this pages from database (SELECT * FROM page WHERE page_title = 'aboutus') (page_title = $this->uri->segment(2)) IF ("select" return rows = 0) THEN call contact() method, ELSEIF ("select" return 1 rows) THEN $this->load->view(DB->page_title); achieved this somehow? |
Welcome Guest, Not a member yet? Register Sign In |