EllisLab text mark
Advanced Search
     
MVC Code Generator
Posted: 28 April 2012 02:19 PM
Joined: 2008-05-17
8 posts

I have created an MVC Code Generator for CodeIgniter that generates a model, a controller, and a set of views from a database table. The code is free to anyone who asks via an email link on the site.

The documented code is here.

 
Posted: 28 April 2012 07:10 PM   [ # 1 ]   [ Rating: 0 ]
Joined: 2010-09-21
16 posts

You made a CRUD?

 
Posted: 28 April 2012 07:22 PM   [ # 2 ]   [ Rating: 0 ]
Joined: 2008-05-17
8 posts

Yes, but one you don’t have to write manually.

 
Posted: 01 May 2012 12:28 AM   [ # 3 ]   [ Rating: 0 ]
Joined: 2008-11-09
3 posts

I tested your code and got some error in the generated code.
most error are about missing variable and parameter name.
I.e i got function foo($) {..}  with just $ sign and no parameter name.
OH And i used xampp with apache port using 555 port, not the default 80 port, may be that caused the problem?.
Thank You.

 Signature 

Win XP+Wampserver2, Ubuntu 8.04+apache2+php5+mysql5

 
Posted: 02 May 2012 12:58 PM   [ # 4 ]   [ Rating: 0 ]
Joined: 2008-05-17
8 posts

I don’t know whose code you tested, but I’m pretty sure it wasn’t mine.

 
Posted: 08 May 2012 12:53 AM   [ # 5 ]   [ Rating: 0 ]
Joined: 2008-11-09
3 posts

I followed your tutorial step by step here : http://aswapathy.com/ci120422/
using default welcome.php controller as controller for your function, so to generate complete mvc code for user table in my db, i ran http://localhost:555/ci120422/welcome/gen/user
I modified config.php :

$config['base_url''http://'.$_SERVER['SERVER_NAME'].':555/'.SITE.'/'

anyway, after giving name to missing name-parameter, your generated crud mvc code work perfectly. Thanks

 Signature 

Win XP+Wampserver2, Ubuntu 8.04+apache2+php5+mysql5

 
Posted: 08 May 2012 01:40 AM   [ # 6 ]   [ Rating: 0 ]
Joined: 2008-05-17
8 posts

I’m glad you got it to work, but you didn’t have to go to all that trouble. The controller to be used is mvc so all you had to run was http://localhost/ci120422/mvc/gen/user.