Welcome Guest, Not a member yet? Register   Sign In
Modular Extensions - HMVC version 5.2

[eluser]JasonS[/eluser]
[quote author="wiredesignz" date="1253152823"]The Form validation class needs to be extended. See this topic. http://ellislab.com/forums/viewreply/578755/[/quote]

Can you think of any reason why this works locally, yet not online?

I have two identical apps, locally it works great, callbacks work fine. When I put it online the callbacks just aren't happening.

[eluser]wiredesignz[/eluser]
[quote author="JasonS" date="1253643206"][quote author="wiredesignz" date="1253152823"]The Form validation class needs to be extended. See this topic. http://ellislab.com/forums/viewreply/578755/[/quote]

Can you think of any reason why this works locally, yet not online?

I have two identical apps, locally it works great, callbacks work fine. When I put it online the callbacks just aren't happening.[/quote]
File naming is one of the first things to look at if you are moving from M$ to a *nix operating system.

[eluser]JasonS[/eluser]
[quote author="wiredesignz" date="1253690560"][quote author="JasonS" date="1253643206"][quote author="wiredesignz" date="1253152823"]The Form validation class needs to be extended. See this topic. http://ellislab.com/forums/viewreply/578755/[/quote]

Can you think of any reason why this works locally, yet not online?

I have two identical apps, locally it works great, callbacks work fine. When I put it online the callbacks just aren't happening.[/quote]
File naming is one of the first things to look at if you are moving from M$ to a *nix operating system.[/quote]

Just stopping by to say thanks. The problem was how I named the form validation class.

MY_form_validation.php should have been MY_Form_validation.php

[eluser]dinhtrung[/eluser]
I would like to build a module management page, with Install, Uninstall, Activate and De-activate the modules.
As of PyroCMS (using Matchbox), the author use XML files in module folder. Then create a main controller ./application/controllers/admin.php) to look for the XML file (./application/modules/pages/default.xml). I think I could use the same way to collect information of modules. But for install, uninstall, activate and de-activate, I need your suggestions.
Anybody got experience with this? Please give me a hint.

[eluser]wiredesignz[/eluser]
Modular Extensions PHP5 is also available via svn from google code.
http://code.google.com/p/modular-extensions-php5/

[eluser]nsbingham[/eluser]
I'm attempting to use DX Auth as a module with HMVC. I followed the earlier suggestion to create an "auth" module and put all the files in there. For the most part everything is working well, but I'm running into an issue with logins. I get a timeout error each time I attempt to login, but can revisit the page after the timeout and show as being logged-in. I've narrowed down the problem to loading the models in _get_role_data (DX_Auth.php). I modified the paths to point to /auth/dx_auth/roles and /auth/dx_auth/permissions without any luck. When making that modification it appears to throw things into an infinite loop, whereas not including the module name in the path just causes a timeout. I'm going to keep debugging and see what I can find out, but I'd appreciate any suggestions on why this might be happening or sharing any experience with trying to use DX_Auth as a module.

Note:

I'm using DX_Auth 1.0.6 and Modular Extensions 5.2.

[eluser]wiredesignz[/eluser]
The access control part of DX_Auth (or any authentication library) is not suitable for a module because it is needed by the entire application. But you may put the registration and login parts in to a module.

[eluser]nsbingham[/eluser]
Thanks for the quick reply. Are you saying that I should keep the dx_auth models out of the module? I have all the dx_auth files that are normally in the /libraries folder in the app's library folder instead of the module's. The access control functions like checking if someone is logged-in appear to work. It's just the process of logging in that causes the error. Sorry for my confusion, but thanks again for your help.

[eluser]bugboy[/eluser]
Blast I posted this before to the wrong post really.

Could some delete this one post in wrong post here as i've posted it here. sorry Smile

Anyway after all that!

Hi I’ve been using Modular Extensions in my projects now for some time and think its a great project.

I’ve only just (I must be slow ) realised that i can load in routes for each module by placing a routes.php file into the config folder of each module. This is great as i used to have one large routes file doing all the hard work and when it came to adding a new module it would be a pain to update the master routes file.

I have one question though which I can’t seem to get my head around.

I used to place this route at the end of all the routes in the master file.

Code:
// placed at the end of all the routes to redirect anything else
$route[':/any/:any'] = 'page/read';
$route[':/any'] = 'page/read';
This allowed me to capture anything up to two segments and redirect them to the page module.
Now I have moved all the routes into the respective config folders for each module, if I use this now it wont work (well it works but not in the sense that I want. It redirects everything up to two segments to the page module).

What would be the best way to get around this?

My first thought would be to not worry about putting page into the url string like every other module for example:

page/about/team

However I really liked how this worked before as it keeps the url shorter.

Any ideas or suggestions would be greatly appreciated.

Thanks.

[eluser]Unknown[/eluser]
hi guys,
I have a problem with code igniter 1.7.2 and module extension 5.2 When I use them with this. htaccess:
Code:
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

    #Removes access to the system folder by users.
    #Additionally this will allow you to create a System.php controller,
    #previously this would not have been possible.
    #'system' can be replaced if you have renamed your system folder.
    RewriteCond %{REQUEST_URI} ^system.*
    RewriteRule ^(.*)$ /ProvaCI/index.php?/$1 [L]

    #Checks to see if the user is attempting to access a valid file,
    #such as an image or css document, if this isn't true it sends the
    #request to index.php
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /ProvaCI/index.php?/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
    # If we don't have mod_rewrite installed, all 404's
    # can be sent to index.php, and everything works as normal.
    # Submitted by: ElliotHaughin

    ErrorDocument 404 /ProvaCI/index.php
</IfModule>

the structure of my project is in principle
root
---application
------config
------controllers
---------admin.php
------modules
---------blog
------------controllers
---------------blog.php
---------welcome
------------controllers
---------------welcome.php
---system
---.htaccess
---index.php

if I go to the address
http://localhost/index.php
or
http://localhost/welcome/
or
http://localhost/blog/
the pages are loaded regularly

but
if I go to the address
http://localhost/admin/
the browser loads the 404 page
but
if I go to the address
http://localhost/index.php/admin/
the pages are loaded regularly

Can you help me solve this problem?

Thank you in advance




Theme © iAndrew 2016 - Forum software by © MyBB