Module System

2015-09-14 Thread Sven Mäurer
Which is the best way of implementing a module system? I am implementing a shop and want the user to select a theme or if product evaluations are enabled or not. Any ideas? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received

Translate behaviour need better turorial

2015-09-14 Thread Salines
I try to implement translate behavior, and I got lost in the code following the documentation. I have CakePHP 2 application that works in three languages, I try them migrate to CakePHP 3.x, but unlike 2.x documentation that I quickly realize, here in CakePHP 3 documents there are many

how to use httpAutentication for login process

2015-09-14 Thread Jack Kalish
My question is I have two url In my one url I was write below code for login process if($this->request->is('post')){ $HttpSocket = new HttpSocket(); $HttpSocket->configAuth('Basic', 'username', 'password'); $response = $HttpSocket->get('http://localhost/cake2/Tests/login');

Re: How to save information from multiple tables at once?

2015-09-14 Thread rumble
If your tables have correct associations, then it would be saved correctly by calling $this->Table1->Table2->save($data) I recommend you to take a look at the blog example/tutorial. On Thursday, August 13, 2015 at 8:37:34 AM UTC, Weslley Carlos wrote: > > Good afternoon. > I'm using

Collection::reduce versus doing a foreach

2015-09-14 Thread Walter Vos
Hi! I'm having trouble wrapping my head around Collection::reduce. Actually, it feels like I understand how it's supposed to work, but in reality it seems to work differently. I have a collection of entities, from which I'm trying to concat a number of string, based on another array (could

Notification same like facebook with using cakephp

2015-09-14 Thread HIREN DHOKIYA
Hello sir, I am new in cakephp and i want implement the notification same like facebook in my current website. we have designed database for notification info, and we want to fetch the data in every some second without any affect of webpage. any one who can help me for implement this? --

3.1-rc1 utf-8 special chars problem

2015-09-14 Thread Salines
During the migration from 2.6 to 3.1 may encounter problems with the display of special characters in the Croatian language, the content is taken from the database. Content is stored in a database via CakePHP 2.x applications, and can be displayed properly. but when I connect a new

Custom routes preventing modle loading

2015-09-14 Thread shetlandranger
Hi, I have a controller (Stops) that is accessed through a custom route. When I try to access a page I get errors about calling functions on a boolean. It turns out that $this->Stops is set to false. To get my functions to work properly I have to add $this->loadModel("Stops"); to my functions,

Table's save() fails, where to get the error message? (other than validation errors)

2015-09-14 Thread Ernesto Borio
I can't find in the documentation how to collect error messages (other than validation errors) for when a table's save() or delete() fail, how is it done? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message

component vs component's controller

2015-09-14 Thread rumble
Could you briefly explain what is the difference using components vs using controllers of the component? I cannot understand what should I do in order to use a function I created in the controller, which is a part of plugin. While I can access the component's functions I don't know how to

cakephp 3 - how to call controller form plugin

2015-09-14 Thread rumble
I have a controller: loadComponent('Hello.Hello'); } And Component: 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" group. To unsubscribe from this group and stop

Erro ao criar prefixo cakephp 3 (Rotas)

2015-09-14 Thread vinicius nicola mambrim
Boa tarde!! .. Estou tendo dificuldades em criar prefixos no cakephp 3, pretendo construir um sistema com área admin, manager e public, porém crio os prefixos pelo bake. "./cake bake all tabela_ex --prefix manager", ele gera o código normal, porém na hora de acessar da o seguinte erro

Re: CakePHP installation in XAMPP

2015-09-14 Thread rumble
1. Download the file with cake (or use composer if you have installed it) 2. Put your folder in place like httdocs or html (depends how it is shipped with XAMPP) 3. Start your webserver 4. Open a broswer and go to 127.0.0.1 or localhost 5. Select subfolder (if you didn't place the cake files in

create database within cakephp and fill it with some tables.

2015-09-14 Thread Michael Schrading
Hi together. I need to create a database for a user, which has logged in and fill it with some standard tables. How do I do this within cakephp in a controller action or in a extra helper class? Thank for any hint Michael -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on