Questions tagged [codeigniter-hmvc]

CodeIgniter library for creating modular extensions.

CodeIgniter library for creating modular extensions.

125 questions
2
votes
3 answers

Unable to load the requested file: header.php in Codeigniter

I am Following this link converting-html-template-to-codeigniter, but Some how it cant able to run header file. here Is my code load->view($this->config->item('bootsshop_template_dir_public') .…
2
votes
3 answers

Codeigniter 3.x - Preload $data to ALL views alongside dynamic data

Question: Out of curiosity, I'm wondering if Codeigniter provides a way to have specific data always loaded into a view. For example: I have a config file that contains site information that would be beneficial to have access to inside of a view for…
acupofjose
  • 2,159
  • 1
  • 22
  • 40
2
votes
1 answer

Codeigniter Appropriate approach for accessing Model in MVC style

I'm currently working on a project with CodeIgniter and its HMVC. http://jenssegers.be/projects/CodeIgniter-HMVC-Modules) I have a general question regarding the best way to load a model in a different module. So far, I thought directly loading a…
Raccoon
  • 1,367
  • 4
  • 22
  • 45
2
votes
4 answers

HMVC codeigniter works on local server but not on web server

this is killing me what do i have? CI version: 2.1.4 Modular Extensions - HMVC by wiredesignz a basic codeigniter(hmvc) project that works fine with the setting it has in local server(mamp) with php 5.5.3 my problem after i move the project to…
ashish
  • 3,555
  • 1
  • 20
  • 26
1
vote
1 answer

HMVC with Codeigniter using MX is not working in subdomain

I am using HMVC with Codeigniter-3.x using MX for both backend and frontend. whole project are in a subdomain. Frontend is working well in both localhost and online domain. In localhost backend is also working well. But backend not working on…
Nirjhar Mandal
  • 227
  • 1
  • 2
  • 8
1
vote
0 answers

Codeigniter HMVC module hierarchy

I am learning to use codeigniter for my project. After finishing the tutorial from kode-blog.com Then i learn wiredesignz HMVC. Right now I ended up having a structure like this modules -admin --cotroller ---admin controller ---product…
1
vote
0 answers

Native validation rules does not run while using callback validation rules while using HMVC by WiredDesignz in codeigniter 3.1.3?

I recently noticed this weird bug in CI(3.1.3 but might as well be present in other versions). The navtive validation rules like required, valid_email etc don't run while I use the callback. I've already built a My_Form_validation library to make…
razn
  • 69
  • 3
  • 10
1
vote
0 answers

CodeIgniter modules folder structure and getting into assets files

I have many modules on my website (CI 2.2.1) and I wanted to create a larger part of a new functionality. That's why I decided to separate newly created modules and put them into one folder inside modules folder, named i.e. new_modules. I was able…
kacpaa
  • 95
  • 9
1
vote
2 answers

removing index.php in hmvc

i want to removing index.php in hmvc code igniter , when i type the url without index.php it's running well but when i process to other controller the url is automatically showing index.php after my codeigniter folder. example i type…
Gusti Erlangga
  • 69
  • 1
  • 12
1
vote
3 answers

Session variable not working in other controller (CodeIgniter)

I set a session variable in my login controller after successful login. When I check for the variable in my dashboard controller no session data is found. When I check the session in the login controller, session data exists. It does not exist when…
Md. Himel Ali
  • 301
  • 2
  • 10
1
vote
0 answers

Call to a member function error - Codeigniter

Everything is working as expected on my local server, but when I try to run it on my live server I get an error: Fatal error: Call to a member function call_admin_login() on null in codeigniter HMVC What am I possibly doing wrong? Below is my…
Nawaz
  • 43
  • 7
1
vote
1 answer

CodeIgniter HMVC

I am working on a CI + HMVC installation. When I use the HMVC function call: Modules::run("header"); It prints nothing to screen. However if I run: echo Modules::run("header"); or: $x = Modules::run("header"); Then it works. This is the code that…
mils
  • 1,878
  • 2
  • 21
  • 42
1
vote
0 answers

CodeIgniter HMVC - Cannot load "CI" classes after moved to other server

I'am moving a website to another server and after trying to load it I got an error: Fatal error: Class 'CI' not found in /path_to_domain/public_html/system/cms/libraries/MX/Lang.php on line 50 The file looks like this: class MX_Lang extends…
1
vote
2 answers

Codeigniter HMVC: Undefined property $db in model

Here is the folder structure in modules folder users->controllers->Users.php users->models->Test_model.php welcome->controllers->Welcome.php Test_model.php class Test_model extends CI_Model { function __construct() { …
shamon shamsudeen
  • 5,466
  • 17
  • 64
  • 129
1
vote
0 answers

Settings Codeigniter 3 HMVC with tank auth

I'm trying to install Auth Tank in CodeIgniter in HMVC but without success. I did the following: I created the tables in the database; I put the folders (config, controllers, helpers, language, libraries, models, views) within modules/auth/; In…
1
2
3
8 9