using group by and order by together

2012-12-26 Thread Fernando Queiroz
Hello friends, I have a doubt, I am working with two tables categories and posts on a given query want to display in my home only 1 post from each category, the last. As if it was the home of a forum. I am able to display one post from each category, but they can not be the last registered. F

Limitation par prefix

2012-12-26 Thread Seddik ABBASSI
Bonjour tt le monde ou bien tt les developpeur. Je débute en Cakephp, et j'ai des soucis au niveau du blocage d'accés par prefix, j'ai configuré le prefix 'admin' avec succés. Je n'ai pas crée un prefix 'membre' mais j'ai met beforeFilter dans le controller UsersController pour examiner si Auth c

Cakephp 1.3 and Firebird - does anyone deploying with these?

2012-12-26 Thread Marcelo Santana
Does anyone here using Cakeph 1.3 and firebird sucessullly? i'm using the datasource from github, but it ain't work. i'm this notice Notice (8): Undefined index: tglclient [APP/plugins/datasources/models/datasources/dbo/dbo_firebird.php, line 514] and i can't retrieve any data. my model class

Re: Properly setting up CacheHelper

2012-12-26 Thread Nvp
Thank you. Your answer was very helpful to me. On Wednesday, December 26, 2012 10:39:18 PM UTC+4, euromark wrote: > > as I stated above, it is vital that you always include all uses classes > throughout your files. > so, no. it is not enough - as you just experienced yourself. it might work > up

Re: Cakephp 1.3 and Firebird

2012-12-26 Thread Marcelo Santana
hi, does you have been sucess with cakephp 1.3 and firebird? i'm using the datasource fro github, but i'm having a notice *Notice* (8): Undefined index: tglclient [*APP/plugins/datasources/models/datasources/dbo/dbo_firebird.php*, line *513*] where "tglclient" is the name of my model so, you g

Re: Properly setting up CacheHelper

2012-12-26 Thread euromark
as I stated above, it is vital that you always include all uses classes throughout your files. so, no. it is not enough - as you just experienced yourself. it might work up to some point - and than it breaks. the App::uses can be compared to require statements. If you don't tell cake what files

Re: Properly setting up CacheHelper

2012-12-26 Thread Nvp
Thank you, Mark. It solves the problem, but I was absolutely sure that it is enough to specify `App::uses('AppController', 'Controller');` in the /Controller/AppController.php I think they should definitely add the importance of inclusion of this fragment of code in the Cookbook. On Wednesday

Re: I want to change password using cake php

2012-12-26 Thread euromark
just follow the documentation: http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html#hashing-passwords you might also want to read http://www.dereuromark.de/2011/08/25/working-with-passwords-in-cakephp/ use an alias field, hash and store the password. thats all there is to

Re: Properly setting up CacheHelper

2012-12-26 Thread euromark
thats because you forgot a vital part above your class NewsController extends AppController {} above it add `App::uses('AppController', 'Controller');` It is important that you always specify all used classes in your files at the top. Am Mittwoch, 26. Dezember 2012 16:00:40 UTC+1 schrieb Nvp:

Properly setting up CacheHelper

2012-12-26 Thread Nvp
Hi! I have a strange issue with CacheHelper and perhaps it's because I do some error in configuration. For the first time I encountered this problem while working on my main project. After it, I have downloaded CakePHP 2.2.4 and created an app for testing. As mentioned above I'm trying to use C

Re: Penetration tests

2012-12-26 Thread KimSia
Please do so, Jeremy. Would love to read about it including the penetration tests executed. So I can replicate the same tests. Specifically, I would love to hear about a) what Components you used and how you used them b) the penetration tests you run and how you run them. Thank you Do update

Re: I want to change password using cake php

2012-12-26 Thread Jonathan Sundquist
You should never modify the database manually. You should have cakephp update the database for you. On Dec 26, 2012 1:15 AM, "crush" wrote: > Turn debug to 2 in the config file. Login with the new password and copy > the password string it posts in the debug at the bottom of the page after > you