php - CodeIgniter controller functions not triggered -


in codeigniter, url someurl.com/test/ not execute inside controller class. please take , tell me if there's can think of might prevent execution of ci_controller here or should look.

for example following

some.testurl.com/test/hi/bob some.testurl.com/test some.testurl.com/test/hi 

all show:

above class below class 

edit: believe issue how i'm trying run 2 separate applications. 1 @ testurl.com , other some.testurl.com directory some.testurl.com subfolder of directory testurl.com held. what's right way both work?

update: moving subdomain outside other codeigniter application's directory hasn't changed behavior in way. codeigniter controller not anything.

here's code:

<?php if (!defined('basepath'))     exit('no direct script access allowed');      echo "above class<br>";      class test extends ci_controller {     public function __construct() {         parent::__construct();         $this->load->model('mod_login');         $this->load->helper('date');          } //443 replace 482     function index() {         echo "index function";     }      function hi($name)     {         echo "hi".$name."!";     } }  echo "below class<br>"; ?> 

here's .htaccess file:

rewriteengine on rewritecond $1 !^(index\.php|assets|common|ico|database_backup|images|img|js|scripts|robots\.txt) rewriterule ^(.*)$ index.php/$1 [l] 
  1. error reporting enabled , no errors triggered. environment defined development on index file.

this may mod_rewrite issue. check php info see if module installed , running on apache server.

if there is, check httpd.conf file @ <directory "c:/path/to/your/app"> directive, should exist allowoverride all.


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -