Confusions about path in CI

I am confused about how I can add paths to css, js etc.

I am using XAMPP on Vista.

At the moment what I do is etc.

Q1. What is a better way to do this css and js?

However I don't know how to add require_once('mynewphp.php') in controller.

Will it automatically find mynewphp.php, even I add this in application/myclasses/ ?

I get an error message with the following code. My ZEND files are in c:\xampp\htdocs\ci_day4\system\application\my_classes.

Could anyone give me some tips about how to add path in CI please?


error message
Fatal error: require_once() [function.require]: Failed opening required 'Zend/Service/Flickr.php' (include_path='.;C:\xampp\php\pear\;C:\xampp\htdocs\ci_day4/system/application/my_classes/') in C:\xampp\htdocs\ci_day4\application\controllers\flickr.php on line 12

In my view:
echo "\n". link_tag('assets/stylesheets/COMMON.css');

Try this code just before you use require_once(...) then use a relative path to your included file:
echo '<br />' . base_url();
  echo '<br />' . site_url();
  echo '<br />' . BASEPATH;
  echo '<br />' . APPPATH;
  echo '<br />' . getcwd();

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.