Re: CakePHP 2.2 + MSSQL and binary/image column

2012-09-06 Thread FlorianK
I'm not sure if this is the best solution. If there is another, already provided, solution, I would be thankful if somebody points this out to me. I figured it already out. The Problem is a known bug in PDO Layer from MS. It can be fixed with the litte function function hextostr($x) { $

Re: Cakephp 2.2.1 is don't work on linux

2012-09-06 Thread AD7six
The cause for that will be your version of php or mysql, not which operating system you use. AD -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send em

Re: HABTM save Question

2012-09-06 Thread Mohammad Naghavi
Hi Steffen, what is wrong with $this->Translation->LanguagesTranslation->save() that you need a better way? On Thu, Sep 6, 2012 at 3:25 PM, gloop wrote: > Hello, > > is there a way to save directly to the joining table? Like the find data? > > Model Translation HABTM Translation: > > $data

Re: Cakephp 2.2.1 is don't work on linux

2012-09-06 Thread lowpass
OK, I see it now. I vaguely remember seeing another person with this problem. I think it had to do with Linux being case-sensitive (as it should be). But I might be wrong. If I remember the issue I'll let you know. On Wed, Sep 5, 2012 at 11:09 PM, jasonyi wrote: > my pc output value : > Array (

Re: How to provide validation error message in Danish language in Cakephp 2.1

2012-09-06 Thread Jeremy Burns | Class Outfit
The validation keeps going for each field until it reaches the end or fails on a rule that has 'last' => true in it and returns the last found error message; so add that to each rule and you'll be OK (I do that by default for every rule). Jeremy Burns Class Outfit http://www.classoutfit.com On

Re: Using find(list) to return results from multiple tables

2012-09-06 Thread Jeremy Burns | Class Outfit
What do the results currently look like? Jeremy Burns Class Outfit http://www.classoutfit.com On 6 Sep 2012, at 20:27:57, Siraris wrote: > Hi all > > I'm totally stumped here. I'm trying to create a data structure that I can > feed into the Form Select helper to create an list with optgroup

Re: database connection

2012-09-06 Thread Jeremy Burns | Class Outfit
Are the connection details in /app/Config/database.php correct? Jeremy Burns Class Outfit http://www.classoutfit.com On 6 Sep 2012, at 02:31:33, jonathan nguku wrote: > > > 1 > down vote > favorite > 2 > I am using xamp server and I'm trying to install CakePHP 2.0.0 but I'm having > trouble

Cakephp sql

2012-09-06 Thread Zordon
Hello everyone, after spending a lot of time trying to find out why cake php executes queries very slow without success I came here to see if someone can help me out. First this is the query from cakephp sql log and mysql processlist: SELECT *, COUNT(*) as hits FROM `hits_log` AS `HitsLog` LEF

CakePHP 2.2 + MSSQL and binary/image column

2012-09-06 Thread FlorianK
I have recently taken over a project in PHP/CakePHP . Now I wanted to update the framework from CakePHP 1.3 to CakePHP 2.2. The DB-server is MS SQL Server (Version 10.50). I have also tried to connect to an SQL Sever Version 9.0 SP1. Same problem. The Application connects to the DB-server and

database connection

2012-09-06 Thread jonathan nguku
1down votefavorite <#> *2* I am using xamp server and I'm trying to install CakePHP 2.0.0 but I'm having trouble with it. I put the CakePHP 2.0.0 files in my wamp server folder "www" and then "cake" folder. When I enter address http://localhost/cake in my browser then following message is di

Using find(list) to return results from multiple tables

2012-09-06 Thread Siraris
Hi all I'm totally stumped here. I'm trying to create a data structure that I can feed into the Form Select helper to create an list with optgroups. According to http://book.cakephp.org/1.3/view/1022/find-list I can do this, and yet my results are never returned the way I want them (they are

How to provide validation error message in Danish language in Cakephp 2.1

2012-09-06 Thread Sheikh Razu
public $validate = array( 'username' => array( 'unique' => array( 'rule' => array('isUnique'), 'message' => 'Brugernavnet er allerade taken', 'allowEmpty' => false, 'required' => true, ), 'email' => array( 'rule' => array('email'), 'message' => "De følgende resultater er fundet ", 'all

Re: Share model across controller

2012-09-06 Thread Biswajit Ghosh
using this you can access your result model from Form controller.. $this->loadModel(" Result "); On Thu, Sep 6, 2012 at 8:28 PM, gp92300 wrote: > Hi! > I want to take advantage of CakePHP to build web forms on the frontend and > a result panel on the backend. > For this, I've built two controlle

How to provide validation error message in Danish language in Cakephp 2.1

2012-09-06 Thread Sheikh Razu
public $validate = array( 'username' => array( 'unique' => array( 'rule' => array('isUnique'), 'message' => 'Brugernavnet er allerade taken', 'allowEmpty' => false, 'required' => true, ), 'email' => array( 'rule' => array('email'), 'message' => "De følgende resultater er fundet ", 'all

Re: How to use two view(controller) in a page??

2012-09-06 Thread Greg Skerman
Thats fine. The solution for using elements is fairly straight forward. Build your Controller and your model *as normal* - so your Users controller has a login method. Next, create a new element under View/Elements called "LoginForm.ctp". The login form would look something like this: Form->cre

Re: Saving Multiple Models at the Same Time (MeioUpload Plugin)

2012-09-06 Thread andrewperk
Well it was just my user error as usual haha. I'll include what I did wrong and how I fixed it in case someone else makes the same mistakes: First I forgot to change the News add form to 'file' type when I introduced the new file upload functionality to the form. I had this set in my stand alon

Re: how to understand some English sentences in the cook book?

2012-09-06 Thread shyandsy
Got it. pretty thanks. 在 2012年9月5日星期三UTC-5下午1时35分27秒,cricket写道: > > On Wed, Sep 5, 2012 at 3:13 AM, shyandsy > > wrote: > > I am so sorry abou these easy question. This approve I am so weak in > English > > skill. > > Please give me some instruction, thanks a lot. > > > > 1.The first sente

Re: How to use two view(controller) in a page??

2012-09-06 Thread shyandsy
Got it, I already know the difference between reply on here and reply to your mailbox. 在 2012年9月5日星期三UTC-5上午2时45分34秒,Greg写道: > > You don't use a view. Make an element to start with under views/elements. > Call it loginForm.ctp or something. > > Then define an action in the form helper create c

Re: How to use two view(controller) in a page??

2012-09-06 Thread shyandsy
I am sorry about that. 在 2012年9月5日星期三UTC-5上午2时45分34秒,Greg写道: > > You don't use a view. Make an element to start with under views/elements. > Call it loginForm.ctp or something. > > Then define an action in the form helper create call to point it at the > right controller/action > > On Wednesd

Re: Error when I use the $validate in the model file

2012-09-06 Thread shyandsy
Hi, sorry, I have forgot this question I already catch this problem Thanks very much, my friend 在 2012年8月24日星期五UTC-5上午3时17分46秒,Chetan Patel写道: > > Hello friends > > Your mystake is minor, > > Just replace "alphaNumberic" with "alphaNumeric". > > Then Your validate array would be like below > > pub

Saving Multiple Models at the Same Time (MeioUpload Plugin)

2012-09-06 Thread andrewperk
Hello, My associated model validation for Uploads(MeioUpload) while saving multiple model associations at once does not work. I'm using the MeioUpload plugin for uploading files. Each Upload is related to a News with a one to many relationship. When I try to save an Upload at the same time as

Share model across controller

2012-09-06 Thread gp92300
Hi! I want to take advantage of CakePHP to build web forms on the frontend and a result panel on the backend. For this, I've built two controllers: Results and Forms Everything runs smoothly with my Result panel. But fact is, I don't know how to access my Result model from my Forms controller t

HABTM save Question

2012-09-06 Thread gloop
Hello, is there a way to save directly to the joining table? Like the find data? Model Translation HABTM Translation: $data = array( 'Translation' => array( 'key' => '213152374' ), 'Language' => array( array( 'id' => '1',

Re: how to implementing sql function like datediff in cake php

2012-09-06 Thread Marcus James
Hi, Try this example :- $data = $this->User->find('first',array('conditions'=>array('User.id'=>1),'fields'=>array('DATEDIFF(now(),User.modified) as diff','User.*'))); Enjoy, Marcus -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to thi

Re: how to implementing sql function like datediff in cake php

2012-09-06 Thread Yasir Arafat Hasib
Hello, I think the following url will help you. http://arafats.info/cakephp-date-comparison-or-cakephp-date-bewteen-on-database-data/ Thanks Arafat On Thu, Sep 6, 2012 at 5:18 PM, Vaibhav.Pathak wrote: > Hi > Please anybody tell me how can i user SQL function in cakephp query. > > -- > You

how to implementing sql function like datediff in cake php

2012-09-06 Thread Vaibhav.Pathak
Hi Please anybody tell me how can i user SQL function in cakephp query. -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubsc

Re: How to call a function from another controlle?

2012-09-06 Thread Salines
Thank you, function which I want to call, is used to refresh expired token -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubs