Welcome Guest, Not a member yet? Register   Sign In
only one view is viewed..
#1

Hi guys, im very new to codeigniter so sorry.. Smile


Code:
namespace App\Controllers;

use CodeIgniter\Controller;

class Articles extends Controller
{
    public function index()
    {

        return view('templates/header');
        return view('pages/articles_page');
        return view('templates/footer');

    }




Im doing the most simple thing - trying to make my static page. Problem is that when i go to /articles/ it only shows the first of the views - in this example header template. In case of deleting first view i get the second one, and /articles/ pages will show 'articles_page' view. What's wrong ?? i have basically no clue.
Reply


Messages In This Thread
only one view is viewed.. - by jmaid - 12-20-2021, 08:17 AM
RE: only one view is viewed.. - by DawiD - 12-20-2021, 10:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB