CodeIgniter Forums
how dynamic titles - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: how dynamic titles (/showthread.php?tid=68883)



how dynamic titles - tranthe - 09-09-2017

How can I show dynamic titles for my application posts? I already red the docs. But I cant achive that for exampe I created a blog but in every post does not change the title. I wrote this config['page_title'] = "my title", but that title is showing in every post.


RE: how dynamic titles - ciadvantage - 09-09-2017

Can you post some portion of your codes?. You tried to put 'page_title' in config and call it to view then obviously
it is same for all pages anyway


RE: how dynamic titles - Muzikant - 09-10-2017

Hi, the basic concept is:
  1. Save data to database.
  2. Read data in model from database (read about models).
  3. Get data in controler from model (read about controllers).
  4. Pass data to view from controller (read about views).
  5. Show data in view.
I hope this will help you a little bit.