Re: CakePHP 3.2.0 Released

2016-02-23 Thread José Lorenzo
Yes, it is On Monday, February 1, 2016 at 12:18:20 PM UTC+1, rafaelmsantos.com wrote: > > Is the intl php extension still required? > -- 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: CakePHP 3.1.1 - deleteAll when using condition NOT IN array fails

2016-01-04 Thread José Lorenzo
estion should probably be marked ignore! > > Sorry to waste your time on another non-problem. > > > On Sunday, January 3, 2016 at 12:27:21 PM UTC-7, José Lorenzo wrote: >> >> What version of cakephp are you using? What is the full error and the SQL >> query? >>

Re: how to deploy i18n translations ?

2016-01-03 Thread José Lorenzo
In what language are the messages inside __('...') ? On Tuesday, December 29, 2015 at 11:46:31 AM UTC+1, Alysson Azevedo wrote: > > In my development environment the I18n works fine, i can set the locale > with both ini_set('intl.default_locale', 'pt_BR') and > I18n::locale('pt_BR'). > > But on

Re: CakePHP 3.1.1 - deleteAll when using condition NOT IN array fails

2016-01-03 Thread José Lorenzo
What version of cakephp are you using? What is the full error and the SQL query? On Tuesday, December 29, 2015 at 7:54:41 PM UTC+1, glk wrote: > > Hello, > > A function in OpSpTable.php uses the following code: > > $op_id = 18; >> > $actualUsed = [2, 101]; >> > >> >

CakePHP 3.2.0-RC1 Released

2016-01-03 Thread José Lorenzo
The CakePHP core team is happy to announce the immediate availability of CakePHP 3.2.0-RC1. This release is the first release candidate for the 3.2 branch which adds several new features to the 3.x series. We would appreciate any feedback you might have on the new features before their API

Re: Scaffolding Composite Keys

2015-12-02 Thread José Lorenzo
Bake is not currently able to detect associations that involve composite keys, but the res of the bake process will work fine. On Wednesday, December 2, 2015 at 11:52:34 PM UTC+1, Luis Galicia wrote: > > How can I solve composite keys , i want create am application using > scaffolding > --

Re: CakePHP 3.1.4, 3.0.15, 2.7.6 and 2.6.12 released

2015-11-27 Thread José Lorenzo
What does php -v show in your console? On Friday, November 27, 2015 at 2:25:32 PM UTC+1, Akif Hussain wrote: > > Dear, > > I have downloaded* cakephp 3* and the downloaded directory has no *app* > directory, so tell me how can I install it through *composer*. > I have run this command but not

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 > > El domingo, 31 de mayo de

Re: Overriding translations

2015-11-27 Thread José Lorenzo
Did you read this part? http://book.cakephp.org/3.0/en/core-libraries/internationalization-and-localization.html#creating-your-own-translators On Tuesday, November 24, 2015 at 3:00:30 PM UTC+1, Aday Talavera wrote: > > My current and default app locale is "es_ES". > > I generated my default.pot

Re: CakePHP 3 Auth

2015-11-20 Thread José Lorenzo
Change the session key when configuring the Auth component. Those properties where removed On Wednesday, November 11, 2015 at 3:55:14 PM UTC+1, Rafael Queiroz wrote: > > Hi guys, > > I have problem using *CakePHP 3.1.x* and *Auth*, follows my scenario: > > 1. Using *CakeDC/Users* for *Auth* in

Re: Cake 3 RC1 aura intl problem

2015-11-09 Thread José Lorenzo
to no avail. > > Thanks tho, > > Paul. > > > On Saturday, 7 November 2015 18:12:28 UTC, José Lorenzo wrote: >> >> Try deleting the cache in the tmp/cache folder and see if the problem >> persists >> >> On Friday, November 6, 2015 at 9:55:28 AM

Re: Cake 3 RC1 aura intl problem

2015-11-07 Thread José Lorenzo
> __d('debug_kit', in > /var/www/vendor/aura/intl/src/Aura/Intl/PackageLocator.php on line 96 > > What I did do yesterday which is almost guaranteed to be the cause is to > upgrade Ubuntu 15.04 to 15.10, so my question is, does anyone know what I > have to do to sort

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: CAKE 3.0 Tutorials using SQLITE

2015-09-22 Thread José Lorenzo
If you use the migrations plugin, there is no need to use the correct SQL for creating the database, as cake will take care of generating everything correctly for you. Check the sections of the tutorial about using the migrations plugin. On Monday, September 21, 2015 at 3:38:11 AM UTC+2,

Re: New CakePHP ORM to CakePHP 2.x

2015-09-22 Thread José Lorenzo
It depends. The ORM can be installed as a standalone library already, what kind of integration are you looking after? On Tuesday, September 22, 2015 at 9:23:50 AM UTC+2, Sulian Lanteri wrote: > > Hello > > Before migrate a big application in CakePHP3, I want first use the new ORM > in this

Re: Collection::reduce versus doing a foreach

2015-09-22 Thread José Lorenzo
ty: https://gist.github.com/lorenzo/9198544013a9ca067689 Hope this helps! On Monday, September 14, 2015 at 10:08:55 AM UTC+2, Walter Vos wrote: > > Hi! > > I'm having trouble wrapping my head around Collection::reduce. Actually, > it feels like I understand how it's supposed

Re: Crud View pluging and related model fields

2015-08-26 Thread José Lorenzo
I would use the 'category_id' field with a custom formatter that would display the category description. Currently there is no support for using dot notation for fields that need to appear in a pagination table On Tuesday, August 25, 2015 at 1:43:14 PM UTC+2, HK wrote: I started using

CakePHP 3.0.10 Released

2015-07-21 Thread José Lorenzo
The CakePHP core team is happy to announce the immediate availability of CakePHP 3.0.10. This is a maintenance release for the 3.0 branch that fixes a couple important regressions introduced in 3.0.10 Bugfixes - Fixed issue with getting plugin behaviors by alias - FormHelper do not

Re: cakephp3 errors..... after edit db info

2015-06-30 Thread José Lorenzo
You are not the first one reporting this issue with 5.4.41. I'll try to investigate if this is a bug in the minor version or something odd that godaddy is doing. On Monday, June 29, 2015 at 1:52:59 AM UTC+2, Eric Haskins wrote: Hey All So Im trying to get version 3 running. Aside from not

Re: CakePHP 3.0.7 Released

2015-06-26 Thread José Lorenzo
Bhardwaj ankitbhardwaj244...@gmail.com wrote: it seems my server have some problem, on my friends server its running fine. Thanks On Mon, Jun 22, 2015 at 1:40 PM, José Lorenzo jose@gmail.com wrote: Are you the same person I tried to help in the IRC? If not, please save this code in a file

Re: cake 3, import a class stored in webroot

2015-06-25 Thread José Lorenzo
require $pathToFile; On Thursday, June 25, 2015 at 10:05:33 AM UTC+2, lorenzoshake wrote: Hi, how can i import a class Foo stored in webroot/class/Foo.php in cake3? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received

Re: CakePHP 3.0.7 Released

2015-06-22 Thread José Lorenzo
, 2015 at 11:42 PM, José Lorenzo jose@gmail.com wrote: What version oh PHP do you have? On Saturday, June 20, 2015 at 9:17:07 AM UTC+2, Ankit Bhardwaj wrote: it doesnot run on server.. shows this errors.. *Fatal error*: Call to undefined method Cake\Datasource\ConnectionManager::_config

Re: CakePHP 3.0.7 Released

2015-06-21 Thread José Lorenzo
What version oh PHP do you have? On Saturday, June 20, 2015 at 9:17:07 AM UTC+2, Ankit Bhardwaj wrote: it doesnot run on server.. shows this errors.. *Fatal error*: Call to undefined method Cake\Datasource\ConnectionManager::_config() in

Re: Is there a working Localized plugin for CakePHP 3.0?

2015-06-13 Thread José Lorenzo
There isn't yet. What do you need from the plugin? If it is the validation rules, you can just copy the rules from the old Localized plugin into your custom validation provider. On Friday, June 12, 2015 at 1:06:04 PM UTC+2, Paulo Terra wrote: Hi, I have been looking for a plugin to validate

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

2015-06-13 Thread José Lorenzo
There are a few ways to accomplish this: First one: // ArticlesTable.php public function _initializeSchema($schema) { $schema-columnType('my_date_column', 'string'); } That will remove all the converting back and forth for that specific column. It will still be a date in the database, but

Re: Why does CakeRequest::clientIp() not have option for only read REMOTE_ADDR?

2015-06-13 Thread José Lorenzo
All of those headers can be manipulated On Tuesday, June 9, 2015 at 3:21:06 PM UTC+2, ura.beta.m...@gmail.com wrote: Why does CakeRequest::clientIp() not have option for only read REMOTE_ADDR? If user manipulate HTTP_CLIENT_IP or HTTP_CLIENTADDRESS header, CakeRequest::clientIp() returns

Re: cakephp.org website problems

2015-06-08 Thread José Lorenzo
Open a ticket in the main repo, please On Sunday, June 7, 2015 at 9:33:23 PM UTC+2, Jeffery Seiffert wrote: Where or to who can I report bad links on the website too? I even went to http://cakefoundation.org/contact and it has an internal error. Thanks, Jeffery -- Like Us on

Re: Regarding module creation in cakephp v 3.0

2015-06-08 Thread José Lorenzo
Use Plugins: http://book.cakephp.org/3.0/en/plugins.html#plugins On Sunday, June 7, 2015 at 9:33:23 PM UTC+2, Naman Kaushik wrote: I am new to cakephp. I want to break the whole module into module chunks . How can I do that. Please help me out. -- Like Us on FaceBook

Re: cakephp 3.0- login and registration using custom tables

2015-06-08 Thread José Lorenzo
Read this part of the manual: http://book.cakephp.org/3.0/en/controllers/components/authentication.html#configuring-authentication-handlers Specifically the part regarding 'userModel' and 'fields' On Sunday, June 7, 2015 at 9:33:23 PM UTC+2, Leo Wong wrote: Hello, I have the same question,

Re: How to write a query | cakephp 3.x

2015-06-03 Thread José Lorenzo
What have you tried so far? Did you read the documentation on creating queries in cake 3? On Wednesday, June 3, 2015 at 7:58:44 AM UTC+2, InYan wrote: in cakephp v.1.3.x I used $this-Model-query($q); -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter

Re: Migrate from Cake 2.x

2015-05-20 Thread José Lorenzo
One way is to extend the form helper and override the _domId() function: https://github.com/cakephp/cakephp/blob/09eb23891dc8134830f4e39e01a3a39f82935e41/src/View/Helper/IdGeneratorTrait.php On Wednesday, May 20, 2015 at 1:39:35 PM UTC+2, gersonfs wrote: Hello! Is there a way to use the

Re: Use Paginator-sort without Paginator in the Controller

2015-05-17 Thread José Lorenzo
pass ?sort=a_fielddirection=desc in the URL On Sunday, May 17, 2015 at 8:23:17 AM UTC+2, Sven Mäurer wrote: In my controller I am calling a REST API so I just want to use the Paginator for setting query paramters. How can I achieve that nevertheless the sorting direction is toggled when

Re: Cakephp 3.x Validation Error issue

2015-05-15 Thread José Lorenzo
I would use StackOverflow and tag the question as cakephp-2 or cakephp-3.0 Offering help here has become increasingly difficult for me On Friday, May 15, 2015 at 3:35:39 PM UTC+2, Thomas wrote: What is a best way to get answers of my issues? I am not getting any solution from last 20 days

Re: CakePHP 3 Unit Testing: posting data does not seem to be refactored by request object

2015-05-13 Thread José Lorenzo
Data should be an array like ['Clients' = ['username' = 'asdf']] On Tuesday, May 12, 2015 at 6:53:23 AM UTC+2, HVan wrote: I wrote a test that posts data like this: $data = [ 'Clients[username]'='asdf' ]; $this-post('/url',$data); In the controller method, when I print_r

Re: Custom helpers not available on error pages

2015-05-13 Thread José Lorenzo
$this-loadHelper() should do the trick On Monday, May 11, 2015 at 6:42:27 PM UTC+2, LDSign wrote: Ok, thanks :) How can I do this (overriding a core helper on these error pages)? Regards, Frank Am Montag, 11. Mai 2015 18:25:25 UTC+2 schrieb LDSign: Hi Ive set up some custom error

Re: Appliying translate behavior in 3.0 to already existing rows

2015-05-13 Thread José Lorenzo
The behavior is thought so that the main application language is store in the real table and all the translations in the i18n table On Tuesday, May 12, 2015 at 10:40:25 AM UTC+2, Aday Talavera wrote: While following the guide http://book.cakephp.org/3.0/en/orm/behaviors/translate.html to

Re: How to set Cake 3.0 to save with different date format ?

2015-05-11 Thread José Lorenzo
ready_date = '06/01/2015' , modified = '2015-05-11 05:00:54' WHERE id = 20 What do i try next? Thanks, joe t. On Thursday, 2 April 2015 14:56:29 UTC-4, José Lorenzo wrote: Read this: http://book.cakephp.org/3.0/en/orm/database-basics.html#parsing-localized-datetime-data On Thursday

Re: Custom helpers not available on error pages

2015-05-11 Thread José Lorenzo
If I remember correctly (some) Error pages do not load from app controller, so it is safer if for the error pages you explicitly load the helpers you need. On Monday, May 11, 2015 at 6:25:25 PM UTC+2, LDSign wrote: Hi Ive set up some custom error pages which include the main layout

Re: cakephp3 - Trying to use combine() with entities without sucess

2015-05-09 Thread José Lorenzo
$combined = collection($entities)-combine('id', function ($row) { return $row}, 'group'); The function in the second argument will return the same row without extracting any property from it. This is also equivalent to doing: $combined = collection($entities)-indexBy('id')-groupBy('group');

Re: CakePHP 1.3 - ClassRegistry::init('Model')/loadModel() constructs EVERY related model (multiple times) too?!

2015-05-05 Thread José Lorenzo
Yes, that is the way it works. And I had a lot of problems with that as well You can use a plugin like this to avoid loading all models: https://github.com/lorenzo/lazy_loader Upgrading your application would be the best idea, though On Monday, May 4, 2015 at 11:34:16 PM UTC+2, DigitalDude

Re: Where to create common functionalities with view in cakephp?

2015-05-03 Thread José Lorenzo
I would use a CakePHP plugin, plugins are like small apps or modules you can reuse and are separate from the main app: http://book.cakephp.org/3.0/en/plugins.html On Sunday, May 3, 2015 at 1:14:51 PM UTC+2, Abhinav Pathak wrote: I am new in cakephp. I have a module with name contact us in 1

CakePHP 3.0.3 Released

2015-05-03 Thread José Lorenzo
The CakePHP core team is proud to announce the immediate availability of CakePHP 3.0.3. This is maintenance releases that improves speed and reliability of the framework. Some of the changes introduced were: - Extracted the validation logic into a trait that can be reused in projects

Re: Preferred way to retrieve data with cake 3.0

2015-05-03 Thread José Lorenzo
The latter is preferred, i.e. the way using the select() and where() methods. The reason is that the is a lot more flexibility in what you can do with the new way. A quick way to check if there if there is data in a query is: if ($query-all()-count() 0) On Friday, May 1, 2015 at 10:54:43 PM

Re: Add new fields to a database table

2015-05-03 Thread José Lorenzo
Check out the schema system chapter in the book: http://book.cakephp.org/3.0/en/orm/schema-system.html It contains some of the methods needed to generate tables. You can also use a migrations system such as phinx. On Friday, May 1, 2015 at 10:54:33 PM UTC+2, r...@trinoweb.com wrote: I'd

Re: intl extension to use CakePHP not working

2015-04-18 Thread José Lorenzo
From the documentation: In both XAMPP and WAMP, mcrypt and mbstring extensions are working by default. In XAMPP, intl extension is included but you have to uncomment extension=php_intl.dll in php.ini and restart the server through the XAMPP Control Panel. In WAMP, the intl extension is

Re: data migration issue

2015-04-17 Thread José Lorenzo
Pass ['accessibleFields' = ['*' = true]]; to your newEntity method. You are hitting mass assignment prevention On Friday, April 17, 2015 at 8:58:22 AM UTC+2, uru...@gmail.com wrote: When I try to load data into a migration I get the following error message: [RuntimeException]

Re: data migration issue

2015-04-17 Thread José Lorenzo
Foreign keys are not marked as accessible by default for security reasons. On Friday, April 17, 2015 at 1:47:58 PM UTC+2, uru...@gmail.com wrote: Thanks Lorenzo, I already had read Mass Assignment http://book.cakephp.org/3.0/en/orm/entities.html#entities-mass-assignmenton the book! bake

Re: Detecting file size overflow (POST Content-Length of 30980857 bytes exceeds the limit of 2097152 bytes)

2015-04-14 Thread José Lorenzo
The detection happens before any php script is invoked, so there isn't much you can do. I suggest helping the user by checking the file size in the client. On Monday, April 13, 2015 at 9:17:00 PM UTC+2, Willem wrote: When uploading a file bigger then the post_max_size setting in php.ini the

Re: retriving data in super class of controller

2015-04-12 Thread José Lorenzo
The variable $this-modelClass will contain the name of the model that the controller uses. On Sunday, April 12, 2015 at 12:42:20 PM UTC+2, Sagar Rayudu wrote: Hi I'm using CakePHP 3.X I want to write a common method for all controllers so I wrote a controller called SpecialController and

Re: TurnJS + CakePHP

2015-04-12 Thread José Lorenzo
This is not related to TurnJS, but it may help you understand how to do ajax in cakephp http://www.dereuromark.de/2014/01/09/ajax-and-cakephp/ On Saturday, April 11, 2015 at 10:02:12 PM UTC+2, Bruno Rijo wrote: Hello everybody! I am developing an online newspaper for a college project, and

Re: How to move the directory /cakePHP 3.0/

2015-04-12 Thread José Lorenzo
Well, given the fact that your apps have more dependencies than just the cake core, I would say that it is not a good idea. Just call composer update on each of your apps. You can also write a quick Make script (or in whatever language you may prefer) to go over each folder and call composer

Re: cakephp 3.0 - which approach is best to get instance of a Table using loadModel or TableRegistry

2015-04-11 Thread José Lorenzo
Answered in stackoverflow On Saturday, April 11, 2015 at 8:00:02 PM UTC+2, Bayezid Alam wrote: Hi, A question arises on me is that which approach is the best from the performance sense to get an instance of a table in CakePHP-3.0 which is not a controller's default one between loadModel

Re: How to move the directory /cakePHP 3.0/

2015-04-11 Thread José Lorenzo
I wouldn't recommend doing this for cake 3. What is the reason behind having a common core? On Saturday, April 11, 2015 at 11:18:17 AM UTC+2, InYan wrote: I want to move the kernel to the root directory of the server to the kernel was common to all applications on the server. Then it will be

Re: Export CSV with CakePHP

2015-04-08 Thread José Lorenzo
I think you should use this plugin https://github.com/FriendsOfCake/cakephp-csvview instead of implementing it all by yourself On Wednesday, April 8, 2015 at 9:40:19 AM UTC+2, Mark Payne wrote: You don't have to use jquery or views to do this. I use this handy little function a lot. I

Re: insert data with non auto increment primary key

2015-04-08 Thread José Lorenzo
What version of CakePHP? On Wednesday, April 8, 2015 at 9:40:04 AM UTC+2, Louis Dwy wrote: I am trying to insert a row of data to table that has non auto increment primary key. Any suggestion? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter

Re: Mock auth component in controller test using testAction

2015-04-08 Thread José Lorenzo
Is _apiLoginRequest() a static method? On Tuesday, April 7, 2015 at 1:06:15 PM UTC+2, Sebastian Bergquist wrote: Hi! I’m having some problems with my tests. I can’t seem to mock the auth component in a controller test using the testAction method… Here are the part of the test that causes

Re: Still having trouble with saving BelongsToMany data

2015-04-07 Thread José Lorenzo
I think you should better jump into the IRC channel so we can debug step by step your code. Using google groups for debugging problems has proven to be difficult. On Monday, April 6, 2015 at 10:22:41 PM UTC+2, Mauri Cabrera wrote: This is my add function and its add.ctp form Im following the

Re: how to get all models name dynamically?

2015-04-04 Thread José Lorenzo
Maybe App::objects('Model') could help you On Friday, April 3, 2015 at 7:14:29 PM UTC+2, piya wrote: I am using cakphp 2.3 version. i want to update the all table's field dynamically. For that I need to get all the models name dynamically. Can Anyone tell me any way to get all models

Re: Cakephp 3.0 saveField

2015-04-04 Thread José Lorenzo
$this-Posts-updateAll(['the_field' = $value], ['id' = 100]); On Friday, April 3, 2015 at 12:05:12 AM UTC+2, DiV wrote: How can I update a single field if I know record's id without retrieving a row? There was a method saveField for this action in cakephp 2.x -- Like Us on FaceBook

Re: How to set Cake 3.0 to save with different date format ?

2015-04-02 Thread José Lorenzo
Read this: http://book.cakephp.org/3.0/en/orm/database-basics.html#parsing-localized-datetime-data On Thursday, April 2, 2015 at 6:10:58 PM UTC+2, Celso wrote: Hi guys I have a table in Mysql with a date field, and I need to allow my user writes something like *31/12/2015*. echo

Re: CakePHP 3 session usage in a custom class

2015-04-01 Thread José Lorenzo
I would pass the session object to the place where you need it. On Wednesday, April 1, 2015 at 10:54:19 PM UTC+2, Subi wrote: Which is the best way for using session in a custom class where $this-request isn't available? I simple used $session = new Session; and it works perfectly, but I'm

Re: CakePHP 2 v CakePHP 3 SQL

2015-03-31 Thread José Lorenzo
Hopefully from our previous messages you can guess it yourself: $options = array( 'conditions' = array( 'Rentals.id' = $id, ), 'contain' = array( 'Trailers' = array(

Re: Error linking forum titles to individual posts.

2015-03-30 Thread José Lorenzo
The problem is doing $this-$Html- It should be $this-Html- On Sunday, March 29, 2015 at 9:49:57 PM UTC+2, Odedere Ayokunle wrote: Greetings everyone here. I am combining one Andrew Perkin video tutorial (which explains cakephp in a step by step manner but quite stale) with the official

Re: Cake3 - Blog Tutorial Part 3 error founds

2015-03-27 Thread José Lorenzo
You need to create the categories table first. On Friday, March 27, 2015 at 5:34:46 AM UTC+1, Bayezid Alam wrote: Hi, I am getting below error while executing *bin/cake bake model Categories* Note: i followed all the above things from

Re: Help

2015-03-26 Thread José Lorenzo
Follow this tutorial http://book.cakephp.org/3.0/en/quickstart.html On Wednesday, March 25, 2015 at 4:53:57 PM UTC+1, Musa Dima wrote: Dear All I'm very new for cakePhP i want to learn cake php from Scratch any body who can give me link for full video tutorial and other material. warmly

Re: cakephp 3 get model schema in behaviour

2015-03-26 Thread José Lorenzo
In any method $schema =$this-_table-schema() The returned object is an instance of Cake\Database\Schema\Table On Wednesday, March 25, 2015 at 4:53:57 PM UTC+1, Dejan Dragaš wrote: how to get model schema in behaviour ? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on

Re: automatic join for belongsTo association with cross databases not work

2015-03-26 Thread José Lorenzo
What are the changes or the problems you are having? As far as I remember nothing has changed there. On Monday, November 3, 2014 at 9:51:20 AM UTC+1, Jitendra Rathod wrote: In cakephp 2.2.x, we can have automatic join work for cross databases with a simple patch:

Re: Is the Bakery Fresh?

2015-03-25 Thread José Lorenzo
make posts by running tinkerer locally? http://tinkerer.me/pages/documentation.html#create-a-post I'm no Pythonista, but I could have a look when my current development storms pass. On Wednesday, March 25, 2015 at 7:06:52 AM UTC-4, José Lorenzo wrote: The bakery was in the process of being

Re: Is the Bakery Fresh?

2015-03-25 Thread José Lorenzo
The bakery was in the process of being converted to a blog people could contribute to by submitting the articles via github. This project stalled because we need some work on on the CSS side. Maybe you are willing to help? :D On Wednesday, March 25, 2015 at 12:02:26 PM UTC+1, Harold Putman

Re: CakePHP 2 v CakePHP 3 SQL

2015-03-24 Thread José Lorenzo
This is probably going to be a surprise for you. This is the equivalent code in CakePHP 3 public function archived($id = null) { $options = array( 'limit' = 10, 'order' = ['Trailers.number' = 'ASC'], 'fields' = array('id', 'trailer_id', 'lessee_id',

Re: [CAKEPHP 3.0] ERROR PHP.IN

2015-03-23 Thread José Lorenzo
You need to enable the intl extension. http://cynwong.com/blog/?p=442 On Monday, March 23, 2015 at 9:50:21 AM UTC+1, Quang Nguyễn Ngọc wrote: *after installation I get this error :* *Fatal error*: You must enable the intl extension to use CakePHP. in

CakePHP 3.0.0 is Here!

2015-03-22 Thread José Lorenzo
The CakePHP core team is thrilled to announce the release of CakePHP 3.0.0. This is the first API stable release for the 3.0 branch. This release is a backwards incompatible release with previous CakePHP versions. The new minimum requirements for CakePHP are: - PHP 5.4.16 or greater. -

Re: 3.0 - routing bug?

2015-03-20 Thread José Lorenzo
, and generate the url again. Does it make sense :) ? Le jeudi 19 mars 2015 02:09:10 UTC-7, José Lorenzo a écrit : Router::url() and Router::parse() are not symmetrical. I don't see the reason why you want to parse the url and the pass it again to the Router. Could you explain

Re: 3.0 - routing bug?

2015-03-19 Thread José Lorenzo
Router::url() and Router::parse() are not symmetrical. I don't see the reason why you want to parse the url and the pass it again to the Router. Could you explain? On Thursday, March 19, 2015 at 1:00:16 AM UTC+1, Pgbi wrote: Tell me if i'm wrong but i thought that Router::parse was the

Re: Still having trouble with saving BelongsToMany data

2015-03-12 Thread José Lorenzo
No, it is not related to that issue. Do you have any idea of what cake version you were using before updating? On Thursday, March 12, 2015 at 4:37:50 AM UTC+1, Joe T. wrote: i absolutely cannot believe this: it's broken again. i haven't done anything but run *composer update* and i'm back to

Re: Still having trouble with saving BelongsToMany data

2015-03-12 Thread José Lorenzo
If you want to create first and then link follow the instructions in this section: http://book.cakephp.org/3.0/en/orm/saving-data.html#saving-belongstomany-associations Specifically where it shows the calls to `Users-link($article, [$user])` On Thursday, March 12, 2015 at 3:09:54 PM UTC+1, Joe

Re: localize table header

2015-03-10 Thread José Lorenzo
Check the other arguments of that function :) On Tuesday, March 10, 2015 at 2:18:31 PM UTC+1, Radharadhya Dasa wrote: Hi, How to localize model field names in table header in CakePHP 3? echo $this-Paginator-sort('User.name') will give me User name, but I would need it localized. rrd

Re: Condition with AND and ARRAY

2015-03-09 Thread José Lorenzo
If you execute the SQL above you will always get 0 results. I think that what cake does by default (using IN) is exactly the thing you want, based on what you described (your hesitance on using UNION queries to get all results) On Monday, March 9, 2015 at 8:54:09 PM UTC+1, michel martins

Re: Condition with AND and ARRAY

2015-03-09 Thread José Lorenzo
An AND would not make any sense, a single field cannot be a the same time multiple different values. What do you expect to be returned? On Monday, March 9, 2015 at 7:55:15 PM UTC+1, michel martins wrote: Hi people! I have a question: Watch the item 'conditions' in my query

Re: The (bad) perception and image of CakePHP in the public

2015-03-06 Thread José Lorenzo
That's a very good input Arif. I agree that the work Jeffrey has done in laracasts is amazing and a key part of laravel's success. On Friday, March 6, 2015 at 9:03:12 AM UTC+1, Arif Hussain wrote: There is a need for creating a CakeCasts like Laracasts. Laravel got more than 90% attention

Re: Schema migration in CakePHP-3

2015-03-05 Thread José Lorenzo
Can you put a die() in your migration file to see if it is being read? On Thursday, March 5, 2015 at 11:47:30 AM UTC+1, Gaurav Kumar wrote: Hello Everyone, I am trying to create a custom plugin for CakePHP-3.0 where I want to include schema migrations [database sql queries] so that when

Re: Still having trouble with saving BelongsToMany data

2015-03-03 Thread José Lorenzo
What did you have to do that was not in the documentation? It would be helpful to add it to the docs so other don't get stuck as well in the same problem On Tuesday, March 3, 2015 at 7:25:01 AM UTC+1, Joe T. wrote: i'm REALLY sorry for the delay getting back to you. And unfortunately, i'm

Re: cake app install

2015-03-03 Thread José Lorenzo
That's correct! On Tuesday, March 3, 2015 at 12:40:30 PM UTC+1, Radharadhya Dasa wrote: I found out. First I should checkout the git repo, than run omposer update. That's all :) rrd 2015. március 2., hétfő 14:52:51 UTC+1 időpontban Radharadhya Dasa a következőt írta: hi, I have

Re: Still having trouble with saving BelongsToMany data

2015-03-03 Thread José Lorenzo
On Tuesday, March 3, 2015 at 2:43:55 PM UTC+1, Joe T. wrote: 1. Had to add *`id`* to the Attributes *$_accessible* field array (as described by heavyKevy in a post above). If making foreign table IDs available for a joint table is necessary, why isn't the bake process doing

Re: Still having trouble with saving BelongsToMany data

2015-03-03 Thread José Lorenzo
me that's doing it wrong. So what's left? Thank you. On Tuesday, 3 March 2015 10:13:53 UTC-5, José Lorenzo wrote: On Tuesday, March 3, 2015 at 2:43:55 PM UTC+1, Joe T. wrote: 1. Had to add *`id`* to the Attributes *$_accessible* field array (as described by heavyKevy in a post

Re: cakephp 3.0 supporting web hosting list

2015-02-27 Thread José Lorenzo
26, 2015 at 7:04:54 PM UTC+5:30, Cake Developer wrote: Hi Jose, This is what I told you, This is first time I did not get support form hostgator in last 5 years. On Thursday, February 26, 2015 at 7:01:27 PM UTC+5:30, José Lorenzo wrote: Is waiting 45 days for an answer quick support

Re: Validate a multiple select in cakephp 3.0

2015-02-27 Thread José Lorenzo
What field are you trying to validate? On Friday, February 27, 2015 at 2:02:00 PM UTC+1, Cake Developer wrote: I see cakephp 3.0 has same multiple select validation but I am getting error Array to string conversion here is what I tried -notEmpty('input_field', __('Please select

Re: how is this saving without a table

2015-02-27 Thread José Lorenzo
Open the Term model and see what table it was setup to be used On Thursday, February 26, 2015 at 10:29:20 PM UTC+1, ajt wrote: $terms=$this-Term-find('all' ); //displays everything and you can edit these fields in another page. There is no table called terms in any database I have. How

Re: how is this saving without a table

2015-02-26 Thread José Lorenzo
How do you know something was saved? On Thursday, February 26, 2015 at 2:50:02 PM UTC+1, ajt wrote: In cakephp I have some code which saves data without a table and I have no idea how. The model,controller show nothing like below it works fine but there is no tablecalled terms ?php

Re: cakephp 3.0 supporting web hosting list

2015-02-26 Thread José Lorenzo
://www.digitalocean.com/company/contact. This is the first time I face issue with hostgator. Thanks On Thursday, February 26, 2015 at 6:00:07 PM UTC+5:30, José Lorenzo wrote: That is a lot of money! I guess you are hosting plenty sites in that server. You can compare with DigitalOcean

Re: CakePHP 3 cipherseed removal and password migration - HELP

2015-02-26 Thread José Lorenzo
can know what hashing method is if ($this-Auth-login()) using at the login moment? On Thursday, February 26, 2015 at 3:19:37 AM UTC-5, José Lorenzo wrote: How did you configure the salt and your Weak password hasher? Please show the code in gist or here. I can guarantee that passwords

Re: CakePHP 3 cipherseed removal and password migration - HELP

2015-02-26 Thread José Lorenzo
How did you configure the salt and your Weak password hasher? Please show the code in gist or here. I can guarantee that passwords can be used from cake 2 in cake 3 because I've migrated a couple apps already. On Thursday, February 26, 2015 at 9:06:57 AM UTC+1, mcloide wrote: This is a

Re: cakephp 3.0 supporting web hosting list

2015-02-26 Thread José Lorenzo
Even godaddy supports 5.4 and intl, and I wouldn't say they are expensive. Ask your provider to install the intl extension, as it comes by a default in php 5.4. The more people asking for it, the quicker they will install it :) On Thursday, February 26, 2015 at 9:32:13 AM UTC+1, Cake Developer

Re: AppModel Subclass Constructor not called

2015-02-26 Thread José Lorenzo
That means your class is not being loaded, check you wrote the right class name, and that it was placed in the right folder with the correct file name. If your model is in a plugin, make sure it was loaded using the plugin notation. On Thursday, February 26, 2015 at 9:06:57 AM UTC+1, Charles

Re: cakephp 3.0 supporting web hosting list

2015-02-26 Thread José Lorenzo
will ask to refund. Thanks I will try to switch on godaddy. On Thursday, February 26, 2015 at 2:36:03 PM UTC+5:30, José Lorenzo wrote: Even godaddy supports 5.4 and intl, and I wouldn't say they are expensive. Ask your provider to install the intl extension, as it comes by a default in php

Re: cakephp 3.0 supporting web hosting list

2015-02-26 Thread José Lorenzo
Basically any provider that has a VPS option, or that you can mount a server image (Amazon AWS, DigitalOcean, Pagodabox, EngineYard, Rackspace) Her you have a list of shared hosts, look for those supporting php 5.4 and above http://phpversions.info/ On Wednesday, February 25, 2015 at

Re: cakephp 3.0 supporting web hosting list

2015-02-26 Thread José Lorenzo
plan is okay with cost $108/year Thanks On Thursday, February 26, 2015 at 3:47:46 PM UTC+5:30, José Lorenzo wrote: I'd like to ask you a couple things, for curiosity sake. How much are you paying in hostgator? and in your opinion is 5$ a month is an expensive deal? On Thursday

Re: Get the column type in the Controller Cake 3.0

2015-02-24 Thread José Lorenzo
$this-Articles-schema()-columnType('fieldname') On Tuesday, February 24, 2015 at 1:56:57 PM UTC+1, Felipe Silveira wrote: Hi Guys, I'm using Cake 3.0 and already felt some differences, I need to check what type of field in the Controller. In cake 2.0 I checked this way: $ this- Model-

Re: Cake 3: Associations between plugin models

2015-02-23 Thread José Lorenzo
Yes it is possible. You create the associations like this: $this-belongsTo('AnotherPlugin.TableName') On Sunday, February 22, 2015 at 5:58:38 AM UTC+1, HVan wrote: Is it possible to have associations between models which reside in different plugins? I've tried to get it to work and I don't

Re: CakePHP-3 Plugins form validation messages and field values

2015-02-23 Thread José Lorenzo
Can you show the code you are using? Use gist.github.com to show your table class, controller and form code. On Thursday, February 19, 2015 at 7:19:22 AM UTC+1, Gaurav Kumar wrote: I have just created a CommentManager plugin. Created the comment form in post's view.ctp file and able to add

  1   2   3   4   5   6   7   8   >