How to call a new application with parameter |
[eluser]Unknown[/eluser]
I write a new application like this Code: class Blog extends Controller { I can using http://mysite.com/blog/ to call Class Blog But if I want to call the function onedit And if I using like Code: <?=form_open('blog/onedit')?> how can I assign these parameter for function onedit thanks
[eluser]pickupman[/eluser]
I would assume you are posting form fields, so there is no need to fetch these like you are thinking. You don't need to set them in the function parameters. You should use form validation class, and then retrieve the fields using: Code: function onedit($id = '0'){ |
Welcome Guest, Not a member yet? Register Sign In |