Page 4 of 4

Re: Need help with own theme

Posted: Fri Aug 15, 2014 9:16 am
by paulhobbel
Why does the following not work?

Code: Select all

<?php include Request::base('vendor/traq/views/' . settings('theme') . '/config/bootstrap.config.php'); ?>
It does give me cannot load /vendor/traq/views/bootstrap/config/boostrap.config.php

Re: Need help with own theme

Posted: Fri Aug 15, 2014 12:47 pm
by Jack
[quote="paulhobbel"]
Why does the following not work?

Code: Select all

<?php include Request::base('vendor/traq/views/' . settings('theme') . '/config/bootstrap.config.php'); ?>
It does give me cannot load /vendor/traq/views/bootstrap/config/boostrap.config.php
[/quote]
 
The "Request::base()" method is used to get a URI to the root directory of Traq for browsers.
 
To include something from the theme directory in PHP it can be done like so:

Code: Select all

<?php require APPPATH . '/views/' . setting('theme') . '/config/bootstrap.config.php'; ?>

Re: Need help with own theme

Posted: Mon Aug 18, 2014 4:25 am
by paulhobbel
Sorry that I'm asking all these things but is there a way to change the preview_text without changing anything in _misc folder
I already tried to change some things in the traq.js file but that didn't work