10-08-2009, 08:30 AM
[eluser]Damien K.[/eluser]
The underscore is there as per the manual--the reason is left as an exercise for the reader (Hint: see Controllers).
I put my Contact_logic somewhere under the libraries folder.
I guess you found the shorthand for (bool) ? (do1) : (do2). Many people do use mattpointblank's method for populating the form, and that is perfectly fine. However, I do not because somewhere and for some reason it didn't work well with me.
Furthermore, if you ever need another shorthand that is not supported you can always extend or create a new CI helper to fulfill your needs. I have one to handle dates in the view exactly the way I want it. My preference for this is to have as little PHP code in the view as possible.
The underscore is there as per the manual--the reason is left as an exercise for the reader (Hint: see Controllers).
I put my Contact_logic somewhere under the libraries folder.
I guess you found the shorthand for (bool) ? (do1) : (do2). Many people do use mattpointblank's method for populating the form, and that is perfectly fine. However, I do not because somewhere and for some reason it didn't work well with me.
Furthermore, if you ever need another shorthand that is not supported you can always extend or create a new CI helper to fulfill your needs. I have one to handle dates in the view exactly the way I want it. My preference for this is to have as little PHP code in the view as possible.