Skip to content

Instantly share code, notes, and snippets.

View good-orbit's full-sized avatar

Michael Sanger good-orbit

View GitHub Profile
<!-- /sections/index-page.liquid -->
<div class="wrapper-performance">
{{ 'performance-features.css' | asset_url | stylesheet_tag }}
{{ 'bootstrap.min.js' | asset_url | script_tag }}
<div class="wrapper page-margin">
<div class="grid">
<main class="container">
Ok so I'm trying to attach user id to url i.e. - www.mysite.com/account/profile/123
I am able to create the url but I'm getting the page not found. I have been working with uri segments method to no avail as well as just trying to attach it to my view link.
I've started my mod rewrite in my htaccess and I've been able to get rid of index.php/ so I'm getting close.
// HERE IS ONE THING I WAS TRYING CONTROLLER WISE
public function profile()
{
//CONTROLLER
<?php
class Account extends CI_Controller {
public function __construct()
{
// Call the Controller constructor
parent::__construct();