Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7673857
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:36:32+00:00 2026-05-31T16:36:32+00:00

So basically, I have two fast questions about kohana urls. 1) With default .htaccess

  • 0

So basically, I have two fast questions about kohana urls.

1) With default .htaccess that comes with Kohana, after loading another view, it add’s .php to index file. So, for example if I load product view, it looks something like this – http://mysite.com/index.php/products , but I would love it to look http://mysite.com/index/products .

.htaccess code –

# Turn on URL rewriting
RewriteEngine On

# Installation directory
RewriteBase /

# Protect hidden files from being viewed
<Files .*>
    Order Deny,Allow
    Deny From All
</Files>

# Protect application and system files from being viewed
RewriteRule ^(?:application|modules|system)\b.* index.php/$0 [L]

# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Rewrite all other URLs to index.php/URL
RewriteRule .* index.php/$0 [PT]

2) I have two controlles – home and products. Home is default page, but when I load products page, as described above, it shows without design. Both page layouts are same (files are different, I just copied, and I’m testing if it’s working).

Controller code –

<?php defined('SYSPATH') or die('No direct script access.');

class Controller_Records extends Controller {

    public function action_index()
    {
        $records_view = View::factory('products');

                $records = $records_view->render();

                $this->response->body($records);
    }


}

It loads just a plane html code, I’m not sure if I’m really doing it correctly.

I really hope you will help me find out solution for this, since I checked some Kohana tutorials and it seems I’m doing it fine, also in documentation it’s the same thing. I’ve came to Kohana from CodeIgniter, which was a little bit bigger documentation, and easier to understood, but as far as I found out, many programmers say that Kohana are alot better than CodeIgniter.

Thank you very much for reading this ;)!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T16:36:33+00:00Added an answer on May 31, 2026 at 4:36 pm

    2) you should setup your template controller, try this:
    Kohana template $content variable shows nothing
    And then extends Records from template controller and bind content variable to the view and echo content in template file.

    And for the first question, I’d simply advice you to set your index_file to false in init method in bootstrap.php and create index controller if you need it so much.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have basically two questions. How do I locate the default Rprofile which is
I'm building this website and I have basically two questions about this page: http://sites.publishyours.com.br/silviamecozzi/pt/obra/deserto_das_palmas.php
I have two action methods that are conflicting. Basically, I want to be able
Basically I have a database with two tables, that is, Updates table and Images
I have some C# performance tests, basically running two different methods and checking that
I basically have two forms, one for Male and another for Female. The code
If I were to select a row from a table I basically have two
Basically I have two 2D points and there is a line between them. A
I have found many people with simliar issues but no soultions...basically I have two
We have two separate web-apps, say 'retailUI' and 'bulkUI'. These two are basically two

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.