Re: cakephp 2.5 cron jobs

2015-11-27 Thread euromark
Maybe you can, but you probably shouldn't the call as documented definitly works. Just make sure you got permissions (+x) for the console cake file! Mark Am Mittwoch, 25. November 2015 14:01:00 UTC+1 schrieb Igor Padovan da Silva: > > You can use the */full/path/to/Console/cake -app

fail to raise PDOException

2015-11-27 Thread urulab
Env: Cake 3.1.4, PHP 5.6.14 //template Form->postLink('Delete', ['action' => 'delete', $user->id], [ 'confirm' => __('Are you sure you want to proceed?')]) ?> //controller public function delete($id = null) { $this->request->allowMethod(['post', 'delete']); $user = $this->Users->get($id);

A way of generating/baking awesome REST docs

2015-11-27 Thread Mikkel Bonde
HI all! First of all - sorry if this is not the place for discussing such things as "ideas" for new plugins/libraries - and sorry for the length of this post O.o >From my work we've lately had the need of getting started to port/move our internal REST api to a public one - and in that case we

Re: CakePHP 3.1.4, 3.0.15, 2.7.6 and 2.6.12 released

2015-11-27 Thread Akif Hussain
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 works for me. *composer create-project --prefer-dist cakephp/app myapp* but it gives me the error *could not find

I'm getting stuck with login page in cakephp 2.4

2015-11-27 Thread Nguyễn Quang Nhân
Hi everyone, I'm getting stuck with login page in cakephp 2.4, can anyone help me figure it out what mistakes I have made. Thank you so much! (why did I dont see the password in WHERE clause of the query??) Here is sql file, the project file and two pictures describe the problem: - SQL file:

Deep save associated models with relation back to first model

2015-11-27 Thread Bni I
I have 3 models: A, B, C. A hasMany B A hasMany C B hasMany C A / \ / \ / \ | | ^ ^ B < C I created the view and the controller add method. The forms data: $data = array( 'A' => array( 'id' => '', 'name' => 'alpha',

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: Overriding translations

2015-11-27 Thread Aday Talavera
Fragment of code not working as expected: Cake\I18n\I18n::translator('default', 'es_ES', function () { $package = new Aura\Intl\Package( 'default', // The formatting strategy (ICU) 'default' // The fallback domain ); $package->setMessages([ 'Llegada' => 'foo',