NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
how to split Kohana apps in phped projects?


Joined: 11 May 2010
Posts: 1
Reply with quote
Hi. I wish to now how other people split their Kohana (php framework) apps in phped projects. I wish split them because each app have different url. For example i have following directory tree:
- admin
- apps
-- admin
-- mobile
-- public
- mobile
- modules
- public
- system

and for app:
1) Admin i need following directories: /apps/admin, /admin and url is https : //adm.myproj.com
2) Public i need following directories: /apps/public, /public and url is http : //myproj.com
3) Mobile i need following directories: /apps/mobile, /mobile and url is http : //m.myproj.com

But if all is as one project then i can't in mapping specify different url for each app - phped returns error.
Now i have three projects: admin, public, mobile and for all is set the same root directory and subdirectories that i do not need i specify as 'hidden directories'. But this is not very handy for me.

Maybe someone have beter idea?
Thanx!
View user's profileFind all posts by eriksSend private message


Joined: 25 Dec 2008
Posts: 21
Reply with quote
I do exactly the same thing in symfony without any problem - no need to use seperate projects.
Make sure you configure apache correctly with the 3 virtualhosts andadd the (sub)domains to your hosts file.
Now just use the browser debug toolbar or put DebugBreak() in your code to use the debugger...
View user's profileFind all posts by Disgruntled UserSend private message
how to split Kohana apps in phped projects?
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic