Lithium: how to create admin module - lithium

I am new in lithium framework. I have did too much research about create module in lithium but unable to find working tutorial.
Module based structure in Lithium
its not working tutorial please help me guys what's wrong in this tutorial
like following urls not in subdomain:
http://www.example.com/lithium/admin/user/login
http://www.example.com/lithium/admin/reports/delete

Here are some ways to configure admin (and other) routing for Li3: https://gist.github.com/nateabele/1512502

Here's another approach: https://github.com/jails/li3_bigbang
This structure allows for fully autonomic modules.

Related

Gerrit permission to review a specific path

Im currently working on a big project with more then one team.
Lets say in the project there are some modules that each team working on.
In addition we are using gerrit for sometime now and there is something i couldn't find out.
My question is the following:
Is there a way to tell Gerrit that only specific people/group(on Gerrit) will have permission to review code (+2) on specific path/module on the project?
This is possible, and can be achieved by using the Gerrit OWNERS Plugin. I haven't configured this plugin myself, but we use this in our codebase to protect certain areas of code.
Every folder that needs protection contains a file named OWNERS that has the following structure.
inherited: true
owners:
- user-a#example.com
- user-b#example.com
Here is the link to a readme for the plugin. Hope you can figure out how to configure it.
https://gerrit.googlesource.com/plugins/owners/+/refs/heads/master/README.md
I think you can do this by making two separate commits. You can later add the group that you want to review the code on that specific path using gerrit interface.

Resolving a sub directory to a Heroku app via .htaccess?

I use a Media Temple Grid Service solution for hosting. I currently have a Heroku app which I serve via blog.domain.com using a CNAME record.
I'm trying to have the sub-directory domain.com/blog resolve to the Heroku app instead. I don't want the header to change, so I'm not looking for a redirect I believe.
I've attempted a couple of snippets for .htaccess files which have not worked for me. Can anyone recommend some tips to have this work?
It seems a proxy pass would work from the research I've done, but I can't figure out where or how to set it up given my GS folder structure.
Any help is much appreciated. Thanks in advance.

how can I create a new project in yii 2

I'm trying to follow the directions but after the init part I am lost. Where is this database that it speaks of? I don't see this config/db.php. Why can't I just create a new webapp like before (I searched somewhere and it said to do yii app/create (can't remember) but that did not work. How can I just create one?
I'm stuck with this screen at the moment.
when i click on this //local/project/backend/web/index.php?r=site%2Flogin
i get Unable to load the webpage because the server sent no data.
The best way is that you folow the getting started, also You can run with composer
php composer.phar create-project --prefer-dist --stability=dev yiisoft/yii2-app-basic basic
You need to get access key from github and then follow the procedure from the Yii documentation

how to include mod_autorotate module in Apache config

It would be really helpful if some one could advice me how to include mod_autorotate in apache modules working in linux.
Follow the basic instructions at the authors website?
http://www.poptart.org/bin/view/Poptart/ModAutorotate

Using erldis on ejabberd Module?

I'm working on an ejabberd module that requires erldis.
I'm having problems starting the rldis application from in the ejabberd module initialization.
Any tips, tutorial on how to integrate? Which files are required to be copied to ejabberd/ebin? What is the recommended start sequence?
I have found this example of using Redis with ejabberd:
http://logicalfriday.com/2011/06/30/ejabberd-global-roster/
A quick read shows that it is not totally integrated in ejabberd (even in term of start / stop), but that can help.
I do not know what your module is supposed to do, so it is hard to suggest a better approach at this stage.
I did similar here: https://github.com/bob-p/mod_global_roster this might give you a few pointers.