Matchbox config directories |
[eluser]phpserver[/eluser]
I have done all the required bits but i have trouble with the config directories part. Code: $config['directories'] = array('modules'); My ci is located here. /var/www/ci I have placed my modules in inside the application folder.My first module i made was app and inside app,i have placed a controller folder,a view folder and a model folder. Question is,what do i write Code: $config['directories'] = array('[color=pink]here[/color]'); Code: <?php
[eluser]Phil Sturgeon[/eluser]
Sorry phpserver, could you explain your problem a little bit more? You want to contain all your modules in the application folder instead of putting them all inside a single folder inside application? I cant echo out the path here, but im assuming zack is using realpath() somewhere so you could try just setting the directory as something a little hacky, such as: Code: $config['directories'] = array('controllers/../'); Or perhaps use a absolute path? If I get my internet set up at my new place when I get home, I will have a play with this one.
[eluser]phpserver[/eluser]
[quote author="thepyromaniac" date="1227210143"]Sorry phpserver, could you explain your problem a little bit more? You want to contain all your modules in the application folder instead of putting them all inside a single folder inside application? I cant echo out the path here, but im assuming zack is using realpath() somewhere so you could try just setting the directory as something a little hacky, such as: Code: $config['directories'] = array('controllers/../'); Or perhaps use a absolute path? If I get my internet set up at my new place when I get home, I will have a play with this one.[/quote] The author of matchbox says any path you put in the 'modules' array should be relative to the application folder.I tried it,it dont work,i dont know where i am going wrong.I am gonna have to try matchbox on an older vesion of ci coz am using the latest 1.7.Have you tried matchbox yourself?.
|
Welcome Guest, Not a member yet? Register Sign In |