Welcome Guest, Not a member yet? Register   Sign In
Few questions about Blaze
#1

[eluser]noob[/eluser]
Hello,
I just finished going through the CI user guide. I must say that someone should get a medal for putting it together.

Right now I am trying to learn about Blaze.
I put the blaze folder in my webroot.
Imported the schema.sql into mysql.
Did not do anything with .htaccess since CI works fine and both CI and Blaze follow the same url rules.
Made sure that application/logs and application/cache are writable.

Then I went the to the blaze folder from my browser and I got page that looks it was made with plain html. Is it suppose to look like that? And going to blaze/admin produced a url not found error. Is blaze a stand alone application or do I have to link it my CI installation? Thanks in advance.
#2

[eluser]Clooner[/eluser]
Maybe you didn't set the base_url in the config file. This would explain why the css file is broken and the link to the admin gives errors.
#3

[eluser]noob[/eluser]
Thank you for replying.
The following is what I have in the config.php file. I only modified the second line. Should I do anything else?

Code:
<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');

/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH a trailing slash:
|
|    http://www.your-site.com/
|
*/

$config['base_url'] = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") ? "https" : "http");
$config['base_url'] .= "://".$_SERVER['HTTP_HOST']."/Sites/blaze";
$config['base_url'] .= str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']);
#4

[eluser]Clooner[/eluser]
I don't know about blaze but normally with CI you would set the base_url with a regular string. Blaze seems to try and detect this. Try using
Code:
$config['base_url']=http://www.your-site.com/blazeinstall
#5

[eluser]noob[/eluser]
Still the same result. Sad
#6

[eluser]Elliot Haughin[/eluser]
The problem is most likely your RewriteBase.

Try changing it to this in your .htaccess file:

Code:
RewriteBase /Sites/blaze/

The reason they styling is gone is because the rewrite rule isn't correct, and the same is true of the admin pages.

Regards,

Elliot
#7

[eluser]noob[/eluser]
I started from scratch(except for database part) and still got the same result. What could I be doing wrong?
#8

[eluser]Elliot Haughin[/eluser]
Send me a private message with your IM... I'll walk you through
#9

[eluser]noob[/eluser]
I you sent a PM to your codeigniter account.
#10

[eluser]noob[/eluser]
Just post what time will be good for you. Or you can just post the installation steps you took. Whatever is easier for you.




Theme © iAndrew 2016 - Forum software by © MyBB