Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6679801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:24:03+00:00 2026-05-26T04:24:03+00:00

i just faced a very strange problem today. My Application Structure is: /app –

  • 0

i just faced a very strange problem today.
My Application Structure is:
/app
– /controllers
—-/editor.php
– / views
—-/test.php
/public
/system

i use codeigniter for php and raphaeljs library for canvas operations.
There is this trich with RaphaelJS about filling path objects with image:
http://www.irunmywebsite.com/raphael/additionalhelp.php?q=path#PAGETOP

i tested it under public directory and it worked perfectly
but whenever i try to run same exact codes under /app dir. with codeigniter, it is somehow blocking gradient and image filling and instead filling objects with black color.

i guess it’s about the way codeigniter handles URLs

i’ve got this function in editor controller class :

public function test()
{
    $this->load->view('editor/test');   
}

test.php :

<html>
<head>
<?php $this->load->helper('url'); ?>
<base href="<?php echo base_url(); ?>">
<script type="text/javascript" src="./public/js/raphael-min15.js"></script>
</head>
<body>
<div id="canvas"></div>
<script>
..
..
// same script on the page linked above
..
..
</script>
</body>
</html>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T04:24:03+00:00Added an answer on May 26, 2026 at 4:24 am

    removing base tag solves the problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently faced a very strange problem. Compilation of our products includes signing the
I'm just starting with TDD and could solve most of the problems I've faced
I work for a very small company. I was recently faced with the question
I am just very confused which I should choose in terms of high end
Just being very basic here. I'm trying to post an activeResource as Json and
I'm very new to PHP so far and have been trying to learn it.
I have a very simple application where I am trying to use the gyroscope
One of the problem I faced when using branches in GIT was that it
I'm just getting started on JavaServer Faces and it looks very attractive. However I'd
I’d like to consult about a problem I have faced. I've started working on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.