10-03-2012, 03:40 AM
[eluser]Unknown[/eluser]
Hi all,
I'm VERY new to PHP and CI and learning SLOWLY! I have been through the tutorials and understand how it is working but just can't seem to modify it for my ends:
I would appreciate some advice with structuring my MVC code to do the following:
1) display a form that takes user input.
2) when submitted that input is queried against db to get a result.
3) display the result or lack of (on the same form as step 1) and allow the user to enter and submit new criteria, each time displaying the result on the same form.
I'm having problems with:
- understanding when a particular function is called a Controller - do the public function names have to align with a view name? And that function is only called on a controller when that view is viewed??!?
- understanding the concept of routing - the doco seems a bit slim here.
FACT: Debugging is a nightmare!
Cheers,
S
P.S. I am using Dreamweaver CS6 & latest CI & latest PHP - not sure DW causing me more trouble than not but have no experience to compare with anything else!
Hi all,
I'm VERY new to PHP and CI and learning SLOWLY! I have been through the tutorials and understand how it is working but just can't seem to modify it for my ends:
I would appreciate some advice with structuring my MVC code to do the following:
1) display a form that takes user input.
2) when submitted that input is queried against db to get a result.
3) display the result or lack of (on the same form as step 1) and allow the user to enter and submit new criteria, each time displaying the result on the same form.
I'm having problems with:
- understanding when a particular function is called a Controller - do the public function names have to align with a view name? And that function is only called on a controller when that view is viewed??!?
- understanding the concept of routing - the doco seems a bit slim here.
FACT: Debugging is a nightmare!
Cheers,
S
P.S. I am using Dreamweaver CS6 & latest CI & latest PHP - not sure DW causing me more trouble than not but have no experience to compare with anything else!