Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Create forms

  • Loading branch information...
commit e4b957636d01374b4b4cb1595bb917a262de84ca 1 parent 3eb62e6
@abtris authored
View
6 .zfproject.xml
@@ -31,7 +31,11 @@
<actionMethod actionName="delete"/>
</controllerFile>
</controllersDirectory>
- <formsDirectory enabled="false"/>
+ <formsDirectory>
+ <formFile formName="Login"/>
+ <formFile formName="Post"/>
+ <formFile formName="Comment"/>
+ </formsDirectory>
<layoutsDirectory enabled="false"/>
<modelsDirectory>
<dbTableDirectory>
View
17 README.md
@@ -22,3 +22,20 @@
zf create action reply comment 1
zf create action edit comment 1
zf create action delete comment 1
+
+4. SetUp Database connection (pgsql, mysql)
+
+ run sql script docs/createTables.sql
+ $ mysql -u root -p <createTables.sql
+
+5. Create Models (user, post, comment)
+
+ zf create db-table.from-database
+
+ add models methods
+
+6. Create Forms (login, post, comment)
+
+ zf create form login
+ zf create form post
+ zf create form comment
View
13 application/forms/Comment.php
@@ -0,0 +1,13 @@
+<?php
+
+class Application_Form_Comment extends Zend_Form
+{
+
+ public function init()
+ {
+ /* Form Elements & Other Definitions Here ... */
+ }
+
+
+}
+
View
13 application/forms/Login.php
@@ -0,0 +1,13 @@
+<?php
+
+class Application_Form_Login extends Zend_Form
+{
+
+ public function init()
+ {
+ /* Form Elements & Other Definitions Here ... */
+ }
+
+
+}
+
View
13 application/forms/Post.php
@@ -0,0 +1,13 @@
+<?php
+
+class Application_Form_Post extends Zend_Form
+{
+
+ public function init()
+ {
+ /* Form Elements & Other Definitions Here ... */
+ }
+
+
+}
+
Please sign in to comment.
Something went wrong with that request. Please try again.