hmvc

How to make HMVC structure in laravel 5 [closed]

巧了我就是萌 提交于 2020-03-06 03:50:14
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . I am building a big project in laravel 5 for this I want to use modular approach, I don't know how to implement hmvc structure in laravel 5. 回答1: For building modular Laravel 5 app, you can use this package- Laravel Modules - Pingpong labs This package provides an excellent way to

Extending HMVC modules in CodeIgniter

萝らか妹 提交于 2020-01-13 05:07:50
问题 Let's say we have module called core_crud with something like this in the controller: if (!defined('BASEPATH')) exit('No direct script access allowed'); class Core_crud extends MX_Controller { function __construct() { parent::__construct(); $this->load->model('mdl_core_crud'); } public function index() { // code goes here } } And now I want to extend this module with another module called shop_crud . How would the basic controller for this shop_crud module look like? I mean I want to inherit

HMVC in Zend Framework

二次信任 提交于 2020-01-02 05:39:07
问题 Is it possible to use the HMVC pattern in Zend Framework? It is implemented in Kohana 3 by default and I really love it, so now I want to use it in Zend Framework. Edit I want to make it possible to: 1) include a complete request (like controller/action) inside an other request 2) make a direct call to the controller/action as above It is not only used for widgets, but I also want to build a page which contains content of other pages... Edit 2 To be a bit more clear: I do have a page object

Codeigniter-HMVC get_instance() in library does not return expected result

隐身守侯 提交于 2019-12-25 04:08:52
问题 I have the Controller: application/controllers/bob.php Then in a library I use in the controller Bob.php, I have this code: $CI =& get_instance(); echo get_class($CI); So I open the url "domain.com/bob", and I get the correct echo when HMVC is not installed, which is Bob As soon as I install HMVC, the result is: CI So basically, this means I cannot use $CI->someVariableINeed that was declared in Bob because it doesn't exists in CI. Note that $CI->load->helper(), $CI->load->view(), .. are all

CodeIgniter load controller within a controller HMVC

自作多情 提交于 2019-12-20 07:26:38
问题 I'm using http://github.com/philsturgeon/codeigniter-template/ for the templates and I trying to load other controller view to actual view as a partial. My main problem is that I cant append meta data (javascripts, css) from other controller to the main controller. application/core/MY_Loader.php class MY_Loader extends CI_Loader { function __construct() { parent::__construct(); } function controller( $sController ) { global $RTR; // Parse the sController string ex: demo/index $aControllerData

HMVC codeigniter works on local server but not on web server

左心房为你撑大大i 提交于 2019-12-19 10:06:47
问题 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 public web server i changed the following things. ——application/config/config.php $config['base_url'] = 'http://example.com/'; ——application/config/database.php $db['default']['hostname'] = 'localhost'; $db['default']['username'] = 'newdbusername'; $db[

Trouble with HMVC modular extensions for CodeIgniter

泪湿孤枕 提交于 2019-12-19 07:54:33
问题 I've been developing locally on MacOS X Snow Leopard using PHP 5.3, CodeIgniter 2.0 and HMVC Modular Extensions. Everything has been working great. Suddenly, for no reason I can pinpoint, I am occasionally getting this error when trying to bring up a page: Unable to select the specified database: app Filename: /Library/WebServer/Documents/www/development/appdb/third_party/MX/Loader.php Line Number: 96 The error doesn't occur at any specific place, it just seems to appear every 5-10 page loads

Using Ion Auth as a separate module in the HMVC structure

最后都变了- 提交于 2019-12-17 22:57:27
问题 I am interested in using ion auth for a project of mine which is running on the HMVC pattern. The application is written in Codeigniter. The problem I face is once the ion auth is placed in the /app/modules/auth folder, when I try to access the module I get the below error: HTTP Error 500 (Internal Server Error) : An unexpected condition was encountered while the server was attempting to fulfill the request. Please help me out here, I am sure that I am having some sort of a configuration/path

Architecture: API as core for a website & mobile-app

送分小仙女□ 提交于 2019-12-12 08:48:52
问题 I have different questions about a full architecture idea. I hope someone with great experience could help me out because I am pretty much getting stuck in all possibilities. I'm planning to rewrite a community website. Our customer wants to make use of native mobile apps in the future. So I will need to take this into account. Because of this I have decided to create a 100% REST API architecture based on the PHP framework Kohana. I have choosen Kohana because this makes scaling the internal

HMVC and dynamic widgets

送分小仙女□ 提交于 2019-12-12 08:14:01
问题 Background I use the word widget as a partial view that have its own controller (so its own actions) and it is placed in almost all pages. I implement the rendering of this via HMVC, that is just great. Problem Now, the problem is that the widget itself execute actions. Think about a shopping cart widget. That widget is placed in all pages so the user can see his/her stuff all along. And the widget have actions that are related to it, for instance: RemoveItem, RefreshCart, ApplyDiscountCoupon