Re: Fatal Error

2013-09-12 Thread Reuben
You can't use __() on class variables. Normally, you'd need to assign a translated message dynamically. See [ http://book.cakephp.org/2.0/en/models/data-validation.html] and the Dynamically change validation rules section. Requires CakePHP 2.2 to use the nice calls. However, looking at [

Re: Is this the right Framework for me ?

2013-09-12 Thread Salines
Yes, cakephp is for you! https://www.youtube.com/playlist?list=PL9B2E2E37CCB661D6 https://www.youtube.com/playlist?list=PL20D663BEC6319E36 www.youtube.com/results?search_query=cakephp+tutorial -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter

Re: Defining root directory for shared hosting

2013-09-12 Thread kdubya
You should NOT need to change anything in the file app/index.php. You have not given enough information about you installation for us to help. For instance, where (in relation to your webserver document root) did you put CakePHP. If you did a standard installation and put it in the document

Re: IDE PHP and Tools

2013-09-12 Thread Vladislav Kolev
Aptana Studio or eclipse pdt- best for me! среда, 11 сентября 2013 г., 14:59:22 UTC+3 пользователь Clod написал: I suggest to try Codelobster PHP Edition http://www.codelobster.com It has special CakePHP plug-in for auto-complete, context help etc. -- View this message in context:

CakePHP ComboSession serious looping bug in documentation

2013-09-12 Thread chaoszcat
Hi All *Environment:* CakePHP version: *2.4.0 stable* latest PHP 5.3 We just recently pushed our app to AWS Beanstalk with ElastiCache + RDS as our combo session, and using the ComboSession technique described in

Set database config at login

2013-09-12 Thread Olivier CHEMIN
Hi all, I have an app wich uses multiple databases. One database ('default') for common information, users, companies, etc. The login function from the usersController uses this database. The rest of the data is stored into another database (let say a company_db_name), so after the user has

Re: How I can edit a user without changing the password?

2013-09-12 Thread Vincent Sebastian
It is very simple Step: 1 In edit.ctp add the password input field as like given below: echo $this-Form-input('password',array('value' = '','autocomplete'='off')); Step 2: In model User.php set the validation for password as like given below: 'password' = array( 'notempty' = array( 'rule' =

Re: 3.0: a peek into CakePHP's future

2013-09-12 Thread jminkler
This has to be one of the funniest threads I have seen in a long time, thanks for the laughs guys. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP

Corrupted Content Error

2013-09-12 Thread Albertus
I doing fresh instalation of cakephp 2.3 into my websever. basic setup going well until i did database setup for mysql. and i refresh my firefox. got this browser error msg Corrupted Content Error any one hellp me? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter

Re: ajax validation with rules from model

2013-09-12 Thread Mike Karthauser
On 12 Sep 2013, at 15:38, jminkler jarret.mink...@gmail.com wrote: Why Ajax? Why not build it into HTML5 validation? backwards compatibility for non html5 compliant browsers (cough ie6/7) On Wednesday, September 11, 2013 8:42:25 AM UTC-4, Dmitry Romanov wrote: I'm looking some CakePHP

Re: ajax validation with rules from model

2013-09-12 Thread jminkler
Why Ajax? Why not build it into HTML5 validation? On Wednesday, September 11, 2013 8:42:25 AM UTC-4, Dmitry Romanov wrote: I'm looking some CakePHP plugin for ajax validation. Requirements: 1. Gets validate rules from Model 2. Validates after edit of input field Thanks. -- Like Us on

Inserting named parameter for custom pagination route

2013-09-12 Thread Chris White
I'm using the pagination component and would like to use a custom route for a prettier URL. At the moment I have a page at /things, and I would like the individual pages to be /things/2, /things/3 etc. I'm using the following code in my thing controller's action: public function index() {

Cakephp 1.3 \persistent\ is not writable…\models\ is not writable

2013-09-12 Thread SkillSet
Im currently trying to spin up a application, but when I run WAMP and try to access my site I get the following errors.\models\ is not writable .\persistent\ is not writable.\app\tmp\cache\ is not writable. Now with that being said I have did my homework and looked around and it

Re: Cakephp 1.3 \persistent\ is not writable…\models\ is not writable

2013-09-12 Thread SkillSet
Ok I solved my problem. I added 3 folders inside the tmp folder. The first was cache. Afterwards I drilled down into the cache folder and added 2 additional folders (models,persistant). After that was done I was still getting one error (\app\tmp\cache\ is not writable). To fix it I opened

Re: 3.0: a peek into CakePHP's future

2013-09-12 Thread gersonfs
Remove support for named parameters would not be nice to me. I have a lot of code that makes use of this feature. Em quinta-feira, 5 de julho de 2012 23h36min03s UTC-3, José Lorenzo escreveu: Since its creation, more than 7 years ago, CakePHP has grown with a life of its own. Its main

Re: Set database config at login

2013-09-12 Thread Andras Kende
http://book.cakephp.org/2.0/en/models/model-attributes.html app/Config/database.php class DATABASE_CONFIG { public $default = array( ……… ); public $company_db_name = array( ……... ); } app/Model/Example.php class Example extends

How to structure this project - multiple javascript games

2013-09-12 Thread christianstrang
Hello everyone :) I'm currently working on a new project and need to ask you guys how to structure it, as it is a bit different than my usual cakephp-project (sorry for the long post). *Here are the project-details:* - the project is a site where users can play braintraining games - the

hasMany weirdness

2013-09-12 Thread Eric Haskins
Has anyone else seen where hasMany returns empty arrays's? Example Players player_id Seasons season_id Divisions division_id PlayersToSeasons - hasMany Players, Seasons, Divisions, id season_id player_id division_id So many will come back perfect out of 300 players maybe 20 records

Re: CakePHP ComboSession serious looping bug in documentation

2013-09-12 Thread Lionel Chan
This is resolved and patched in the documentation: https://github.com/cakephp/docs/commit/23fc03c12c3eea8456e895c2696444e037cdcc56 Thanks! /Lionel On Thursday, 12 September 2013 10:23:21 UTC+8, Lionel Chan wrote: Hi All *Environment:* CakePHP version: *2.4.0 stable* latest PHP 5.3 We