Estimados, estoy intentando reproducir el siguiente ejemplo http://wiki.kumbiaphp.com/Listas_simples_enlazadas_jquery_Kumbiaphp_Spirit_beta2que corresponde a listas enlazadas, pero me da un error, que al parecer, creo que corresponde al dbSelect, por lo que creo... alguien tiene alguna idea de esto? o de alguien que ya lo haya solucionado?
--
Viva KumbiaPHP Framework!
http://www.kumbiaphp.com/
Ha recibido este mensaje porque está suscrito a Grupo "KumbiaPHP Framework" de Grupos de Google.
Para obtener más opciones, visita este grupo en http://groups.google.com/group/kumbia?hl=es.
| Gerencia de configuración e integración |
| V.P. de Tecnología |
| Telefónica de Venezuela |

KumbiaException: No existe el modelo n (0)
En el archivo C:\wamp\www\core\kumbia\load.php en la línea: 66
| # | Fichero (línea) | Función |
|---|---|---|
| #0 | C:\wamp\www\core\extensions\helpers\form.php(470): | Load::model('n') |
| #1 | C:\wamp\www\default\app\views\soporte_vp\create.phtml(8): | Form::dbSelect('soporte_vp.regi...', |
| #2 | C:\wamp\www\core\kumbia\kumbia_view.php(203): | include('C:\wamp\www\def...') |
| #3 | C:\wamp\www\core\kumbia\bootstrap.php(140): | KumbiaView::render(Object(SoporteVpController), |
| #4 | C:\wamp\www\default\public\index.php(82): | require('C:\wamp\www\cor...') |
| #5 | {main} |
umbiaException: No existe el modelo n (0)
En el archivo C:\wamp\www\core\kumbia\load.php en la línea: 66
| # | Fichero (línea) | Función |
|---|---|---|
| #0 | C:\wamp\www\core\extensions\helpers\form.php(470): | Load::model('n') |
| #1 | C:\wamp\www\default\app\views\soporte_vp\create.phtml(8): | Form::dbSelect('soporte_vp.regi...', |
| #2 | C:\wamp\www\core\kumbia\kumbia_view.php(203): | include('C:\wamp\www\def...') |
| #3 | C:\wamp\www\core\kumbia\bootstrap.php(140): | KumbiaView::render(Object(SoporteVpController), |
| #4 | C:\wamp\www\default\public\index.php(82): | require('C:\wamp\www\cor...') |
| #5 | {main} |
0.1916 seg.Tiempo | 1.94 MBMemoria Usada | 27 ficherosIncludes |
|---|---|---|
30 seg.Tiempo Máximo PHP | 128MMemoria PHP | 5.3.8Versión PHP |
| ( ! ) Warning: include(C:\wamp\www\default/app/views/_shared/partials/kumbia/footer.phtml) [function.include]: failed to open stream: No such file or directory in C:\wamp\www\core\views\templates\exception.phtml on line 76 | ||||
|---|---|---|---|---|
| Call Stack | ||||
| # | Time | Memory | Function | Location |
| 1 | 0.0027 | 375880 | {main}( ) | ..\index.php:0 |
| 2 | 0.0088 | 415776 | require( 'C:\wamp\www\core\kumbia\bootstrap.php' ) | ..\index.php:82 |
| 3 | 0.1916 | 2072368 | KumbiaException::handle_exception( ) | ..\bootstrap.php:142 |
| 4 | 0.1941 | 2028672 | include( 'C:\wamp\www\core\views\templates\exception.phtml' ) | ..\kumbia_exception.php:84 |
| ( ! ) Warning: include() [function.include]: Failed opening 'C:\wamp\www\default/app/views/_shared/partials/kumbia/footer.phtml' for inclusion (include_path='.;C:\php\pear') in C:\wamp\www\core\views\templates\exception.phtml on line 76 | ||||
|---|---|---|---|---|
| Call Stack | ||||
| # | Time | Memory | Function | Location |
| 1 | 0.0027 | 375880 | {main}( ) | ..\index.php:0 |
| 2 | 0.0088 | 415776 | require( 'C:\wamp\www\core\kumbia\bootstrap.php' ) | ..\index.php:82 |
| 3 | 0.1916 | 2072368 | KumbiaException::handle_exception( ) | ..\bootstrap.php:142 |
| 4 | 0.1941 | 2028672 | include( 'C:\wamp\www\core\views\templates\exception.phtml' ) | ..\kumbia_exception.php:84 |
<?php echo Form::dbSelect('clientes.regiones_id', $regiones, 'nombre', '- seleccione -'); ?>
El segundo parametro debe ser un string con el nombre del campo a mostrar,
y se le está pasando el resultado de una consulta, asi que está mal ese tuto,
al dbSelect no se le pasa en ningun momento el resultado de una consulta, ya que el hace
la consulta internamente.