philsturgeon / codeigniter-template

Template library for CodeIgniter which supports modules, themes, partial views, etc.
411 stars 178 forks source link

template with asset library #9

Closed getSurreal closed 13 years ago

getSurreal commented 13 years ago

I need help on the correct way to link my css and js files when using a template.

template is working using the below structure, but I'm not clear on how to specify a theme for the asset. asset is also working when not using template

/application -/themes --/default ---/views ----/css -----style.css ----/layouts -----default.php

default.php contents

<?php echo $template['title']; ?> <?php echo css('style.css'); ?> <?php echo $template['metadata']; ?>

config/asset.php contains

$config['theme_asset_dir'] = APPPATH_URI . 'themes/'; $config['theme_asset_url'] = BASE_URL.APPPATH.'themes/';

philsturgeon commented 13 years ago

Why did you post this a second time? It's no more valid this time than two minutes ago.

getSurreal commented 13 years ago

Ok yea yea I clicked browser back button. Give me crap about that, but 'not valid'... really? Follow your own damn license agreement and DBAD.

philsturgeon commented 13 years ago
  1. Code is provided with no warranty. Using somebody else's code and bitching when it goes wrong makes you a DONKEY dick. Fix the problem yourself. A non-dick would submit the fix back.

You were complaining when the code was even wrong. Theres a manual and the code is NOT tough, just work it out.

getSurreal commented 13 years ago

I didn't ask for a warranty. I wasn't bitching about the code, I just didn't like you saying my question is not valid. I don't have a fix to submit back. Man, I'm not trying to get into a pissing contest with you. I had a problem, I spent time trying to work through it and then I asked for some help. And I did read your manual. It doesn't cover how to use the asset library with a theme which it doesn't need to as it's a different library. However, I know you use them together in PyroCMS so I thought you would be able to point me in the right direction.

philsturgeon commented 13 years ago

Your issue looked wrong and then you posted it again. Ok it was a mistake but how was I to know? I get 100 pieces of correspondence to work through every day, 90% of which is stupid people asking stupid questions and sorry but this looked like one. Turns out it was only a typo on your part so sorry to be short, but don't call me a dick.