Applications

Discuss anything that's related to the Raxan framework

Applications

Postby fc_enriqueism » Wed Sep 28, 2011 12:32 am

Hi, I need to build an application with some subdirs, like:
http://localhost/myapp/app1/...
http://localhost/myapp/app2/...
http://localhost/myapp/app3/...
How shoud I need to make mi subdirs inside the Raxan structure? acctualy I have

/myapp
----/raxan
----/views

and this works with:
http://localhost/myapp/...

I need the second directory in the URL

Thanks in advance.
fc_enriqueism
 
Posts: 10
Joined: Wed Sep 28, 2011 12:25 am

Re: Applications

Postby raymond » Wed Sep 28, 2011 2:04 am

Hi,

Thanks for using Raxan and welcome to the Online Forum.

...How shoud I need to make mi subdirs inside the Raxan structure?


Your sub folders should work without any issues. All you have to do is to include the raxan/pdi/autostart.php file:

/myapp
----/raxan
----/views
---/app1
------/index.php

Load autostart.php from app1/index.php:

<?php
require_once '../raxan/pdi/autostart.php';
// ...add code here...
?>

Note: Remember to set site.path and site.url inside your gateway.config.php file. Visit http://raxanpdi.com/sdk/docs/custom-config.html

__
Raymond
raymond
Site Admin
 
Posts: 215
Joined: Tue Mar 17, 2009 5:04 am

Re: Applications

Postby fc_enriqueism » Thu Sep 29, 2011 4:51 pm

Thanks a lot! works very fine!
fc_enriqueism
 
Posts: 10
Joined: Wed Sep 28, 2011 12:25 am


Return to General Discussions

Who is online

Users browsing this forum: No registered users and 1 guest

cron