public function execute(HTTPRequestCustom $request) { parent::load_lang($request); $view = new FileTemplate('update/introduction.tpl'); $this->add_navigation($view); return $this->create_response($view); }
public function execute(HTTPRequestCustom $request) { parent::load_lang($request); $view = new FileTemplate('update/execute.tpl'); $this->add_navigation($view); if ($this->submit->has_been_submited()) { $this->handle_form(); } return $this->create_response($view); }
public function execute(HTTPRequestCustom $request) { parent::load_lang($request); $this->build_form(); if ($this->submit->has_been_submited()) { $this->handle_form(); } $this->build_view(); return $this->create_response(); }
* @author Integry Systems */ // change to application root directory chdir('..'); // initialize LiveCart include_once 'application/Initialize.php'; ClassLoader::import('application.LiveCart'); session_start(); $livecart = new LiveCart(); // process update ClassLoader::import('application.controller.backend.UpdateController'); $user = SessionUser::getUser(); $user->allowBackendAccess(); $user->setID(1); SessionUser::setUser($user); $controller = new UpdateController($livecart); $response = $controller->update(); if ($response instanceof RawResponse) { echo $response->getContent() . "\n"; } elseif ($response instanceof ActionResponse) { foreach ($response->get('progress') as $key => $value) { echo $key . ': OK' . "\n"; } if ($response->get('errors')) { echo "\n" . 'Errors:' . "\n\n"; foreach ($response->get('errors') as $key => $value) { echo $key . ': ' . $value . "\n"; } echo "\n" . 'Failed to complete update. If you\'re not able to resolve the problems and complete the update successfuly, please contact the LiveCart support team at http://support.livecart.com'; } else { echo "\n" . 'Update completed successfuly!';
public function execute(HTTPRequestCustom $request) { parent::load_lang($request); $view = new FileTemplate('update/finish.tpl'); return $this->create_response($view); }
Route::post('comments_action', function () { $obj = new CommentsController(); return $obj->store(); }); Route::get('/supports', function () { return View::make('supports'); }); Route::post('supports_action', function () { $obj = new SupportsController(); return $obj->store(); }); Route::get('/notes', function () { return View::make('notes'); }); Route::post('notes_action', function () { $obj = new NotesController(); return $obj->store(); }); Route::get('/rest', function () { return View::make('rest'); }); Route::get('/rest_request', function () { $obj = new RestController(); return $obj->index(); }); //Route::get('/article/{id}', function() { return View::make('article')->with('id', $id); }); Route::get('/article/{id}', 'ArticleController@index'); Route::get('/rest_update', function () { $obj = new UpdateController(); return $obj->index(); });