php - How to create 'blog' and new page in Fuel CMS with CI -
i starting out fuel cms , codeignitor. i'm looking easy read suggestions, references, tutorials, code snippets, answers etc 2 following questions below. (2-part question)
1.) how access 'blog' functionality; i've read built in /view/blog.php
don't see it; i've tried create own (in same directory) resolves static page (i created dashboard) lacks blog > post > post functionality; 'blogs
' do. i've read time over, wordpress , drupal; fuel has 'blog
' template. there none under 'layouts
' well.
so, @ point, wouldn't mind creating own 'blog
' page - which leads to:
2.) how create new page manually in fuel cms, without dashboard.
i've created empty .php
file in directory per documentation:
c:\xampp\htdocs\fuel-cms-master\fuel\application\views
i don't need custom _variables/
-- missing. i've read don't need add / set new controller
type of page nor static pages. don't want have controller if don't need to.
codeigniter works on cmv controller - model - view create simple page need create @ least 2 files 1 controller , 1 view
if using ci 2.2 http://www.codeigniter.com/userguide2/overview/at_a_glance.html
if using ci 3 http://www.codeigniter.com/user_guide/overview/at_a_glance.html
- first need create controller
- second create view
create file in application/controllhers/blog.php
<?php class blog extends ci_controller { public function view($page = 'home') { //you can acesse http://example.com/blog/view/ } public function new($page = 'home') { //you can acesse http://example.com/blog/new/ } }
Comments
Post a Comment