Welcome Guest, Not a member yet? Register   Sign In
CI generator for crud (bash and php) 0.1
#26

[eluser]Dreammaker[/eluser]
Code:
CREATE TABLE IF NOT EXISTS `poo` (
  `name` char(255) COLLATE utf8_unicode_ci NOT NULL,
  `address` char(255) COLLATE utf8_unicode_ci NOT NULL,
  `cheese` char(255) COLLATE utf8_unicode_ci NOT NULL,
  `cheese2` char(255) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

Code:
roman@sunion:~$ cd ~/public_html/test
roman@sunion:~/public_html/test$ php crud/create a poo name address cheese cheese2
Array
(
    [tablename] => poo
    [name] => text
    [address] => textarea
    [cheese] => checkbox
    [cheese2] => file
)

Generating model...
Generating controller...
Generating Views...
texttextareacheckboxfiletexttextareacheckboxfile
roman@sunion:~/public_html/test$

Code:
<form action="/poo/add" method="post">
    <fieldset><label for="name">name</label>        &lt;input type="text" name="name" id="name" value=""&gt;&lt;br/>
<label for="address">address</label>&lt;textarea name="address" id="address"&gt;&lt;div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">

<h4>A PHP Error was encountered</h4>

<p>Severity: Notice</p>
<p>Message:  Undefined variable: address</p>
<p>Filename: poo/add_view.php</p>
<p>Line Number: 14</p>

</div>&lt;/textarea&gt;&lt;br/>
    <label for="cheese">cheese</label>    &lt;input type="checkbox" name="cheese" id="cheese" value="1"&gt;&lt;br/>
<label for="cheese2">cheese2</label>        &lt;input type="file" name="cheese2" id="cheese2" value=""&gt;&lt;br/>
&lt;input type="submit" name="submit" value="Add"&gt;
    </fieldset>

&lt;/form&gt;


Messages In This Thread
CI generator for crud (bash and php) 0.1 - by El Forum - 12-09-2008, 08:01 AM
CI generator for crud (bash and php) 0.1 - by El Forum - 12-12-2008, 09:51 AM
CI generator for crud (bash and php) 0.1 - by El Forum - 12-12-2008, 10:05 AM
CI generator for crud (bash and php) 0.1 - by El Forum - 12-12-2008, 10:47 AM
CI generator for crud (bash and php) 0.1 - by El Forum - 12-12-2008, 10:51 AM
CI generator for crud (bash and php) 0.1 - by El Forum - 12-12-2008, 04:38 PM
CI generator for crud (bash and php) 0.1 - by El Forum - 12-13-2008, 07:33 AM
CI generator for crud (bash and php) 0.1 - by El Forum - 12-13-2008, 10:43 AM
CI generator for crud (bash and php) 0.1 - by El Forum - 12-14-2008, 04:50 AM
CI generator for crud (bash and php) 0.1 - by El Forum - 12-17-2008, 01:01 AM
CI generator for crud (bash and php) 0.1 - by El Forum - 12-17-2008, 03:10 AM
CI generator for crud (bash and php) 0.1 - by El Forum - 12-17-2008, 01:00 PM
CI generator for crud (bash and php) 0.1 - by El Forum - 12-17-2008, 02:02 PM
CI generator for crud (bash and php) 0.1 - by El Forum - 12-19-2008, 05:03 AM
CI generator for crud (bash and php) 0.1 - by El Forum - 12-19-2008, 05:08 AM
CI generator for crud (bash and php) 0.1 - by El Forum - 12-19-2008, 06:42 AM
CI generator for crud (bash and php) 0.1 - by El Forum - 12-19-2008, 06:46 AM
CI generator for crud (bash and php) 0.1 - by El Forum - 12-19-2008, 07:09 AM
CI generator for crud (bash and php) 0.1 - by El Forum - 12-19-2008, 07:16 AM
CI generator for crud (bash and php) 0.1 - by El Forum - 12-20-2008, 06:55 PM
CI generator for crud (bash and php) 0.1 - by El Forum - 12-21-2008, 06:31 AM
CI generator for crud (bash and php) 0.1 - by El Forum - 12-22-2008, 10:17 PM
CI generator for crud (bash and php) 0.1 - by El Forum - 12-22-2008, 10:37 PM
CI generator for crud (bash and php) 0.1 - by El Forum - 12-23-2008, 03:14 AM
CI generator for crud (bash and php) 0.1 - by El Forum - 12-23-2008, 03:29 AM
CI generator for crud (bash and php) 0.1 - by El Forum - 12-23-2008, 03:36 AM
CI generator for crud (bash and php) 0.1 - by El Forum - 12-23-2008, 03:51 AM
CI generator for crud (bash and php) 0.1 - by El Forum - 12-23-2008, 04:07 AM
CI generator for crud (bash and php) 0.1 - by El Forum - 12-23-2008, 04:36 AM
CI generator for crud (bash and php) 0.1 - by El Forum - 12-23-2008, 05:55 AM
CI generator for crud (bash and php) 0.1 - by El Forum - 12-23-2008, 06:43 AM
CI generator for crud (bash and php) 0.1 - by El Forum - 12-23-2008, 07:19 AM
CI generator for crud (bash and php) 0.1 - by El Forum - 12-23-2008, 07:28 AM
CI generator for crud (bash and php) 0.1 - by El Forum - 12-23-2008, 07:43 AM
CI generator for crud (bash and php) 0.1 - by El Forum - 12-23-2008, 07:46 AM
CI generator for crud (bash and php) 0.1 - by El Forum - 12-23-2008, 07:48 AM
CI generator for crud (bash and php) 0.1 - by El Forum - 12-23-2008, 07:58 AM
CI generator for crud (bash and php) 0.1 - by El Forum - 12-26-2008, 08:25 AM
CI generator for crud (bash and php) 0.1 - by El Forum - 12-26-2008, 12:59 PM
CI generator for crud (bash and php) 0.1 - by El Forum - 12-30-2008, 01:51 AM
CI generator for crud (bash and php) 0.1 - by El Forum - 12-30-2008, 02:18 AM
CI generator for crud (bash and php) 0.1 - by El Forum - 12-30-2008, 06:22 AM
CI generator for crud (bash and php) 0.1 - by El Forum - 01-29-2009, 03:51 PM
CI generator for crud (bash and php) 0.1 - by El Forum - 02-05-2009, 08:49 AM
CI generator for crud (bash and php) 0.1 - by El Forum - 02-05-2009, 08:53 AM
CI generator for crud (bash and php) 0.1 - by El Forum - 09-22-2010, 09:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB