Re: Cakephp 3.x patchEntity set "'new' => true" to entity in edit function

2016-04-25 Thread heavyKevy
Thanks for the update, I am glad to hear that it is working for you. It seems to me that in order for the system to know which record is being updated, that all of the ids should need to be supplied for every record that is being saved in a transaction. If it is saving a record for which you di

Re: Cakephp 3.x patchEntity set "'new' => true" to entity in edit function

2016-04-25 Thread Paulo Terra
Hi Kevin, It worked perfectly!! I just would lime to know why only Addresses need the id. But if you dont know, thats OK. You already relped me!! Thanks a lot! Best regards, Paulo Terra -- Sign up for our Newsletter for updates. http://cakephp.org/newsletter/signup We will soon be closing

CakePHP 3: Cookie component and test cases

2016-04-22 Thread Narendra Vaghela
Hello, I am building a plugin for learning purpose. In my plugin, I use CookieComponent to store data in cookie. My test cases are failing due to CookieComponent. Here is my code: https://github.com/narendravaghela/cakephp-remember-me Here is travis build log: https://travis-ci.org/narendravagh

CakePHP 3: Plugin and test cases + Travis build is failing

2016-04-22 Thread Narendra Vaghela
Hello, I am learning the plugin development and making it available via composer. Here is my code: https://github.com/narendravaghela/cakephp-remember-me Here is Travis build: https://travis-ci.org/narendravaghela/cakephp-remember-me/jobs/124758432 All tests are getting passed on my local mach

Re: cakephp 3 modular programming

2016-04-20 Thread euromark
It's called plugins https://github.com/FriendsOfCake/awesome-cakephp etc Mark Am Mittwoch, 20. April 2016 18:26:27 UTC+2 schrieb Anurag Kumar: > > Is it possible to do modular programming with cakePHP 3. > > If yes please provide some example on it. > -- Sign up for our Ne

cakephp 3 modular programming

2016-04-20 Thread Anurag Kumar
Is it possible to do modular programming with cakePHP 3. If yes please provide some example on it. -- Sign up for our Newsletter for updates. http://cakephp.org/newsletter/signup We will soon be closing this Google Group. But don't worry, we have something better coming. Stay tuned f

Re: Cakephp 3.x patchEntity set "'new' => true" to entity in edit function

2016-04-20 Thread heavyKevy
I am not sure why the others appear to be working, I suggest that you test thoroughly to make sure they are doing as expected. It may be because of the many - to -one relationship though. Let me know how it goes. Regards, Kevin -- Sign up for our Newsletter for updates. http://cakephp.org/news

Re: Cakephp 3.x patchEntity set "'new' => true" to entity in edit function

2016-04-20 Thread Paulo Terra
Hi Kekin, it is very kind of you help this poor Cake novice. It have been hard programing days. Ok, if I have a hidden ID field of the Addresses I think it is going to work. But why do I have to put the Addresses ID and the other entities work without it? Here is the form: PS: Thanks again fo

Re: Cakephp 3.x patchEntity set "'new' => true" to entity in edit function

2016-04-19 Thread heavyKevy
Does your edit form have an input for the address_id? something like:"user.addresses.0.id" I see the id: (29) for the address in the debug output of the entity... If you need further help with it, you are going to need to show the edit form in order to figure out what may be missing. Hope th

Re: Cakephp 3.x patchEntity set "'new' => true" to entity in edit function

2016-04-19 Thread Paulo Terra
Hi heavyKevy, thank you for your answer! Ok, about your first advise, I simplified and its ok, but about the issue, that´s it, the problem is the missind ID. But I simlpy don´t know why all other entitys comes with the id and Addresses not! That is the problem. Do you know why? Thanks in advan

Cakephp 3.x patchEntity set "'new' => true" to entity in edit function

2016-04-18 Thread heavyKevy
First off you don't need to cotain users 3 times, Users.Addresses.Countries includes all 3 tables already. Secondly, if the address has the id, it should automatically detect that it is being edited, if the id is missing it will add the address. -- Sign up for our Newsletter for updates. http:

Cakephp 3.x patchEntity set "'new' => true" to entity in edit function

2016-04-17 Thread Paulo Terra
Hi, I am creating a user edit form consisting of five related entities as follows: Buyers belongsTo Users Genres belongsToMany Buyers Buyers belongsToMany Genres Users hasOne Buyers Users hasMany Addresses Addresses belongsTo Users Addresses belongsTo Countries Countries hasMany Addresses I crea

CakePHP 3 - ConnectionManager::config and persisting connection configuration.

2016-04-05 Thread Luuk Honings
Hi, I have a need to, in addition to the default DB connection (from app.php) , add another DB connection specific to the client. Ie every client ends up with 2 connections and depending on where data needs to be retrieved from, the app sets the defaultConnectionName() in the relevant Table obj

Re: Carregar endereço a partir do CEP no CakePHP 3 usando AJAX

2016-04-04 Thread Paulo Terra
gt; >>> Em sábado, 2 de abril de 2016, Paulo Terra escreveu: >>> >>>> Estou tentando carregar o endereço a partir do CEP informado pelo >>>> usuário. Apesar de encontrar várias pessoas perguntando por isso não >>>> encontro uma resposta que fun

Re: Carregar endereço a partir do CEP no CakePHP 3 usando AJAX

2016-04-04 Thread Diego Mendonça
. Apesar de encontrar várias pessoas perguntando por isso não >>> encontro uma resposta que funcione. Alguém já fez isso no CakePHP 3? >>> >>> -- >>> Sign up for our Newsletter for updates. >>> http://cakephp.org/newsletter/signup >>> >>

Re: Carregar endereço a partir do CEP no CakePHP 3 usando AJAX

2016-04-03 Thread Paulo Terra
o endereço a partir do CEP informado pelo >> usuário. Apesar de encontrar várias pessoas perguntando por isso não >> encontro uma resposta que funcione. Alguém já fez isso no CakePHP 3? >> >> -- >> Sign up for our Newsletter for updates. >> http://cakephp.or

Re: Carregar endereço a partir do CEP no CakePHP 3 usando AJAX

2016-04-03 Thread Paulo Terra
-04-02 18:09 GMT-03:00 Paulo Terra >: > >> Estou tentando carregar o endereço a partir do CEP informado pelo >> usuário. Apesar de encontrar várias pessoas perguntando por isso não >> encontro uma resposta que funcione. Alguém já fez isso no CakePHP 3? >> >> -- &g

Re: Carregar endereço a partir do CEP no CakePHP 3 usando AJAX

2016-04-02 Thread Nilson Pena
ém já fez isso no CakePHP 3? > > -- > Sign up for our Newsletter for updates. > http://cakephp.org/newsletter/signup > > We will soon be closing this Google Group. But don't worry, we have > something better coming. Stay tuned for an updated from the CakePHP Team &g

Re: Carregar endereço a partir do CEP no CakePHP 3 usando AJAX

2016-04-02 Thread Fabrício Muniz
Qual a dificuldade? 2016-04-02 18:09 GMT-03:00 Paulo Terra : > Estou tentando carregar o endereço a partir do CEP informado pelo usuário. > Apesar de encontrar várias pessoas perguntando por isso não encontro uma > resposta que funcione. Alguém já fez isso no CakePHP 3? > > -- &g

Carregar endereço a partir do CEP no CakePHP 3 usando AJAX

2016-04-02 Thread Paulo Terra
Estou tentando carregar o endereço a partir do CEP informado pelo usuário. Apesar de encontrar várias pessoas perguntando por isso não encontro uma resposta que funcione. Alguém já fez isso no CakePHP 3? -- Sign up for our Newsletter for updates. http://cakephp.org/newsletter/signup We will

Re: CakePHP 3 Role Authorization for controllers and methods

2016-03-27 Thread euromark
; > I'm a beginner CakePHP 3 developer. I learned fairly quick for my skill > level. > I'm currently working on a management system for a school, where there > will be a couple of roles that will only access specific controller > functions. (Student, Instructor, Supervis

CakePHP 3 Role Authorization for controllers and methods

2016-03-27 Thread LSRX4EVER
Hello Everyone, I'm a beginner CakePHP 3 developer. I learned fairly quick for my skill level. I'm currently working on a management system for a school, where there will be a couple of roles that will only access specific controller functions. (Student, Instructor, Supervisor, Adm

Re: CakePHP 3 + MSSQL = slow query

2016-03-25 Thread heavyKevy
Is there any reason you are not paging it and fetching only 20, or 50 or 100 records at a time? That would significantly speed things up for you... Regards, --Kevin -- Sign up for our Newsletter for updates. http://cakephp.org/newsletter/signup We will soon be closing this Google Group. But do

CakePHP 3 + MSSQL = slow query

2016-03-24 Thread Enrico Lorenzoni
hello everyone, this is my situation. MSSQL server with query on a single table; timer says 4.47s, SQL Log says 1375 rows in 110ms. Time spent in "controller action" is 3600ms and I further tried to inspect the controller code, printing elapsed microseconds: it seems like the assignment of the

Re: What is the meaning of this error in cakephp 3?

2016-03-14 Thread Clement Crownrise
mrt. 2016 om 12:43 heeft Clement Crownrise < > clementcrownr...@gmail.com> het volgende geschreven: > > Thanks All, the error has been fixed. > > > > On Saturday, March 12, 2016 at 10:30:25 AM UTC+1, Clement Crownrise wrote: >> >> Hello, I am doing the blog tu

Re: What is the meaning of this error in cakephp 3?

2016-03-14 Thread Willem Schwarte
So what was the problem? > Op 14 mrt. 2016 om 12:43 heeft Clement Crownrise > het volgende geschreven: > > Thanks All, the error has been fixed. > > > >> On Saturday, March 12, 2016 at 10:30:25 AM UTC+1, Clement Crownrise wrote: >> Hello, I am doing the blog

Cakephp 3 Application Development Book

2016-03-14 Thread Clement Crownrise
Does anyone have a book on cakephp 3 ? I mean a book that explains practical application development with cake 3. Your help would be appreciated. -- Sign up for our Newsletter for updates. http://cakephp.org/newsletter/signup We will soon be closing this Google Group. But don't worr

Re: What is the meaning of this error in cakephp 3?

2016-03-14 Thread Clement Crownrise
Thanks All, the error has been fixed. On Saturday, March 12, 2016 at 10:30:25 AM UTC+1, Clement Crownrise wrote: > > Hello, I am doing the blog tutorial in cakephp 3, but I got this notice at > the top of my page, please does anyone know the meaning and how to solve it? > >

Re: What is the meaning of this error in cakephp 3?

2016-03-13 Thread Clement Crownrise
u need to have the same method signature as the one >>> you are overriding. Thus: >>> >>> public function beforeFilter(Event $event) >>> { >>> return null; >>> } >>> >>> >>> you forgot the parameter. >>> >>>

Re: What is the meaning of this error in cakephp 3?

2016-03-13 Thread Matías Croce
od signature as the one you are overriding. Thus: public function beforeFilter(Event $event) { return null; } you forgot the parameter. Willem On 12 Mar 2016, at 10:30, Clement Crownrise mailto:clementcrownr...@gmail.com>> wrote: Hello, I am doing the b

Re: What is the meaning of this error in cakephp 3?

2016-03-13 Thread Willem Schwarte
t;> Just as it says. You need to have the same method signature as the one you >>> are overriding. Thus: >>> >>> public function beforeFilter(Event $event) >>> { >>> return null; >>> } >>> >>> you forgot the parameter. >

Re: What is the meaning of this error in cakephp 3?

2016-03-12 Thread heavyKevy
;> >> >> you forgot the parameter. >> >> >> Willem >> >> >> >> On 12 Mar 2016, at 10:30, Clement Crownrise > > wrote: >> >> Hello, I am doing the blog tutorial in cakephp 3, but I got this notice >> at the top of my pa

Re: What is the meaning of this error in cakephp 3?

2016-03-12 Thread Clement Crownrise
llem > > > > On 12 Mar 2016, at 10:30, Clement Crownrise > wrote: > > Hello, I am doing the blog tutorial in cakephp 3, but I got this notice at > the top of my page, please does anyone know the meaning and how to solve it? > > *Strict* (2048): Declaration of App\Cont

Re: What is the meaning of this error in cakephp 3?

2016-03-12 Thread Willem Schwarte
ing the blog tutorial in cakephp 3, but I got this notice at > the top of my page, please does anyone know the meaning and how to solve it? > > Strict (2048) <>: Declaration of App\Controller\AppController::beforefilter() > should be compatible with > Cake\Controller\Controller::bef

What is the meaning of this error in cakephp 3?

2016-03-12 Thread Clement Crownrise
Hello, I am doing the blog tutorial in cakephp 3, but I got this notice at the top of my page, please does anyone know the meaning and how to solve it? *Strict* (2048): Declaration of App\Controller\AppController::beforefilter() should be compatible with Cake\Controller\Controller

Re: API Design using CakePHP 3

2016-03-10 Thread Florian Krämer
1) I would *not *avoid that. We use the protection and have no problem at all with it. 2) Create a filter and use it in beforeSave()? Create data objects like the entities in Cake and filter the date there before sending? 3) No idea what you're talking about, you basically say "It's not working

API Design using CakePHP 3

2016-03-09 Thread Rafael Queiroz
Hi guys, I make a *API* using *CakePHP 3.2.x*, so, and now have a angular app requesting *API*. My question is about association data, e.g. i have *Series* *Model* and send the request: *api.com/series/add * { "id": 5, "title": "New serie", "hidden": false,

CakePHP 3.x CMS?

2016-03-01 Thread Dakota
Croogo is currently being upgraded. Would be great if you could help out :) -- Sign up for our Newsletter for updates. http://cakephp.org/newsletter/signup We will soon be closing this Google Group. But don't worry, we have something better coming. Stay tuned for an updated from the CakePHP Tea

CakePHP 3.x CMS?

2016-03-01 Thread calzone
Are there any current CMS packages out there that are built on CakePHP 3.x? Seems like all the Cake CMS I can find are abandoned or old and almost abandoned projects. I remember trying one last year and find it wouldn't even set up correctly out of the box. The point of a CMS is to not

Re: Cakephp 3.x How to create dynamic subdomain?

2016-02-23 Thread Dr. Tarique Sani
What is the error? The *.example.com should point to the same webroot as your www.example.com and example.com Do all the magic in your code On Tue, Feb 16, 2016 at 10:44 AM, Rajaram indira < rajaramindiras...@gmail.com> wrote: > Hi, > > I'm doing dynamic sub domain

Re: CakePHP 3.x and Redis as one of the main Database

2016-02-21 Thread euromark
to use Redis > not as Cache but as a main Database with CakePHP 3.x. > > I have found a Plugin for Cake 2, but it seems to be incompatible with > CakePHP 3.x (https://github.com/Oefenweb/cakephp-redis). > > Does anyone has a tipp? > > Thanks, Cls > -- We will soon be clo

CakePHP 3.x and Redis as one of the main Database

2016-02-21 Thread web tools
Hello, I am new to CakePHP and I am wondering which is the best way to use Redis not as Cache but as a main Database with CakePHP 3.x. I have found a Plugin for Cake 2, but it seems to be incompatible with CakePHP 3.x (https://github.com/Oefenweb/cakephp-redis). Does anyone has a tipp

Cakephp 3.x How to create dynamic subdomain?

2016-02-17 Thread Rajaram indira
Hi, I'm doing dynamic sub domain in cakephp 3.x like, - [].example.com In sub domain part should be dynamic. I was tried wildcard method. But I can't get exact solution for my problem. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Tw

Re: Sorting paginated data by string length in cakephp 3.x

2016-02-09 Thread euromark
tor->sort('title') > > How to do that in cakephp 3? > -- 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" group. To unsubscri

Sorting paginated data by string length in cakephp 3.x

2016-02-07 Thread jakubplus
Hi, I'd like to use Paginator sorting function, but for sorting by string length like mysql LENGTH(title) $this->Paginator->sort('title') How to do that in cakephp 3? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP -

Re: CakePHP 3 - Catch invalidargument email -> to exception

2016-02-07 Thread Artur Mamedov
Have the same problem with Carbon::createFromFormat() try { $this->app_from = $date->createFromFormat('Y-m-d', $this->request->cookie('app_from'));//$date->subDays(7);//date('Y-m-d', strtotime("-7 days")); $this->app_to = $date->createFromFormat('Y-m-d', $this->request->cookie('app_to'));

CakePHP 3.x - Table display name

2016-02-07 Thread Colin Conway
Hi, I know this must be really easy, but I've Googled it to death and found nothing. The documentation doesn't appear to have anything about it either. I'm learning CakePHP, using 3.x and I just want to change the name that is displayed for a database table. The table is called 'stats_branch_da

Anyone have done cakephp 3.x integration with angularjs 1.4.x, please help for the setup and directory structure

2016-02-07 Thread Ashish Raj
I have to implement angularjs 1.4.x with cakephp 3.x for a fully customise shopping cart. I am totally new in cakephp 3.x (studying from last one week ) and angularjs 1.4.x I am thinking what should be the directory structure for merging cakephp 3.x to angularjs 1.4.x for a shopping website

Help me abount transaction (begin, commit, rollback) in cakephp 3 version

2016-01-29 Thread Somsubhra Saha
Hi, I am coded from ref link - http://book.cakephp.org/3.0/en/orm/database-basics.html#using-transactions. But my code is running perfectly. But data is not updated or inserted into database. Below is my code (controller) - $conn = ConnectionManager::get('default'); $conn->begin(); try {

cakephp 3.0 and snelg/cakephp-3-oracle [ Error: [Cake\Database\Exception] Cannot describe s_i18_n. It has 0 columns.]

2016-01-29 Thread Mbhd90
When i try to perform bake command i receive this exception Exception: Cannot describe s_i18_n. It has 0 columns. in [/var/www/html/3.0/app-master/vendor/cakephp/cakephp/src/Database/Schema/Collection.php, line 98] 2016-01-21 15:07:24 Error: [Cake\Database\Exception] Cannot describe s_i18_n. I

create an optgroup with cakephp 3.x

2016-01-29 Thread V Ian
i'm novice in cakephp, and i'm having dificulties in something like this: starting with this sql query: select service_group.name as service_group_name, service_group.id as service_group_id, campaign.name as campaign_name, campaign.id as campaign_id from group_service join group_serv

Cakephp 3 SOAPclient

2016-01-29 Thread Justin Time
array('field'=>'customer', 'direction'=>'asc'); $arrResult = $client->getCustomers($strAPIKey, $arrFilter,$arrSort,10,0); Is it posible with the Cakephp 3 Http Client? Thx for help :) -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on

Re: How To / Example of OO Inheritance for CakePHP 3

2016-01-26 Thread Willem
I have done the tutorials. I posted because it is not totally clear. Reading the docs has let me to believe there should be a model for every database table. but if i would do that i would end up with a model for Customer and a model for Manager both containing the , more or less, same fields a

Re: How To / Example of OO Inheritance for CakePHP 3

2016-01-26 Thread Florian Krämer
Do the official Tutorials, they'll teach you how to work with CakePHP. http://book.cakephp.org/3.0/en/tutorials-and-examples.html The level of abstraction in CakePHP is higher than what you describe, you don't implement these methods on model or table objects, entities

How To / Example of OO Inheritance for CakePHP 3

2016-01-25 Thread Willem
how would one create a CakePHP3 app and what database tabels would i need to create an app that uses inheritance. for example fictional setup: [Person] <--- [Customer] [Person]<--- [Manager] All Persons have "name". Customer has "order_amount". Manager has "sales_total". Person has a method

Beforefinder call function is not work in cakephp 3.x

2016-01-19 Thread Karthik Keyan
Hi, I have used beforefinder call function into the model file public function beforeFind(Query $query){ return $query->where('User.status'=>0)} We don't need that record when the user status is '0',How to write the common query in table file How to use 'beforeFind' call back func

cakephp 3 - return object data from a function?

2016-01-12 Thread heohni
Hi, I am very new to cake 3 and get stuck within the first steps :-) I am calling a soap api to validate IBAN numbers. $this->client = $this->soap(); $params = array('iban' => $iban); $result = $this->client->validateIban($params); it works fine, I can debug() the results and get the right data

Re: Cakephp 3 tag plugin

2016-01-08 Thread Alysson Gonçalves de Azevedo
Maybe this one http://plugins.cakephp.org/p/504-tags Alysson Gonçalves de Azevedo *Assim como Einstein observou que o tempo não era absoluto, mas algo que dependia do movimento de um observador no espaço, e que o espaço não era absoluto, mas dependia de um observador no tempo, hoje sabemos que

Cakephp 3 tag plugin

2016-01-08 Thread lorenzoshake
Is there a complete plugin for tags in cake3? i'm watching https://github.com/UseMuffin/Tags but is not complete ( can't edit, can't filter, etc etc) -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you

CakePHP 3 - Catch invalidargument email -> to exception

2015-12-29 Thread Willem
How can we catch an invalid email exception? Cake throws and invalidargumentexception. Invalid email: "bassdsd.cs#adcdc.com"InvalidArgumentException This does not work, the catch is not reached: $toEmailAddress = "bassdsd.cs#adcdc.com"; $email = new Email('default'); try { $email->t

cakephp 3 Insert with Query Builder update Timestamp fields

2015-12-22 Thread Willem
Using the query builder to insert multiple rows of data the timestamp fields are not automatically updated, is this correct? so i changed my code a little to add the fields myself. Not sure if this is the best way or am i missing something $oQuery = $this->query(); > > if (($handle = fopen($t

Re: CakePHP 3 Shell arguments and options

2015-12-22 Thread euromark
See the existing core shells for details. They use it quite a bit. Tip: ConsoleOptionParser Mark Am Dienstag, 22. Dezember 2015 11:39:13 UTC+1 schrieb Martina Weinzettelova: > > Hello > > I cant find in docummentation how can i access passed argumet and options > in shell function. > > bin/cak

how to select special fields in query in cakephp 3

2015-12-22 Thread Amir Shabani
Hi chums :] I am very new on cakephp. I've asked this question in stackoverflow <http://stackoverflow.com/questions/34313080/how-to-select-special-fields-in-query-in-cakephp-3> , but nobody could not help. Well, I am here to help me. I need to join 3 tables (movies, comments, u

CakePHP 3 Shell arguments and options

2015-12-22 Thread Martina Weinzettelova
Hello I cant find in docummentation how can i access passed argumet and options in shell function. bin/cake myshell function --option value How can i read --option ??? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this

What is the best way to fin and use a template in cakephp 3

2015-12-22 Thread Romuald Franck
Hi to everyone, i'm new in cakephp and I have started with version 3. I want to build a beautifull app and because I'm not good in design, I would really like to use a free template or buy one that I can use within cakephp. So, I would really appreciate all your proposition and ideas or best pr

Re: CakePHP 3 - SqlServer - CentOS (Linux)

2015-12-03 Thread manoel neto
Good afternoon Adaro , Had tried the SyBase and UnixODBC , the cake showed me that the class had not been met. As there was urgency in the course of the project changed the architecture for Windows Server 2008 using IIS , was enough to install PDO sqlsrv ( exclusively for Windows ) that the c

Re: Retrieving data from blob data type - cakephp 3

2015-12-02 Thread Vivek Doshi
Try this : http://stackoverflow.com/questions/32275558/upload-files-using-cakephp-3-and-store-it-in-a-blob On Sunday, May 10, 2015 at 8:46:54 AM UTC+5:30, Ryan de Haast wrote: > > Hi All > > Can anybody explain to me how to get the data from column type that is a > blob. when

Re: CakePHP 3 - SqlServer - CentOS (Linux)

2015-12-01 Thread Adaro2000
the following scenario : > > -> CentOS v6.7 > > -> CakePHP 3 > > -> SQLServer 2008 R2 > > > > Documentation Cake directs the PDO sqlsrv , however this is only available > for Windows. > > > Thank´s, > > > Manoel Neto > -- Like Us on FaceB

Re: Cakephp 3 and custom datasources

2015-11-27 Thread José Lorenzo
Check out this project: https://github.com/UseMuffin/Webservice On Tuesday, November 24, 2015 at 11:43:08 PM UTC+1, Ricardo Aragón wrote: > > Hi Martin, > You could learn about the custom datasources in CakePHP 3? I need to get > information about this. > > Regards > > E

Re: Cakephp 3 and custom datasources

2015-11-24 Thread Ricardo Aragón
Hi Martin, You could learn about the custom datasources in CakePHP 3? I need to get information about this. Regards El domingo, 31 de mayo de 2015, 18:39:15 (UTC-3), Martin escribió: > > Hi, > > For my current project I need to load data from different locations via > API'

Re: Loading external vendor's in CakePHP 3

2015-11-24 Thread Mani
Works fine in Cake2 using require_once however falls over in Cake3. How did you get it to work. My code is as follows: require_once(ROOT.'/vendor/twilio/sdk/Services/Twilio.php'); $this->client = new Services_Twilio(Configure::read('Twilio.sid'), Configure::read('Twilio.token')); I get Class n

CakePhp 3 Xml and Basic Auth

2015-11-23 Thread kalbarsky
Hi guys, I have a weird problem when trying to acces an XML file with Basic Authentication enable. When i try to acces the url to retrieve JSON, all work as intended: browser ask username & password. Successfull auth give me the json, auth failed = json with status 401. Same Url but in XML for

Re: CakePHP 3 Auth

2015-11-20 Thread José Lorenzo
ponent::$sessionKey > = 'Administrator'* for point 2. > I don't can use similar solution in CakePHP 3, the CakePHP 3, any ideas ? > Thanks. > > -- > Regards, > > Rafael F. Queiroz > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twi

CakePHP 3 - SqlServer - CentOS (Linux)

2015-11-20 Thread manoel neto
Good day, I'm sorry for the English. I searched a lot and have not found a solution , I would like some help on how to use SQLServer in Cake running on CentOS 6 . I have the following scenario : -> CentOS v6.7 -> CakePHP 3 -> SQLServer 2008 R2 Documentation Cake d

CakePHP 3 Auth

2015-11-11 Thread Rafael Queiroz
problem is *conflict in Session*, in* CakePHP 2.x*, i'm using *AuthComponent::$sessionKey = 'Administrator'* for point 2. I don't can use similar solution in CakePHP 3, the CakePHP 3, any ideas ? Thanks. -- Regards, Rafael F. Queiroz -- Like Us on FaceBook https://www.facebook.

Cakephp 3 Transaction management on multiple model operation

2015-11-06 Thread Ahammad Karim
$saveStatus = 1; $conn = ConnectionManager::get('default'); $conn->begin(); $tableArticles = TableRegistry::get('Articles'); $tableUsers = TableRegistry::get('Users'); $articlesEntity = $tableArticles->newEntities($categoriesArray); foreach ($articlesEntity as $entity) { if(!$tableA

Re: Avoid converting date/datetime fields to Cake/Time instances with CakePHP 3

2015-10-26 Thread glk
Jose, It turns out that I AM MISTAKEN... The input field I was looking at was defined as a "datetime". However... The real issue is that the datetime input field is populated by cake always as -mm-dd hh:mm:ss If it is a date object, it is yyy-mm-dd. If I am in locale en-US and have add

Re: Avoid converting date/datetime fields to Cake/Time instances with CakePHP 3

2015-10-26 Thread José Lorenzo
It is an unimplemented feature... Someone need to solve that issue of showing time in a date column On Friday, October 23, 2015 at 9:56:34 PM UTC+2, glk wrote: > > @JoseLorenzo > > The reason is that the cake $this->Form->input('date_field') always > generates 3 input fields. If the input uses

Re: CakePHP 3.x - Schema, Mysql and LONGTEXT

2015-10-26 Thread OJ Tibi - @ojtibi
Re-opening thread. Migration plugins for both versions 2 and 3 should support MEDIUMTEXT and LONGTEXT. The fact is, the developer should be the one responsible in determining if their data is compatible with their desired database engine, which means it shouldn't be a problem that these fields

Re: Avoid converting date/datetime fields to Cake/Time instances with CakePHP 3

2015-10-23 Thread glk
@JoseLorenzo The reason is that the cake $this->Form->input('date_field') always generates 3 input fields. If the input uses type=text, the field is populated with mm/dd/, hh:mm:ss And all we should have is mm/dd/... of course it should also be LOCALE format. -- Like Us on FaceBook

Re: cakephp 3- how to style flash error messages?

2015-10-20 Thread Raul Magdalena Catala
thats is, thanks Jose El dilluns, 19 octubre de 2015 22:32:45 UTC+2, joserafael va escriure: > > Go to src/Template/Element/Flash/error.ctp > > And edit this file. Must be like this: > > > > > El domingo, 18 de octubre de 2015, 16:27:10 (UTC-4:30), Raul Magdalena > Catala escribió: >> >> hello,

Re: cakephp 3- how to style flash error messages?

2015-10-19 Thread joserafael
Go to src/Template/Element/Flash/error.ctp And edit this file. Must be like this: El domingo, 18 de octubre de 2015, 16:27:10 (UTC-4:30), Raul Magdalena Catala escribió: > > hello, > > i've tried with this but no exit > > $this->Flash->error(__('The magazine could not be saved. Please, try >

CakePHP 3 how to limit number on items in contain per item not globally

2015-10-19 Thread Iron Bone
I have articles connected with categories. I would like to get at most two articles for each category. There is many to one connection. So I use the following. $query = $categories->find()->contain([ 'Articles' => [ 'queryBuilder' => function ($q) { return $q->limit(2);

Re: cakephp 3- how to style flash error messages?

2015-10-19 Thread Giorgio Barone
Try this: $this->Flash->error(__('The magazine could not be saved. Please, try again.'), ['class' => 'alert-danger']); You need to close before, the parenthesis of translation function __(). On Sunday, October 18, 2015 at 10:57:10 PM UTC+2, Raul Magdalena Catala wrote: > > hello, > > i've tried

cakephp 3- how to style flash error messages?

2015-10-18 Thread Raul Magdalena Catala
hello, i've tried with this but no exit $this->Flash->error(__('The magazine could not be saved. Please, try again.' ,['class' => 'alert-danger'])); there is any way? thanks -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You receive

Cakephp 3 How to update multiple row data in a single query

2015-10-14 Thread Karthik Keyan
Hi all, I have multiple rows in database. I need to collect all the rows based on certain condition and change the value of particular column by removing a word from the column's value. How it could be done with with cakePHP 3? -- Like Us on FaceBook https://www.facebook.com/CakePHP

Re: How can i load a model method in view file in cakephp 3

2015-10-14 Thread Marcelo Andrade
On Wed, Oct 14, 2015 at 9:23 AM, Zahidur Rahman wrote: > Hi Guys, > How can i load a model method in view file in cakephp 3. CakePHP is a MVC framework. So you can't do this. Pass the model data to the view via controller. Regards. -- MARCELO F ANDRADE | Belem, Amazonia, Br

How can i load a model method in view file in cakephp 3

2015-10-14 Thread Zahidur Rahman
Hi Guys, How can i load a model method in view file in cakephp 3. Thanks Zahid -- 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" group. To u

CakePHP 3: How to save model and field name in associated table?

2015-10-13 Thread Salines
I need a hint. I have to develop a number of centralized models, which will be in relation to other models. Examples of such models are Timelines and Images, which secound have fields: id, model, // Model name, ex Users field, // field name, from where upload foreign_key, // User Id descript

Re: CakePHP 3 Auth with two tables (models)

2015-10-07 Thread John Andersen
Make both your admins and applicants users, ie. in the users table. Use an additional table to keep information about users (applicants). Assign roles to your users, to indicate whether they are admins or applications. This can be done by having the role defined as a field in the users table or

Unable to change default theme of cakephp 3.x to twitter like theme using Bake

2015-10-06 Thread Krunal Dave
hi, how can i change my default cake php 3.x theme to some nice looking theme like twitter look theme that bootstrap provided.. downloaded some theme and plugins using composer form terminal.. but very confused about where to put plugin folder and how to Bake code using : /bin/cake bake all so t

CakePHP 3 Auth with two tables (models)

2015-10-06 Thread Hagler
I have two tables in my database, one for admins (named users) and the other one for normal users, (named applicants). Both tables use email and password for authentication, but applicants' table has more fields, that's why I need the separation. What I want to do, is create two login pages, on

CakePHP 3: Override Modell::save()

2015-10-02 Thread Salines
Hello, I need to store multiple rows of the same model, in CakePHP 2x we had saveMany() model, but since version 3, the method is omitted. How to save data? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message be

How to load SQL views in Fixtures for unit tests in Cakephp 3?

2015-10-02 Thread Gabriel Lau
My application has some sql views to perform complex queries in the database and be better able to filter the results based on these values. One problem I encountered when running the unit tests is that Cake do not import sql views, just tables, breaking the application tests. *- How can I sol

Re: Encyption/Decryption of Form Fields in CakePHP 3

2015-09-30 Thread Aday Talavera
You can try to use my CipherBehavior plugin. https://github.com/adayth/cakephp-cipher-behavior El domingo, 23 de agosto de 2015, 22:13:34 (UTC+1), Alexander Slotty escribió: > > Hello, > > I was hoping someone could help with my task. It should be "relatively" > simple: I want to have some for

cakephp 3 validation

2015-09-25 Thread Dhingani Yatin
Hello, How can i set validation without page refresh in cakephp 3 -- 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" group. To unsubscribe

Re: Encyption/Decryption of Form Fields in CakePHP 3

2015-09-22 Thread Dakota
The answer on that stackoverflow page is for CakePHP 3. Why would you be writing your new app in version 2.x? To answer your question, if you are getting a Resource back then you will need to read the contents of that Resource using stream_get_contents() <http://php.net/stream_get_conte

Re: Encyption/Decryption of Form Fields in CakePHP 3

2015-09-22 Thread Dakota
In CakePHP 3, I would make use of a custom data type. See http://book.cakephp.org/3.0/en/orm/database-basics.html#adding-custom-types for more information and an example. On Sunday, 23 August 2015 23:13:34 UTC+2, Alexander Slotty wrote: > > Hello, > > I was hoping someone could

Re: Encyption/Decryption of Form Fields in CakePHP 3

2015-09-22 Thread Paweł B
Did you solve this problem? It tried http://stackoverflow.com/questions/32260229/encyption-decryption-of-form-fields-in-cakephp-3 but still no luck (return Resource Id #???). New app will be in ver 2.x or in other framework... W dniu niedziela, 23 sierpnia 2015 23:13:34 UTC+2 użytkownik

Re: how to use association with TableRegistry in cakephp 3

2015-09-19 Thread HUNTSVILLE PR
check your "hasOne" and "belongTo" association in the models On Sunday, August 23, 2015 at 4:13:34 PM UTC-5, Surjit Sidhu wrote: > > As you can see in 1st Business\Model\Entity\Business Object there is > category association present, when called in BusinessController, But It's > missing, when ca

  1   2   3   4   5   >