Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rooturi support #48

Open
stanistan opened this issue Apr 23, 2012 · 2 comments
Open

rooturi support #48

stanistan opened this issue Apr 23, 2012 · 2 comments

Comments

@stanistan
Copy link
Contributor

In index.php:

<?

// ... other settings

$sky_root_uri = '/project'; // defaults to '/'

// ... include sky.php
OR
<?

$router = new PageRouter([
    'root' => '/project'
]);

Outcome

  • Everything in the pages directory run as if it were in pages/project/
  • templates can be accessed from /project/templates/html5/
  • Have the ability to run multiple skyphp apps from one domain (possibly of different versions)
@will123195
Copy link
Contributor

also need to account for the database folder issue

@stanistan
Copy link
Contributor Author

I'm not really sure how this would be implemented because of the directory structure of the app.

In the scenario that we have this directory structure:
codebases/
public_html/
    app/
        index.php   <-- another version of skyphp
        .htaccess
    _artist.slug_/
        index.php   <-- db folder set up version of skyphp
        .htaccess
    index.php       <-- a version of skyphp
    .htaccess
Root uri database folder?
<?php $sky_root_uri = '_artist.slug_'; 

If the browser requests /pink-floyd how can we match that to that database folder set up?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants