login about faq

I've heard of PHPMaker but since CodeIgniter is relatively new do you know of a code generator targeting the CodeIgniter Framework?

asked Dec 03 '09 at 14:18

shemcristobal's gravatar image

shemcristobal
615213

edited Jun 21 '12 at 10:34

Alistair%20A.%20Israel's gravatar image

Alistair A. Israel
3.1k210


Try Form Igniter at http://formigniter.org/

Best thing is you can download the source, so you can host it in your dev puter, modify 'em to your liking and voila ... you are the king of the code este ... heaps of writing codes.:) Thanks to Ollie Rattue for sharing this wonderful tool.

link

answered Jan 28 '10 at 13:55

Joey's gravatar image

Joey
2456

This would work in small CRUD-y apps, where form validation logic is as simple as field lengths, data type checking and commonly-used regular expression checking. Unfortunately, not a lot of web-apps are as simple as that.

(Jan 29 '10 at 01:28) leypascua leypascua's gravatar image

@leypascua - True but then one can modify the source to his/her liking (say modifying/improving the so simple validation logic) and perhaps share these additions to the open source community or to the dev guy who started the thing.

(Jan 29 '10 at 15:10) Joey Joey's gravatar image

Why would you need a code generator for CodeIgniter?

If it is for generating code for data access, I suggest you step away from it. If you don't want CI's "ActiveRecord" impl, I suggest you look at an ORM, preferably Doctrine (http://www.doctrine-project.org)

Think very carefully if you need a "scaffolding" mechanism in your app. You may be writing less code at the early stage, but you may end up being alienated by code you didn't write in the long run.

link

answered Dec 03 '09 at 16:33

leypascua's gravatar image

leypascua
1.6k115

My perception of having a code generator "tool" somehow "standardize" the code. Moreover, if we can feed this "tool" with a template of our desired code output then I guess developers can do away manual coding of repetitive task thereby shortening the development time.

I agree with you totally of getting alienated in the long run, but this is only when one misses out to learn the principles behind the outputted code, probably the design pattern used or "scaffolding" mechanism.

Can I assume you're not in favor of creating code generators targetting the CodeIgniter framework? Thanks!

(Dec 03 '09 at 17:04) shemcristobal shemcristobal's gravatar image
2

IMO, Stick to the conventions published by CI and you'll be fine.

What I do is to keep a clean folder structure for CI which I can re-use in projects. I created a batch file to copy the folder structure to a location where I will put my code for a new project.

I haven't been in a situation where there are a lot of boilerplate code in CI aside from data access tasks. With sufficient code completion and refactoring support in your IDE you'll be churning out code fast enough to get the job done.

(Dec 04 '09 at 02:30) leypascua leypascua's gravatar image

Personally I looked for the same thing, a code generator, when starting out in CI. I -like- working from example, instead of having to hunt through the documentation to figure out all the conventions and configuration.

I hired someone to do a CI project for me, and he didn't realize that there was a convention where the path is /controller/function, and wrote his own dispatcher to call private functions instead. If there had been a code generator it would have been obvious what the "right" way to do things is.

link

answered Jan 07 '10 at 12:39

Burton%20Kent's gravatar image

Burton Kent
411

2

Developers are supposed to know all of the most used conventions, otherwise you are not getting the most out of CI. Its creators have already defined how code should be written so that the framework can work on infrastructure plumbing for you. IMHO, developers are required to strictly adhere to the conventions and know when to extend it when necessary. CI has already built-in the shortcuts, you don't need to create your own :-)

(Jan 08 '10 at 00:53) leypascua leypascua's gravatar image

That's my point. When you're first starting out, you don't know all the conventions, so it's nice to have something to work from that follows them. To me, the code generator isn't a shortcut, it's a guide.

(Jan 09 '10 at 13:08) Burton Kent Burton%20Kent's gravatar image

Use the PCG(PHP Code Codeigniter) from ThePHPCode.com that generates the complete PHP coding for a website with Codeigniter framework. The entire website is generated online and can be previewed before downloading.

  1. User authentication system
  2. Role based access management system
  3. Queue based email processing to keep your ISP happy.
  4. Users can generate as many modules as needed with rich field type like RichText, dynamic dropdown, date with calender pickup etc
  5. Comments and images can be added to the user generated modules.
  6. RSS Feed generation.
  7. Smart cache library to serve pages faster without hitting your database.
  8. Admin dashboard to manage cache, users, permissions, roles and user's role etc.
link

answered Jan 06 '12 at 15:33

Nish's gravatar image

Nish
11

edited Jul 10 '12 at 19:18

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×64
×4

Asked: Dec 03 '09 at 14:18

Seen: 4,945 times

Last updated: Jul 10 '12 at 19:19