Vheissu / Ci-Smarty

Smarty templating engine integration for Codeigniter 3.0+ with inbuilt theming and asset management.
http://ilikekillnerds.com
179 stars 43 forks source link

Cant Have more then two directories in hirarichy of views folder. #40

Closed haider-pw closed 10 years ago

haider-pw commented 10 years ago

i am using CI Smarty. Problem is i cant have more then two directories in hirarichy or the template will not load just a white blank screen.

http://stackoverflow.com/questions/25541382/smarty-templates-with-codeigniter-cant-load-template-when-too-many-directories

haider-pw commented 10 years ago

Some how found out the main problem, its not with the hirarichy. its related to template inheritance. defined the extend file in a file, but how do it get its path, i mean how it knows where the main file exist? {{extends file='adminLayout.tpl'}}

haider-pw commented 10 years ago

Solve the question Please on Stackoverflow, Willing to add more bounty in my question..

haider-pw commented 10 years ago

Problem Solved. it was not the problem in application but was the problem of the path which i gave static path. thats why it only worked for that directory only and could not work in multiple directories. Fixed the Path. its started working back again.