Re: CakePHP 1.3.8 - Editing user info causes 404

2016-05-03 Thread Steven Ybarra
Do you have validation when adding a user? If so, it's probably not adding on an update because it's checking for the validation. Turn off validation on the update and see if it works. i'm not sure the cake1.8 way, but it's something like $this->MODEL->save($data, $params =>

Re: CakePHP 1.3.8 - Editing user info causes 404

2016-05-03 Thread Josh R
Hi Reuben, Thanks for your quick response yesterday. The URL I am getting is with the user ID. For example: When I am logged in as an administrator and go view all users (/admin/admin/view_all_users) and I click to edit user ID="305880" ( /admin/admin/user_edit/305880), after making changes

Re: CakePHP Forum launched!

2016-05-03 Thread euromark
This forum should be closed and switched to read only. The other one should now be the only one in use. See the PRs to change the links on the CakePHP sites and documentation etc. Mark Am Dienstag, 3. Mai 2016 03:01:20 UTC+2 schrieb Reuben: > > Maybe this post should get stickied / pinned, so

Re: CakePHP 1.3.8 - Editing user info causes 404

2016-05-02 Thread Reuben
Hi Josh What URL is actually getting posted when the form is submitted? My only concern is that $this->params["action"] is not populated with the value you are expecting. I'm guessing that you are expecting the values of that variable to be either add, edit, create or update. What are

Re: CakePHP Forum launched!

2016-05-02 Thread Reuben
Maybe this post should get stickied / pinned, so people know all the action should now be at discourse.cakephp.org. Regards Reuben Helms On Tuesday, 26 April 2016 03:02:49 UTC+10, Megan Lalk wrote: > > CakePHP Forum launched! > > *We asked you what you wanted and the feedback was clear! Sign up

CakePHP 1.3.8 - Editing user info causes 404

2016-05-02 Thread Josh R
Hello Group, I am new to this group and CakePHP. I am dealing with a site that is build using CakePHP version 1.3.8. When adding a new user, everything works fine. When modifying a user (either through admin's account or through the user's account) the save function keeps the URL of the page

Rest ful api in cake php

2016-04-29 Thread krishna upreti
Hii I am a beginner in cake php 3.x my task is that write login and registration web services .i am also read the documentation of cakephp 3.x but not success.so please help me to achieve this task means what are the steps by which i can follow to achieve this task -- Sign up for our

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

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

CakePHP Forum launched!

2016-04-25 Thread Megan Lalk
CakePHP Forum launched! *We asked you what you wanted and the feedback was clear! Sign up here - **http://discourse.cakephp.org/* As you know, a CakePHP forum is a welcomed platform by many! - From today, you can be a part of the

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:

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

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 Newsletter for

CakeFest 2016 - Only 35 days to go!

2016-04-20 Thread Megan Lalk
With CakeFest 2016 just around the corner, you can't afford to miss out on this one-of-a-kind conference! Schedules now confirmed! With talks from Lorna Jane, Anna Filina, Quentin Adam, Mark Story, José Rodríguez. Get your tickets today! ‪#‎CakePHP‬

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 for an

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.

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

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

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

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.

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

Re: Vacancy for a CakePHP developer in London (Farringdon)

2016-04-14 Thread Dr. Tarique Sani
:D On Fri, Apr 8, 2016 at 1:18 PM, Jeremy Burns : Class Outfit < jeremybu...@classoutfit.com> wrote: > Thank you, but Delhi is a long commute. I don’t think that will work. This > is an on site position. > > On 8 Apr 2016, at 08:18, Kamal Deol wrote: > > > > On Fri, Apr 8,

How to update the view after submitting a form with angularjs?

2016-04-14 Thread Ryan Piper
I got a simple login page working very similar to how the blog example is set up. Except, the view is pretty much all entirely angularjs. Accordingly, the actual http function is: $http({ method : 'POST', url: '/users/login', data : $scope.formData }).success(function(data,

Save assosicated error cakephp 3.2

2016-04-11 Thread Phan Tuan Kiet
Hi all, I have problem in cakephp 3.x. I have 2 table Products and Images. When add new product, image of project saved. But When I edit product and remove one image from this product ==> click save. Images of this product not remove. Please, help me. Thanks. -- Sign up for our

Steam Gamer / Teamspeak Community - Cake2

2016-04-09 Thread Stephen Speakman
Hi Apologies if this is against group rules, I'm not sure it is. I run a gaming community and I set the site up in CakePHP 2, I am busy with work so I'd love to reach out to any gamer devs who'd like to check it out and possibly get involved to help us grow. No links provided at this point just

Re: Vacancy for a CakePHP developer in London (Farringdon)

2016-04-08 Thread Jeremy Burns : Class Outfit
Thank you, but Delhi is a long commute. I don’t think that will work. This is an on site position. > On 8 Apr 2016, at 08:18, Kamal Deol wrote: > > > > On Fri, Apr 8, 2016 at 8:31 AM, Jeremy Burns >

Vacancy for a CakePHP developer in London (Farringdon)

2016-04-07 Thread Jeremy Burns
An old client of mine is looking someone to take over and develop some code I built for them a year or so ago (CakePHP 2.6). They are only small, so it'd be more of a junior than a senior role (they might consider contract). The business is small but successful and is mainly based in Swindon,

In Cake 3 Is there a way to get find('list') to work when containing a related table?

2016-04-07 Thread heavyKevy
e.g. I have Countries and states each having an Id, abbreviation and name field. And State contaning the country_id. I would like to filter the states by country_abbreviation as follows: public function getListByCountryAbb($abb, $options = []){ $qry = $this->find('list',

Re: How can I get the user firstname displayed, instead of the User_id

2016-04-06 Thread Anja Liebermann
Hi Clement, if one User can make a lot of proposals you ahve a on to man relation here and your proposals table should contain the field user_id (indexed of course *g*) When you the set those relations properly in your models you will get the without further tweeking the user data with the

Redirect Question

2016-04-06 Thread MikeK
I have used $this->redirect($url, null, TRUE) for years in cakephp 1.2 and 1.3 when needing to cross a controller boundary. I recently for the first time tried to use redirect with the 3rd parm set to FALSE so it will return to the calling controller for further processing, however for some

Testing AJAX calls in CakePHP 2.8

2016-04-06 Thread Jaz
down votefavorite I'm working with Cake 2.8.1. I've installed PHPUnit and am writing unit tests for my app. However, I've run into a problem when trying to test AJAX calls. My application checks to make sure

Re: How can I get the user firstname displayed, instead of the User_id

2016-04-05 Thread Clement Crownrise
*How many tables do you have? *1 table for users, another for profile, another for proposal, another for comment, making 4 in total *And if a first name is a property of a user, why would you put it in the profiles table and not in the users? * Users table is tied to profile table, a profile

Re: How can I get the user firstname displayed, instead of the User_id

2016-04-05 Thread heavyKevy
How many tables do you have? And if a first name is a property of a user, why would you put it in the profiles table and not in the users? Which version of Cake are you using? If I understand you correctly, you are saying you have a user that has a profile and a user has many proposals. If that

Re: How can I get the user firstname displayed, instead of the User_id

2016-04-05 Thread Clement Crownrise
Thanks for your response, do you mean i should create a relationship between the proposal and the user table? will creating a proposal "belongs to user AND a User has many Proposal", fix this problem? As for containable behavior, please what do you mean ? Your quick response would be

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

Re: How can I get the user firstname displayed, instead of the User_id

2016-04-04 Thread Anja Liebermann
In your controller you have to fetch the user together with you proposal. To achieve this check the following: Check in Models your connection between proposal to user. Is it set in both directions? Check your find statement in the Controller Probably ProposalsController. To which depth do

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

2016-04-04 Thread Paulo Terra
Ok Diego, obrigado. Vou dar uma olhada. Abs! Em 04/04/2016 11:52, "Diego Mendonça" escreveu: > Eu utilizo esse aqui: https://viacep.com.br/ no próprio site tem um > tutorial de como fazer com JS > > -- > Diego Mendonça > meadiciona.com/diego182 > vamosfugir.net > > On Sun,

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

2016-04-04 Thread Diego Mendonça
Eu utilizo esse aqui: https://viacep.com.br/ no próprio site tem um tutorial de como fazer com JS -- Diego Mendonça meadiciona.com/diego182 vamosfugir.net On Sun, Apr 3, 2016 at 7:59 PM, Paulo Terra wrote: > Sim, mas existem outros webservices confiáveis também. > > Em

How can I get the user firstname displayed, instead of the User_id

2016-04-04 Thread Clement Crownrise
Note that this is my DB relationship, a user has one profile, and the proposal table has a User_id colomn, however the profile table is the one that contains the user's firstname. Can someone help me please? -- Sign up for our Newsletter for updates. http://cakephp.org/newsletter/signup We

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

2016-04-03 Thread Paulo Terra
Sim, mas existem outros webservices confiáveis também. Em sábado, 2 de abril de 2016 20:06:03 UTC-3, Nilson Pena escreveu: > > O correio disponibiliza algum webservice gratuito? > > Em sábado, 2 de abril de 2016, Paulo Terra > escreveu: > >> Estou tentando carregar o endereço

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

2016-04-03 Thread Paulo Terra
Oi Fabricio, obrigado pela resposta. Minha dificuldade maior é fazer a requisição Ajax. Apesar de ler a documentação e consultar alguns exemplos daqui do forum, nada funcionou. Em sábado, 2 de abril de 2016 19:43:43 UTC-3, Fabrício Muniz escreveu: > > Qual a dificuldade? > > 2016-04-02 18:09

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

2016-04-02 Thread Nilson Pena
O correio disponibiliza algum webservice gratuito? 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

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? > > --

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: Replacement Date Widget

2016-04-01 Thread euromark
Side-note: A lot of browsers still do not fully support that. Make sure that you at least provide a shim/fallback for those. Mark Am Donnerstag, 31. März 2016 02:32:39 UTC+2 schrieb Justin Harrison: > > I would like to replace the default date widget in CakePHP3 with the HTML5 > date tag. I

Re: Help me design the database structure

2016-04-01 Thread mike karthauser
information about google docs can be found in their support section. http://lmgtfy.com/?q=google+docs+version+control On Fri, Apr 1, 2016 at 1:55 PM, Clement Crownrise < clementcrownr...@gmail.com> wrote: > @Mike, does google has this type of feature? please do enlighten me the > more > > On

Re: Help me design the database structure

2016-04-01 Thread Clement Crownrise
@Mike, does google has this type of feature? please do enlighten me the more On Fri, Apr 1, 2016 at 1:51 PM, mike karthauser wrote: > probably best to look at something like google docs which already has this > functionality before you start building something from

Re: Help me design the database structure

2016-04-01 Thread mike karthauser
probably best to look at something like google docs which already has this functionality before you start building something from scratch to handle this. -- Sign up for our Newsletter for updates. http://cakephp.org/newsletter/signup We will soon be closing this Google Group. But don't worry,

Please accept my invitation to join Magento Meetup São Paulo by Webjump

2016-03-31 Thread Rodrigo Mourão
Magento Meetup São Paulo by Webjump Join Rodrigo Mourão and 32 other Mages in São Paulo. Be the first to hear about upcoming Meetups. Este grupo é dedicado a aprender sobre a plataforma de eCommerce Magento. Nossos objetivos são proporcionar a oportunidade de compartilhar conhecimento e

Replacement Date Widget

2016-03-30 Thread Justin Harrison
I would like to replace the default date widget in CakePHP3 with the HTML5 date tag. I would have thought that was quite straight forward but have hit a dead end each time. Does anyone have any example code that works here? Justin -- Sign up for our Newsletter for updates.

Re: Looking for an experienced CakePHP developer

2016-03-30 Thread Clement Crownrise
You can contact me, On Wednesday, March 23, 2016 at 8:27:53 PM UTC+1, majna wrote: > > Hi, > > I'm looking for an experienced CakePHP 2.x developer, freelance, remote, > long-term. > Please LMK if you know somebody. > > Thanks! > majna > -- Sign up for our Newsletter for updates.

Help me design the database structure

2016-03-30 Thread Clement Crownrise
Hello Everyone, I am working on an application, a document management/versioning system. The admin will need to add a user to a document before the user will be able to see the document, Furthermore, the admin will add a maximum number of 3 different reviewer to a particular document. How do

Re: [Cakephp 3.2.5] Cannot match provided foreignKey

2016-03-28 Thread 'Manuel Maurer' via CakePHP
Argh, what a stupid mistake Not sure why I forgot to add primary indices, but adding them did the trick. Not a very helpful error message though. Thanks for the help! -- Sign up for our Newsletter for updates. http://cakephp.org/newsletter/signup We will soon be closing this Google

Re: CakePHP 3 Role Authorization for controllers and methods

2016-03-27 Thread euromark
I use https://github.com/dereuromark/cakephp-tinyauth to exactly prevent this complicated if/switch statement logic from happening all over the controllers ;) One simple to configure ini file, done. Mark Am Sonntag, 27. März 2016 11:43:31 UTC+2 schrieb LSRX4EVER: > > Hello Everyone, > > I'm a

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, Administrator)

Re: [Cakephp 3.2.5] Cannot match provided foreignKey

2016-03-25 Thread heavyKevy
> > In addition to the other reply, i recommend that you use the bake utility > to bake your models so that all of the needed files are created along with > the correct syntax. > from a dos command prompt, cd to your application folder that contains your bin and src folders and issue the

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

Re: [Cakephp 3.2.5] Cannot match provided foreignKey

2016-03-25 Thread Gaurav Kumar
Hello Manuel, In your tables there is no PRIMARY KEY defined. So, your tables should look like this CREATE TABLE `articles` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `title` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `user_id` bigint(20) unsigned NOT NULL, PRIMARY KEY

Re: [Cakephp 2.8.1] Multiple assosication to one model with habtm throws a notice

2016-03-24 Thread 'Steffen Reinig' via CakePHP
Hi, i checked your solution, but it occurs the same error. public $hasAndBelongsToMany = array ( 'Owners' => array ( 'className' => 'User', 'with' => 'PermissionOwner', ), 'Rights' => array (

[Cakephp 3.2.5] Cannot match provided foreignKey

2016-03-24 Thread 'Manuel Maurer' via CakePHP
Hello, I am trying to upgrade some of my applications from Cake 2 to 3. To get used to the new version I tried a few simple things and for some strange reason I cannot get Associations to run... In my mysql database I have two simple tables: CREATE TABLE `articles` ( `id` bigint(20)

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

Re: Looking for an experienced CakePHP developer

2016-03-23 Thread 'zhaff' via CakePHP
Hi, I have sent you an email. Please find my CakePHP 2.x works here http://neptunescripts.com Best regards, Zhaff On Thursday, March 24, 2016 at 3:27:53 AM UTC+8, majna wrote: > > Hi, > > I'm looking for an experienced CakePHP 2.x developer, freelance, remote, > long-term. > Please LMK if you

Re: Looking for an experienced CakePHP developer

2016-03-23 Thread Fabian Olmos
Hi, I can help you El 23/3/2016 16:28, "majna" escribió: > Hi, > > I'm looking for an experienced CakePHP 2.x developer, freelance, remote, > long-term. > Please LMK if you know somebody. > > Thanks! > majna > > -- > Sign up for our Newsletter for updates. >

Re: Looking for an experienced CakePHP developer

2016-03-23 Thread abdessamad kassasse
maybe i can help U 2016-03-23 20:27 GMT+01:00 majna : > Hi, > > I'm looking for an experienced CakePHP 2.x developer, freelance, remote, > long-term. > Please LMK if you know somebody. > > Thanks! > majna > > -- > Sign up for our Newsletter for updates. >

Looking for an experienced CakePHP developer

2016-03-23 Thread majna
Hi, I'm looking for an experienced CakePHP 2.x developer, freelance, remote, long-term. Please LMK if you know somebody. Thanks! majna -- 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

Re: php requirements for 3.X

2016-03-22 Thread Andras Kende
Hello Mike, 5.5.31 is greater than 5.5.5.9 so it will work fine. http://book.cakephp.org/3.0/en/installation.html#requirements • PHP 5.5.9 or greater (including PHP 7). Andras > On Mar 22, 2016, at 5:55 PM, MikeK wrote: > > Thanks for your eloquent reply

Re: php requirements for 3.X

2016-03-22 Thread MikeK
Thanks for your eloquent reply - HOWEVER the latest stable release of php 5.5 is 5.5.31 - there is no 5.5.9 as the "requirements" call for. Does anyone really know what cakephp3 REALLY requires? -- Sign up for our Newsletter for updates. http://cakephp.org/newsletter/signup We will soon be

Cakephp Upload to a sub directory is giving issues

2016-03-21 Thread Clement Crownrise
Hi everyone, I just completed a cakephp project with cake 2.x locally , every thing works perfectly. Now, I moved it online and uploaded to a sub directory, http://doubleedgetechnologies.com.ng/unlimitedgrace/ but below is the error I am getting, I know is .htaccess issue, I have struggled

Mutliple validation not working

2016-03-19 Thread Marcus James
Hi, I am using cakephp version 3, i am trying to add multiple validation but its not working on password field $validator = new Validator(); $validator ->requirePresence('email', 'create') ->notEmpty('email',['message'=>__('Please enter email address.')])

Re: How to set a variable and use everywhere?

2016-03-19 Thread Gaurav Kumar
1. If you need to use that variable in controllers then you can set it in the beforeFilter and if you need to access the variable in views then beforeRender both you have to do in AppController. 2. Please follow this http://book.cakephp.org/3.0/en/views.html On Thursday, March 17, 2016 at

php requirements for 3.X

2016-03-19 Thread MikeK
Am migrating to 3.2 from cakephp 2.x, but my host only offers php 5.4 - I saw the install requirements want 5.5.9 Should I find another host or will 3.2 operate OK on 5.4? Thanks in advance and sorry if this is a dup - could not find an answer by search. -- Sign up for our Newsletter for

How to set a variable and use everywhere?

2016-03-18 Thread Attachai Saorangtoi
*1. How to set a variable and use everywhere?* *2.How to send a variable to Layout and Element?* -- 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

Re: php requirements for 3.X

2016-03-18 Thread euromark
The requirement *is* a requirement. Am Freitag, 18. März 2016 14:32:03 UTC+1 schrieb MikeK: > > Am migrating to 3.2 from cakephp 2.x, but my host only offers php 5.4 - I > saw the install requirements want 5.5.9 > > Should I find another host or will 3.2 operate OK on 5.4? > > Thanks in advance

Re: Storing encrypted value using getter/setter not working. Stored in plain text.

2016-03-16 Thread Willem
Eventually i changed it to a varbinary(65000) column and it started to work. In Cakephp 2 it worked with a varchar column. now it needs to be binary in 3 and have enough space. On Wednesday, March 16, 2016 at 10:19:38 AM UTC+1, heavyKevy wrote: > > I hate to state the obvious, but did you

Re: Storing encrypted value using getter/setter not working. Stored in plain text.

2016-03-16 Thread heavyKevy
I hate to state the obvious, but did you verify that the field size was large enough to store the encrypted value? I had a similar issue with hashing a password, the field wasn't large enough and the value was saved but cut off so that the password never matched. Maybe try it with the max

Re: Storing encrypted value using getter/setter not working. Stored in plain text.

2016-03-16 Thread Willem Schwarte
I have already tried to change it to text. This had the same effect. I also cleared the caches/orm cAche when intested this. > Op 16 mrt. 2016 om 00:12 heeft Christian Quispe > het volgende geschreven: > > Cambia tu field de tu base de datos a text, es posible

Re: Storing encrypted value using getter/setter not working. Stored in plain text.

2016-03-15 Thread Christian Quispe
Cambia tu field de tu base de datos a text, es posible que tu cadena codificada no se guarde completamente. Enviado con MailTrack Saludos Christian Quispe *Geek and Developer* *Miembro: * *GDG Lima (Google

Re: Storing encrypted value using getter/setter not working. Stored in plain text.

2016-03-15 Thread Willem
*saving to the database cuts off the encrypted data. varchar(255) and text fields both have this issue.. * *is this a bug in CakePHP* -- 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

Re: Storing encrypted value using getter/setter not working. Stored in plain text.

2016-03-15 Thread Willem
When I try as follows, the value gets stored encryted, but I cannot read it as the getDecryptedUsername function returns false at the decrypt line: protected function _setUsername($username) { $key = 'wt1U5MACWJFTXGenFoZoiLwQGrLgdbHA'; if(strlen($username) > 0) { $username =

Storing encrypted value using getter/setter not working. Stored in plain text.

2016-03-15 Thread Willem
I am trying to save a string value in the database. this value needs to be encrypted. I tried to create a _set and _get function to encrypt/decrypt this. here is the code: protected function _setUsername($username) { $key = 'wt1U5MACWJFTXGenFoZoiLwQGrLgdbHA'; if(strlen($username) > 0) {

Re: how enable identifier quoting???

2016-03-14 Thread euromark
What part of https://github.com/cakephp/app/blob/master/config/app.default.php#L237-L245 is not understandable? Mark Am Montag, 14. März 2016 04:34:29 UTC+1 schrieb Leonidas Savvides: > > *If you are using SQL keywords as table column names, you can enable > identifier quoting for your

Re: [Cakephp 2.8.1] Multiple assosication to one model with habtm throws a notice

2016-03-14 Thread John Andersen
Check your model names in the HABTM relationships. Looks like you have a mix of singular and plural. Enjoy, John On Monday, 14 March 2016 05:33:36 UTC+2, Steffen Reinig wrote: > > Hello Cakephp Fans, > > today i receive these error: > > Notice (8): Undefined index: User

Re: How to upgrade TLS version in cakePHP

2016-03-14 Thread Борислав Събев Borislav Sabev
This has nothing to do with CakePHP - it is a pure-PHP issue. Maybe the versions of PHP you use in the CLI (terminal) abd web are different? Check which is which and if different see how to configure the web-based one. It really depends on what OS you are running this. Any web application

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

2016-03-14 Thread Clement Crownrise
I forgot to add use Cake\Validation\Validator; to the ArticlesTable file, I also forgot to add public function beforefilter(Event $event){ To the AppController.php file. Thanks all On Mon, Mar 14, 2016 at 12:59 PM, Willem Schwarte wrote: > So what was the problem?

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 worry, we

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? > > *Strict* (2048):

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

2016-03-13 Thread Clement Crownrise
Thanks all, these lines of codes are already added to the UsersController.php but the error still persists namespace App\Controller; use Cake\Event\Event; use App\Controller\AppController; use Cake\Network\Exception\NotFoundException; class UsersController extends AppController{ public

how enable identifier quoting???

2016-03-13 Thread Leonidas Savvides
*If you are using SQL keywords as table column names, you can enable identifier quoting for your database connection in config/app.php.* How do this long (for long, lat) is prohibited as db name of field...? if change to long1 how apply the change in cakePHP? Also how * enable

Re: 3.0 Database Error : SQLSTATE[HY000] [14] unable to open database file

2016-03-13 Thread Leonidas Savvides
*If you are using SQL keywords as table column names, you can enable identifier quoting for your database connection in config/app.php.* how * enable identifier quoting???* On Monday, September 29, 2014 at 6:43:14 PM UTC+3, Bayezid Alam wrote: > > Dear All, > i am getting the subjected Error

How do I install the latest version(3.2.3) of Cakephp on shared hosting?

2016-03-13 Thread Prabhdeep Kaur
How do I install the latest version(3.2.3) of Cakephp on shared hosting? Can anyone help me to install latest version of Cakephp on shared hosting. The latest Cakephp folder

What are CakePHP 3.2 conventions for Town Directory Web-Site eg how name the tables and fields.... if have

2016-03-13 Thread Leonidas Savvides
Note:this is second post after approved by google group... first post - not see it - was prior approved... *What are CakePHP 3.2 conventions for Town Directory Web-Site eg how name the tables and fields if have * businesses id, user_id, cat_id, name, description, address, phone,

How to upgrade TLS version in cakePHP

2016-03-13 Thread Arun NV
down votefavorite I am using *cakePHP2.2.1* and *PHP5.3.10*.And i have updated *curl* and *libcurl* now curl is supporting *TLS 1.2* in *terminal*. But when i am trying to send *curl* request in

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

2016-03-13 Thread Matías Croce
Maybe you forgot the namespace. You should use: use Cake\Event\Event; or beforeFilter(Cake\Event\Event $event) On 12/03/16 15:46, Clement Crownrise wrote: Hi, Thanks Willem, I have tried it, but the error still persists , look at the code below public function beforefilter(Event

[Cakephp 2.8.1] Multiple assosication to one model with habtm throws a notice

2016-03-13 Thread 'Steffen Reinig' via CakePHP
Hello Cakephp Fans, today i receive these error: Notice (8): Undefined index: User [CORE\Cake\Model\Datasource\DboSource.php, line 1388] Its easy to reproduce: Model: User belongsTo Group Model: Permission habtm Rights (className User) Permission habtm Owners (className User) When i

CakePHP 2.6.13, 2.7.11, 2.8.2, 3.0.17, 3.1.12, and 3.2.5 Released

2016-03-13 Thread mark_story
The CakePHP core team is happy to announce the immediate availability of CakePHP 2.6.13, 2.7.11, 2.8.2, 3.0.17, 3.1.12, and 3.2.5. These releases contain security fixes. 3.2.5 and 2.8.2 also contain bugfixes. Security Fixes -- These releases contain fixes for arbitrary address

Re: Cakephp 2.x Receive emails into the application...

2016-03-13 Thread euromark
This might help you https://github.com/barbushin/php-imap Am Samstag, 12. März 2016 01:31:18 UTC+1 schrieb April DeRossett: > > Ahoy! I am looking for a way to receive reply emails into my cakephp > application and after a ton of research I haven't yet figured out how to > make that happen.

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

2016-03-13 Thread Willem Schwarte
Yes. That should solve it. - willem > Op 13 mrt. 2016 om 08:42 heeft heavyKevy het > volgende geschreven: > > You also need to make sure that you add the following line near the top of > the file after the namespace with the other use statements: > > use

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

2016-03-12 Thread heavyKevy
You also need to make sure that you add the following line near the top of the file after the namespace with the other use statements: use Cake\Event\Event; Best regards, --Kevin On Sunday, March 13, 2016 at 1:47:10 AM UTC+7, Clement Crownrise wrote: > > Hi, Thanks Willem, > > I have tried

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

2016-03-12 Thread Clement Crownrise
Hi, Thanks Willem, I have tried it, but the error still persists , look at the code below public function beforefilter(Event $event){ //parent::beforefilter($event); //$this->Auth->allow(['add','logout']); return null; } On Sat, Mar 12, 2016 at 11:52 AM, Willem

  1   2   3   4   5   6   7   8   9   10   >