Questions tagged as 'kohana'

2
answers

How to make a form with date field? (DD / MM / YYYY)

I am a beginner in Kohana and need to make a form with a date field. My form is this: <?=form::open('controllerInscricao/index')?> <?php echo form::select('TURMA_codturma', $TURMA_codturma); ?> <br><br> <div>Matr...
asked by 01.02.2015 / 23:37
1
answer

Return to the previous screen after registering using Kohana

I have a screen where I get a parameter (id) and from it I mount a form. After saving this form I need to return to the previous screen to display what was saved. How can I do this? I have tried in many ways, several Requests but nothing wor...
asked by 06.03.2014 / 23:16
1
answer

How to call CSS files using Kohana PHP 3.3

I'm new to Kohana Framework and would like to know how to call a CSS file.     
asked by 29.01.2015 / 13:52
1
answer

After doing insert, redirect to the listing of records in Kohana

I started working with Kohana yesterday and there was a problem here. My default Controller is the "page" and the action is "home". On the "page" controller I have these functions here to set up the layout: class Controller_Page extends Con...
asked by 27.02.2014 / 23:35
1
answer

Pass two arrays to a view in Kohana

I need to pass two arrays to a view, is it possible to do this? Arrays are created as follows: $cliente = ORM::factory('cliente')->where('id', '=', $id)->find(); $usuario = ORM::factory('usuario')->where('codCliente', '=', $cliente...
asked by 06.03.2014 / 21:12
1
answer

Protect pages that are loaded inside the template - Kohana

I'm doing an admin here that loads its pages in the middle. I know how to allow them to be accessed only after login, but I do not know if the way I'm doing is the correct mode. See Template: class Controller_Administracao extends Controller_T...
asked by 08.06.2014 / 05:19
1
answer

Count results from a select in Kohana

I would like to know how do I do the results count for a select on Kohana? I have this code: public function action_verification() { $login = $this->request->post('login'); $senha = md5($this->request->post('senha'));...
asked by 28.02.2014 / 21:04
0
answers

Migrate Kohana to Laravel

In kohana bootstrap I have the following configuration Kohana::init(array( 'base_url' => 'myapp', )); How do I migrate to Laravel? Because in Laravel I have the following url www.example.com/myapp/ and I can not get the css at...
asked by 21.03.2017 / 15:42