Wednesday, January 11, 2012

Create HTML view scripts with li3 Console

To create views with the Lithium console script we run

> li3 create view posts index

This will create the index.php file in a folder called posts in the views directory of out app.

I ran this command successfully but found that my controller was looking for a file call index.html.php.
Notice the html in the file name.

To create the correct file run

> li3 create view posts index.html

Note the addition of html.

Easy.

No comments:

Post a Comment