Cambios a considerar en esta nueva versión.
Métodos y clases que se usaban en versiones anteriores y que aun funcionan. Pero que quedan desaconsejadas y que no funcionaran en el futuro (próxima beta o versión final):
Posiblemente habrá 2 versiones:
beta2 con lo deprecated para facilitar migración
beta2.2 sin lo deprecated más limpia y rápida, para empezar nuevas apps
- Flash::success() ahora Flash::valid()
- Flash::notice() ahora Flash::info()
- ApplicationController ahora AppController (con sus respectivos cambios de métodos)
- Usar $this->response = ‘view’ o View::response(‘view’) para no mostrar el template.
- Ahora View::template(NULL) el View::response() sólo se usa para elegir formatos de vista alternativos.
Lista de cambios entre versiones:si no se especifica beta1 es que es compatible en ambos casos
Application
- ControllerBase0.5 => ApplicationControllerbeta1 => AppControllerbeta2
- public function init0.5 => protected function initializebeta2
- render_view0.5 => View::selectbeta2
Models
- public $mode0.5 => public $databasebeta1 y beta2
Callbacks
- public function initialize0.5 => protected function initializebeta2
- public function finalize0.5 => protected function finalizebeta2
- public function before_filter0.5 => protected function before_filterbeta2
- public function after_filter0.5 => protected function after_filterbeta2
boot.inise elimina en beta2
- kumbia / mail / libchart0.5 => se elimina los prefijosbeta1
- extensions0.5 => libsbeta1
Input::
- $this->has_post0.5 => Input::hasPostbeta2
- $this->has_get0.5 => Input::hasGetbeta2
- $this->has_request0.5 => Input::hasRequestbeta2
- $this->post0.5 => ‘Input::postbeta2
- $this->get0.5 => ‘Input::getbeta2
- $this->request0.5 => ‘Input::requestbeta2
View::
- $his->cache0.5 => View::cachebeta2
- $this->render0.5 => ‘View::selectbeta2
- $this->set_response0.5 => View::responsebeta2
- content()0.5 => View::content()beta2
- render_partial0.5 => View::partialbeta2
Router::
- $this->route_to0.5 => ‘Router::route_tobeta1 y beta2
- $this->redirect0.5 => Router::redirectbeta2
Html::
- img_tag0.5 => ‘Html::imgbeta2
- link_to0.5 => ‘Html::linkbeta2
- link_to_action0.5 => ‘Html::linkActionbeta2
- stylesheet_link_tags0.5 => ‘Html::includeCssbeta2
Ajax::
- form_remote_tag0.5 => ‘Ajax::formbeta2
- link_to_remote0.5 => ‘Ajax::linkbeta2
Form::
- end_form_tag0.5 => ‘Form::closebeta2
- form_tag0.5 => ‘Form::openbeta2
- input_field_tag0.5‘ => ‘Form::inputbeta2
- text_field_tag0.5 => ‘Form::textbeta2
- password_field_tag0.5 => ‘Form::passbeta2
- textarea_tag0.5 => ‘Form::textareabeta2
- hidden_field_tag0.5 => ‘Form::hiddenbeta2
- select_tag0.5 => ‘Form::selectbeta2
- file_field_tag0.5 => ‘Form::filebeta2
- button_tag0.5 => ‘Form::buttonbeta2
- submit_image_tag0.5 => ‘Form::submitImagebeta2
- submit_tag0.5 => ‘Form::submitbeta2
- checkbox_field_tag0.5 => ‘Form::checkbeta2
- radio_field_tag0.5 => ‘Form::radiobeta2
Tag::
- javascript_include_tag0.5 => ‘Tag::jsbeta2
- stylesheet_link_tag0.5 => ‘Tag::cssbeta2
Cambio en las rutas entre versiones:
- # 0.5 => 1.0 beta1
- ‘/apps/default’ => ‘/app’,
- ‘/apps’ => ”,
- ‘/app/controllers/application.php’ => ‘/app/application.php’,
- ‘/app/views/layouts’ => ‘/app/views/templates’,
- ‘/app/views/index.phtml’ => ‘/app/views/templates/default.phtml’,
- ‘/app/views/not_found.phtml’ => ‘/app/views/errors/404.phtml’,
- ‘/app/views/bienvenida.phtml’ => ‘/app/views/pages/index.phtml’,
- ‘/app/helpers’ => ‘/app/extensions/helpers’,
- ‘/app/models/base/model_base.php’ => ‘/app/model_base.php’,
- ‘/app/models/base/’ => ”,
- ‘/cache’ => ‘/app/cache’,
- ‘/config’ => ‘/app/config’,
- ‘/docs’ => ‘/app/docs’,
- ‘/logs’ => ‘/app/logs’,
- ‘/scripts’ => ‘/app/scripts’,
- ‘/test’ => ‘/app/test’,
# 1.0 beta1 => 1.0 beta2
Cambiados:
- Session::isset_data() ahora Session::has()
- Session::unset_data() ahora Session::delete()