All Questions

RSS

0 answers

0 votes

Asked by RTJ, 3 weeks ago in Models

Notice (8): Undefined variable: form [APP\View\tareas\edit.ctp, line 1]

Hola a todos,

Bueno resulta que me dio por aprender cakePHP y estoy siguiendo un tutorial de una versión anterior. pero voy realizando los cambios para que funccione...

pero me he quedado estancado.

no se como quitar este error Notice (8): Undefined...

0 answers

0 votes

Asked by mrstevejobs, on 24/3/12 in Models

Avoid creating logs (debug.log error.log) cakephp2.0

I am using an small hosting with only 200Mb of space and i the error.log and debug.log files placed in "App/tmp/logs" are increasing in size very fast and now their size is around 120Mb...

I am using some rcon job every 2 minutes and it can be the...

0 answers

0 votes

Asked by mrstevejobs, on 18/3/12 in Models

Import inside function or at the top?

I was wondering why imports are usually wrote at the top of each class if it is only gonna be used by one function in all the class.

Wouldn't it be a better practice just to add it inside the function?

Like this:

private function...

1 answer

0 votes

Asked by mrstevejobs, on 10/1/12 in Models

$content_for_layout or $this->fetch('content'); - CakePHP 2.0

Hello,

I am working with CakePHP 2.0. The one i downloaded on October.

I am trying to create my default layout and i find out that it doesnt work well following the CookBook steps.

It doesn't recognize $this-fetch() and it shows this error:

Fatal...

0 answers

0 votes

Asked by mrstevejobs, on 23/2/12 in Models

How to paginate my own query from many tables

I wonder how can i paginate my own query.

I know i didn't follow the rules on this query, but i had to do it like that.

My query is something like:

return $this-query("select id, numVotes,

from posts,votes

where created (SELECT DATE_ADD(NOW(),...

0 answers

0 votes

Asked by mrstevejobs, on 10/2/12 in Models

Singleton for controllers??

I was wondering if CakePHP implements singleton by its own on controllers or we have to do it by our own.

In some controllers i have functions like this:

{{{

private function includeNumVotes($posts){

App::import('Controller',...

0 answers

0 votes

Asked by jukarlanos0501, on 29/12/11 in Models

Como puedo conectar con SQLSERVER2005?

Mecesito conectar cakephp con SqlServer 2005 y no encuentro como alguien me puede ayudar???

Auxilio!!!!!!!1

0 answers

0 votes

Asked by joserafael, on 29/11/11 in Models

Blog con posts y comentarios

Si hay algo que no he podido hacer en cakephp es relacionar una tabla de noticias con comentarios. Sí, se que es sencillo pero no doy con la solución.

Cuando realizo el scaffold no tengo ningún problema. El HasMAny y el BelongsTo lo crea en el...

1 answer

0 votes

Asked by grism, on 17/6/11 in Models

añadir modelo a aplicación existente

Buenas tardes, a ver si me pudieran ayudar. tengo una aplicación funcionando y necesito añadir más modelos. ya realicé las nuevas tablas en la bd, y usando el "bake all" me crea el modelo que indique, pero me da errores al querer crear...

2 answers

0 votes

Asked by talaman, on 9/5/11 in Models

Llamar campos de la tabla madre de la madre...

Hola, una consulta por si alguien sabe, resulta que tengo lineas, categorías y productos, entonces al hacer find o pagination en productos quiero imprimir su categoría y... su linea, e aquí la cosa, find o pagination solo trae los datos del hijo...

<< previous 1   2   3   4

How does CakePHP Questions work?

CakePHP Questions is easy to use: Register and login or directly login using OpenID and just ask your question!

After you ask your question you just need to wait until you have got some answers and pick the correct answer.

Other users might help you by finding the right answer by voting and giving comments.