We are working for update doc for SXIMO 5.1.7

Embed form on your page

If you want work with form and post data from static page , this must be done using ajax . Lets make sample form for collect testimonial from visitor. Before we started , lets make table for stoted data from testimonial

id  int(int(11)
title varchar(100),
comment varchar(text)

// make id as primary key autoincrement 

go to your page CMS and create new page , fill as following step :
Title : My testimonial ,
Alias : My-Testimonial
Filename : mytestimonial
Permission : Allow Guest
Tempate : frontend
Content : leave blank for this time Next , edit file

<br> /protected/app/views/pages/template/ 

so now , we start making form . here the structure of form

routes.php

 Now you need to create routes for handling post form . open file and copy code bellow to route
 Route::post('/testimonial', function(){

		$rules = array(
			'fullname'	=> 'fullname',	
			'comment'	=> 'comment',	
		);
		$validator = Validator::make(Input::all(), $rules);	
		if ($validator->passes()) {	
			$data = array(
				'fullname' => Input::get('fullname') ,
				'comment' => Input::get('comment')
			);		
			try{
				DB::table('testimonial')->insert($data);
				$message = ' Thank you for your comment ';


			} catch( Exception(e)) {

				$message = $e;
				return Response::json(array(
					'message'	=> $e,
					'status'	=> 'error'
				));	
			}

			return Response::json(array(
				'message'	=> $message,
				'status'	=> 'success'
			));	
							
				
		} else {
			$message = ' please fill all required fields ';
			return Response::json(array(
				'message'	=> $message,
				'status'	=> 'error'
			));			

		}	
});

That's it !! now you have form on your page . To view data from form , just create module testimonial using code builder .