[Solar-talk] Form submission help
Raymond Kolbe
rkolbe at gmail.com
Sat Jul 21 17:15:17 CDT 2007
Hello all,
I have been using Solar PHP for the past week, trying to get to know
it better...I wish the documentation/walk-thrus on the web site went
into more detail...
Anywho...here is my problem/question:
To create a form and read the posted data, you can do this by:
http://solarphp.com/manual/Form_processing/Overview
However, in order to preserve the MVC aspect of things, wouldn't it be
best to put the form itself in the view (let's say,
changepassword.php), and put the 'nuts and bolts' of the code in the
model (this case being Vendor_App_ChangePassword)?
This is what I have been trying to do for the better part of today and
can't seem to get things to work properly. In the tutorial (the
aforementioned link) it is stated, that to display the form you must
do:
// get a view object, assign the form to it, and display.
$view = Solar::factory('Solar_View');
$view->form = $form;
$view->display('form_example.view.php');
However, this example is shown in a single file.
Any help/advise would be much appreciated.
Thank you,
Raymond K.
More information about the Solar-talk
mailing list