Hi Krasi,
you mentioned in a previous thread:
"
Ado is a regular Mojo application.
You only need to create a controller under the Ado::Control namespace
I hope you have read
http://mojolicio.us/perldoc/Mojolicious/Guides/GrowingAdo is build following these principles.
You can try
$ ado generate crud
to generate a stub set of files
or
$ ado generate adoplugin
Also look at
$ ado generate apache2vhost
$ ado generate apache2htaccess
if you want to run ado with Apache and fcgid
"
I must admit that I have to take a detailed look to
http://mojolicio.us/perldoc/Mojolicious/Guides/Growing for a better understanding.
Please take into account that I'm starting from scratch, without deep previous knowledge about Mojolicious.
The commands help messages are self explanatory. I tried out, and got the following messages:
[fortizmu@web433 learningmojo]$ ado generate crud --tables='hello,news,articles' [mkdir] /home/fortizmu/lib/perl5/perls/perl-5.18.0/lib/Ado/Control
[write] /home/fortizmu/lib/perl5/perls/perl-5.18.0/lib/Ado/Control/Hello.pm
[mkdir] /home/fortizmu/lib/perl5/perls/perl-5.18.0/templates/hello
[write] /home/fortizmu/lib/perl5/perls/perl-5.18.0/templates/hello/list.html.ep
[exist] /home/fortizmu/lib/perl5/perls/perl-5.18.0/templates/hello
[write] /home/fortizmu/lib/perl5/perls/perl-5.18.0/templates/hello/create.html.ep
[exist] /home/fortizmu/lib/perl5/perls/perl-5.18.0/templates/hello
[write] /home/fortizmu/lib/perl5/perls/perl-5.18.0/templates/hello/read.html.ep
[exist] /home/fortizmu/lib/perl5/perls/perl-5.18.0/templates/hello
[write] /home/fortizmu/lib/perl5/perls/perl-5.18.0/templates/hello/delete.html.ep
[exist] /home/fortizmu/lib/perl5/perls/perl-5.18.0/lib/Ado/Control
[write] /home/fortizmu/lib/perl5/perls/perl-5.18.0/lib/Ado/Control/News.pm
[mkdir] /home/fortizmu/lib/perl5/perls/perl-5.18.0/templates/news
[write] /home/fortizmu/lib/perl5/perls/perl-5.18.0/templates/news/list.html.ep
[exist] /home/fortizmu/lib/perl5/perls/perl-5.18.0/templates/news
[write] /home/fortizmu/lib/perl5/perls/perl-5.18.0/templates/news/create.html.ep
[exist] /home/fortizmu/lib/perl5/perls/perl-5.18.0/templates/news
[write] /home/fortizmu/lib/perl5/perls/perl-5.18.0/templates/news/read.html.ep
[exist] /home/fortizmu/lib/perl5/perls/perl-5.18.0/templates/news
[write] /home/fortizmu/lib/perl5/perls/perl-5.18.0/templates/news/delete.html.ep
[exist] /home/fortizmu/lib/perl5/perls/perl-5.18.0/lib/Ado/Control
[write] /home/fortizmu/lib/perl5/perls/perl-5.18.0/lib/Ado/Control/Articles.pm
[mkdir] /home/fortizmu/lib/perl5/perls/perl-5.18.0/templates/articles
[write] /home/fortizmu/lib/perl5/perls/perl-5.18.0/templates/articles/list.html.ep
[exist] /home/fortizmu/lib/perl5/perls/perl-5.18.0/templates/articles
[write] /home/fortizmu/lib/perl5/perls/perl-5.18.0/templates/articles/create.html.ep
[exist] /home/fortizmu/lib/perl5/perls/perl-5.18.0/templates/articles
[write] /home/fortizmu/lib/perl5/perls/perl-5.18.0/templates/articles/read.html.ep
[exist] /home/fortizmu/lib/perl5/perls/perl-5.18.0/templates/articles
[write] /home/fortizmu/lib/perl5/perls/perl-5.18.0/templates/articles/delete.html.ep
[fortizmu@web433 learningmojo]$ ado generate adoplugin --name MyAdoTest [mkdir] /home/fortizmu/webapps/learningmojo/Ado-Plugin-MyAdoTest/lib/Ado/Plugin
[write] /home/fortizmu/webapps/learningmojo/Ado-Plugin-MyAdoTest/lib/Ado/Plugin/MyAdoTest.pm
[mkdir] /home/fortizmu/webapps/learningmojo/Ado-Plugin-MyAdoTest/t/plugin
[write] /home/fortizmu/webapps/learningmojo/Ado-Plugin-MyAdoTest/t/plugin/my_ado_test-00.t
[exist] /home/fortizmu/webapps/learningmojo/Ado-Plugin-MyAdoTest
[write] /home/fortizmu/webapps/learningmojo/Ado-Plugin-MyAdoTest/Build.PL
[mkdir] /home/fortizmu/webapps/learningmojo/Ado-Plugin-MyAdoTest/etc/plugins
[write] /home/fortizmu/webapps/learningmojo/Ado-Plugin-MyAdoTest/etc/plugins/my_ado_test.conf
[fortizmu@web433 learningmojo]$ ado generate apache2htaccess --modules cgi,fcgid > .htaccessCan't open file "/home/fortizmu/webapps/learningmojo/templates/partials/apache2htaccess.ep": No such file or directory at /home/fortizmu/lib/perl5/perls/perl-5.18.0/lib/site_perl/5.18.0/Mojo/Template.pm line 239.
Taking a look to the last output, it looks like there is something missing, maybe I have to run another command? or any other needed setup?
Kind regards,
Francisco