CakePhp 2.x Generate tree for Tree Behavior?

2016-01-10 Thread Sam Clauw
A very simple question: is there a way to get an associative array with tree nodes build with CakePHP's Tree Behavior? I can only find a method that output an array to use in a dropdown field ... -- Like Us on FaceBook

CakePHP - no emails are being sent and there are no error messages

2016-01-10 Thread 3one5marketing
Hi, i am new to cakephp and currently working on a website that has been developed using it. As part of the site members can refer friends and family via email where their reference number is sent as part of the sign up link. These emails are not sending and there are no error messages to tell

CakePHP - $this->request->data not working

2016-01-10 Thread 3one5marketing
Hi, im having problems with accessing form data in my controller. i have an if statement that checks if $this->request->data is not empty before going further but it is showing up as empty. im not sure why it is doing this so i have add my model, view and controller files. Thanks in advance

How to set database.config infos using an consult from database postgres on CakePHP?

2016-01-10 Thread Edson Rodrigues
I want to set the database config from CakePhP 2.x with data from database Example - database.config: public $bd_test = array ( 'datasource' => 'Database/Postgres', 'persistent' => false, 'host' => 'localhost', 'login' => 'root', 'password' => 'root',

Re: How to force DebugKit to use HTTPS for its requests?

2016-01-09 Thread mark_story
If you set the `App.fullBaseUrl` value in Configure, debug kit should respect that and generate links accordingly. This will also force the rest of the URLs generated in your app to use that base url prefix which can be handy. -Mark On Tuesday, 29 December 2015 05:46:32 UTC-5, Ethan Pooley

CakePHP 3.1.7 Released

2016-01-09 Thread mark_story
The CakePHP core team is happy to announce the immediate availability of CakePHP 3.1.7. This is a maintenance release for the 3.1 branch that fixes several community reported issues. Bugfixes You can expect the following changes in 3.1.7. See the

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

CakehasM 3 hasMany -> always empty

2016-01-07 Thread Bogdan Soos
Hi there, I am having a problem with hasMany. Here is my case: Models: ContractTable -> hasMany -> CustomValues table('offresmop_contratclt'); $this->displayField('cleaffaires'); $this->primaryKey('cleaffaires'); $this->addBehavior('Timestamp');

how to use authentication in rest json apis

2016-01-07 Thread Amit Gora
I am using cakephp default restfull apis and created a new controller with default app of cakephp but as for now i have removed auth and without outh apis are working fine but for security purpose i have to add authentication and i have a user login part also so please can anyone help me to add

Re: CakehasM 3 hasMany -> always empty

2016-01-07 Thread John Andersen
Hi Bogdan Is the below correct? To me it does not seem correct :) $this->belongsTo('Contract', [ 'className' => 'Tranquillity.Contract', Enjoy, John On Thursday, 7 January 2016 13:01:30 UTC+2, Bogdan Soos wrote: > > Hi there, > > I am having a problem with hasMany. > Here is my

Re: CakehasM 3 hasMany -> always empty

2016-01-07 Thread Bogdan SOOS
Hi John, Thank you for your answer . It's correct, because the model are in plugin called Tranquillity:) it gets the class, the entity, everything seems to be where it should... Just the data in the property is missing. Bogdan Sent from my iPhone > On 07 Jan 2016, at 19:07, John Andersen

Re: ajax pagination

2016-01-07 Thread euromark
See http://sandbox3.dereuromark.de/sandbox/ajax-examples Mark Am Dienstag, 5. Januar 2016 10:21:29 UTC+1 schrieb Kamlesh Gupta: > > Hello, > > I am facing a problem of pagination in cakephp 3.14.. > > How can we make a ajax pagination in cakephp 3.1.4 > > would anyone please help me. > --

CakeFest 2016 Location Vote

2016-01-06 Thread Larry E. Masters
We have narrowed our selection for CakeFest 2016 to 2 locations. Amsterdam or Berlin. Help us choose the location by voting at cakefest.org/#vote  We are keeping voting open until January 15, 2016 --  Larry E. Masters -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter

Re: CakePHP 3.1.6 - Time::_formatObject throws exception "calling ->format on a null" on what should be valid data

2016-01-06 Thread glk
Ok, the docs do say that the $format variable can be either an array of two integers or a single string value specifying a pattern. I see no reason that the array could not be two patterns, but will just cover my calls to i18nFormat with another function to make the corrections. The

ajax pagination

2016-01-05 Thread Kamlesh Gupta
Hello, I am facing a problem of pagination in cakephp 3.14.. How can we make a ajax pagination in cakephp 3.1.4 would anyone please help me. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are

CakePHP 3.1.6 - Time::_formatObject throws exception "calling ->format on a null" on what should be valid data

2016-01-05 Thread glk
I've modified the Time::_formatObject function allow some debug info (beginning at line 617) as follows: debug($date); > debug($format); > debug($locale); > debug($dateFormat); > debug($timeFormat); > debug($timezone); > debug($calendar); > debug($pattern); > >

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

2016-01-04 Thread José Lorenzo
Ok, you ask again if you stumble upon the problem again :) On Sunday, January 3, 2016 at 10:35:49 PM UTC+1, glk wrote: > > Running cakePHP 3.1.1 > > Well, I have to admit I really don't understand this... I removed the > comments around the deleteAll code above, and commented out the loop of >

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

2016-01-03 Thread glk
Running cakePHP 3.1.1 Well, I have to admit I really don't understand this... I removed the comments around the deleteAll code above, and commented out the loop of ->deletes. Now, I cannot recreate the error! I checked my git repository, and there were no changes to the code, so maybe it

Re: Route is overwriting routes of same controller

2016-01-03 Thread John Andersen
Your route definition will direct all URL starting with /catalogs/ to be directed to your catalog_groups controller. Thus if you also have a catalogs controller, then no URL will reach that controller. Note that the URL you are redirecting to the catalog_groups controller, does not need to

MySQL View for Reporting

2016-01-03 Thread Touch Hean
Hi all, I am newbie to the Cake. I would like to know whether there is a way to query MySQL View with the Cake. Any ideas? -- 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

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

CakePHP 3.1.1 - deleteAll when using condition NOT IN array fails

2015-12-29 Thread glk
Hello, A function in OpSpTable.php uses the following code: $op_id = 18; > $actualUsed = [2, 101]; > > $conditions = [ > 'OpSps.op_id' => $op_id, > 'OptSps.ec_id NOT IN' => $actualUsed, > ]; > >

hasmany validation and save data in a form, best approach

2015-12-29 Thread Raul Magdalena Catala
hello, lets say that i have a form that represents an invoice and the invoice items. the invoice has many invoice items relation. the form has some inputs for the invoice, and 10 rows with inputs for the invoice items: item code, item qty, item price, etc... Not always all the 10 rows are filled

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 {

how to deploy i18n translations ?

2015-12-29 Thread Alysson Gonçalves de Azevedo
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 my server nothing seems to work. Permissions are fine, cakephp can read the src/Locale files and write cache files on tmp/cache/persistent.

How to force DebugKit to use HTTPS for its requests?

2015-12-29 Thread Ethan Pooley
Apps running on Heroku can be requested via HTTPS even though the app and Web server don't know anything about it. Apps behind CloudFlare have a similar option. In this environment, DebugKit may be blocked as "mixed content" because the request for it happens via HTTP. My browser (Firefox 43)

Re: Help with Cakephp 2.x pagination

2015-12-29 Thread Clement Crownrise
Thanks @John On Tue, Dec 29, 2015 at 8:53 AM, John Andersen wrote: > As Matthew wrote, use the Neighbor function. See the CakePHP book in this > page: > > http://book.cakephp.org/2.0/en/models/retrieving-your-data.html#find-neighbors > > Enjoy, John > > > On Tuesday, 29

Route is overwriting routes of same controller

2015-12-28 Thread Sven Mäurer
Is it right that all other routes of the same controller are overwritten if I define the following? Router::connect( '/catalogs/:name', ['controller' => 'catalog_groups', 'action' => 'view'], ['name' => '[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*'] ); I am using CakePHP 2.7.* -- Like Us on

Re: Help with Cakephp 2.x pagination

2015-12-28 Thread Matthew Kaufman
Use the get neighbors function. On Mon, Dec 28, 2015 at 5:32 PM, Clement Crownrise < clementcrownr...@gmail.com> wrote: > Hello everyone, below is the first page of my list page, The first > attachment.. > > On clicking on any of the data on the first page, it will open up and show > like the

Re: Help with Cakephp 2.x pagination

2015-12-28 Thread Clement Crownrise
Thanks for your response, but please what is the neighbour function? Can you please paste the sytax here. Thanks On Monday, December 28, 2015 at 11:35:36 PM UTC+1, Matthew Kaufman wrote: > > Use the get neighbors function. > > On Mon, Dec 28, 2015 at 5:32 PM, Clement Crownrise

Re: Help with Cakephp 2.x pagination

2015-12-28 Thread John Andersen
As Matthew wrote, use the Neighbor function. See the CakePHP book in this page: http://book.cakephp.org/2.0/en/models/retrieving-your-data.html#find-neighbors Enjoy, John On Tuesday, 29 December 2015 00:54:37 UTC+2, Clement Crownrise wrote: > > Thanks for your response, but please what is the

CakePHP 3.1.6 Released

2015-12-23 Thread mark_story
The CakePHP core team is happy to announce the immediate availability of CakePHP 3.1.6. This is a maintenance release for the 3.1 branch that fixes several community reported issues. Bugfixes You can expect the following changes in 3.1.6. See the

Re: Access development server from another (local) computer

2015-12-23 Thread Harold Putman
Use ngrok. https://ngrok.com/. After you install it, you type `ngrok 8765` from a command prompt and it will provide you with a URL you can use to access your Cake app from another computer inside or outside your local network. On Tuesday, December 22, 2015 at 5:39:13 AM UTC-5, Ken Hargy

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 =

Re: Access development server from another (local) computer

2015-12-22 Thread John Andersen
That question is not really related to CakePHP. Depending on your setup, you will have to open the firewall on the computer, where you have your site running. You will probably also have to configure your webserver (apache, nginx, etc.) to accept connections from other IP addresses than

Re: CakePHP plugin with static pages (PagesController in Plugin)

2015-12-22 Thread Fabricio Camarano
I know this is quite old, but I'm facing the same issue and google results brought me here.. So, which one could you say is the most suitable solution?.. the most conventional as you pointed or A? El sábado, 16 de marzo de 2013, 14:53:53 (UTC-3), Vanja Dizdarević escribió: > > See the title of

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

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

How to unset field value of a post edit view

2015-12-22 Thread Amit Gora
i am using checkbox array in my form and save their values "," separated in database. so when i go into edit view of this post then it`s get default value of field which is set by controller so i want to disable it for some fields. how i can do it?? -- Like Us on FaceBook

Fetch views on the same page

2015-12-22 Thread Khoảng Lặng Sau Sân Khấu
Hello Everybody, I have a problem with my final cakephp project. I'd like include some views on index page, but i don't know how include views on the same a page. Please, comment your method, I'm looking forward hearing from you, Thank you, Phuong Danh, -- Like Us on FaceBook

Access development server from another (local) computer

2015-12-22 Thread Ken Hargy
I'm new to CakePHP so maybe I'm missing something obvious... I set everything up as expected and I ran: bin/cake server everything works fine if I go to http://localhost:8765, but I want to access it on another computer on my local network. It seems like it's not allowing connections other

how to connect a simple registration form with mysql

2015-12-22 Thread kumar pkvel
i want to connect a registration form am a beginner i need to connect in xampp cake php version3.1.2 -- 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"

Cake php 3.0

2015-12-22 Thread bruna
Boa tarde..estou usando o cake php 3.0,no meu localhost a aplicação ja esta pronta quando entro no navegador e digito:localhost/projeto/users/login aparece o login,so que la no meio do projeto o usuario digita no navegador::localhost/projeto/ aparece a pagina de inicial do cake alguem sabe

Unable to delete first record using postLink()

2015-12-22 Thread Jaspreet Sarao
Hello, I am new to cakephp.. I have used postLink() to delete the records. On a page, I am unable to delete first record using postLink(). I have used postLink() after $this->Form->create. $this->Form->postLink($image1, array( 'action' => 'delete', $item[$modelClass]['id'], ), array('escape'

ROUTER for friendly URL

2015-12-22 Thread Marco Garcia
Redid a website for a client in Cake 2.X and the current site (made native in PHP) has a BD with friendly URLs, something like: city/typestore/name-of-shop. Obviously the HTACCESS is set to receive and treat URLs and "play" the content accordingly. In the new application (in CakePHP) what I

I can't generating code coverage report in app/Test/Case/...

2015-12-22 Thread Hoa Vi Quang
I run command line: E:\xampp\htdocs\xxx\app>"./Console/"cake test app Model/BaseModel --stderr --coverage-html=coverage or E:\xampp\htdocs\xxx\app>"./Console/"cake test app All --stderr --coverage-html=coverage but when view https://xxx/app/webroot/coverage/app_Test_Case.html i do not see it.

Re: Cake php 3.0

2015-12-22 Thread Leandro Machado Pereira
Bruna, você pode incluir no seu router.php a configuração da rota padrão. http://book.cakephp.org/3.0/en/development/routing.html#quick-tour On Tue, Dec 22, 2015, 08:39 wrote: > Boa tarde..estou usando o cake php 3.0,no meu localhost a aplicação ja > esta pronta

Controller does not load automatically models in plugin (Cake 2.7.5)

2015-12-22 Thread Marco Garcia
The title already speaks exactly my problem. The controller does not load the standard model in the Plugin. I have to do manually. Including adding the word "Model " on the App::uses() , if not does not work. e.g.: App::uses("ContactModel", "PluginName.Model") If I insert just

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 , but nobody could not help. Well, I am here to help me. I need to join 3 tables (movies, comments, users) in my

Re: How to unset field value of a post edit view

2015-12-22 Thread euromark
You need to be more specific. Also, your forms should always preserve the correct state on post, and should preset on get with DB values etc. Failing to do so will get you in trouble. Mark Am Dienstag, 22. Dezember 2015 11:39:13 UTC+1 schrieb Amit Gora: > > i am using checkbox array in my form

Re: Unable to delete first record using postLink()

2015-12-22 Thread euromark
You already answer yourself: Forms in forms is invalid. The docs tell you what to do, use a block to capture the forms of the postLink() and output it after you closed the form. Mark Am Dienstag, 22. Dezember 2015 11:39:13 UTC+1 schrieb Jaspreet Sarao: > > Hello, I am new to cakephp.. > > I

Re: how to connect a simple registration form with mysql

2015-12-22 Thread euromark
Please see the tutorials in the docs. Mark Am Dienstag, 22. Dezember 2015 11:39:13 UTC+1 schrieb kumar pkvel: > > i want to connect a registration form am a beginner i need to connect in > xampp cake php version3.1.2 > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on

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

CakePHP 2.7.8 released

2015-12-21 Thread mark_story
The CakePHP core team is happy to announce the immediate availability of CakePHP 2.7.8. This is a maintenance release for the 2.7 branch that fixes several community reported issues. Bugfixes You can expect the following changes in 2.7.8. See the

Cakephp Unit testing:using fixtures in components

2015-12-21 Thread Ravi Kanth
Hi, Iam writing test cases for one component ,need to use fixtures in compoment. my code is Class SampleComponentTest extends TestCase { public $component = null; public $controller = null; public $fixtures = ['app.cities','plugin.sampleplugin.states']; public function setUp()

Is the automatic direction change broken in the paginator for the latest Cake 3 release?

2015-12-11 Thread heavyKevy
my index method has the following baked code. $this->paginate = [ 'contain' => ['Users', 'Heights', 'Weights', 'Bats', 'Throws', 'PrimaryPositions', 'SecondaryPositions'] ]; $this->set ( 'players', $this->paginate ( $this->Players ) ); And my index.ctp is the standard

Can someone please help with the syntax necessary to create the following query in Cake 3

2015-12-11 Thread heavyKevy
This is the target query: SELECT Players.id AS `Players__id`, Players.user_id AS `Players__user_id`, Players.opt_out AS `Players__opt_out`, Users.email AS `Users__email`, Users.first_name AS `Users__first_name`, s.searches AS `Players__search_count`, v.views AS `view_count`,

Re: Is the automatic direction change broken in the paginator for the latest Cake 3 release?

2015-12-11 Thread heavyKevy
Upon further examination, it works correctly for users, but fails for players On Saturday, December 12, 2015 at 4:08:21 AM UTC+7, heavyKevy wrote: > > Sorry, I just updated to the latest 3.1.5, > > here is an example link: > http://127.0.0.1/baseball/players/search?sort=weight=asc > after

Re: Is the automatic direction change broken in the paginator for the latest Cake 3 release?

2015-12-11 Thread heavyKevy
Sorry, I just updated to the latest 3.1.5, here is an example link: http://127.0.0.1/baseball/players/search?sort=weight=asc after clicking the weight link. while the browser is showing the same link: http://127.0.0.1/baseball/players/search?sort=weight=asc I would expect the new generated link

Re: Is the automatic direction change broken in the paginator for the latest Cake 3 release?

2015-12-11 Thread heavyKevy
I debugged it and discovered that sort options must be white listed if they are not part of the model. I missed that in the documentation... On Saturday, December 12, 2015 at 4:37:26 AM UTC+7, heavyKevy wrote: > > Upon further examination, it works correctly for users, but fails for >

Re: Can someone please help with the syntax necessary to create the following query in Cake 3

2015-12-11 Thread heavyKevy
Never mind... I got it. I discovered that the join ('table') must be set changed the following: join([ 's' => [$SearchCount, 'type' => 'LEFT', 'conditions'=> ['s.player_id = Players.id']], 'v' => [$ViewCount, 'type' => 'LEFT', 'conditions'=> ['v.player_id =

Re: Is the automatic direction change broken in the paginator for the latest Cake 3 release?

2015-12-11 Thread euromark
What "is" your latest cake3 release? Are you referring to 3.0 or 3.1? I highly doubt that, there are tests for this behavior. Are there any links outputted at all? What do they say? You need to be more exact in your statements, or it is hard to say anything here. mark Am Freitag, 11.

CakePHP 2.x translation fallback

2015-12-04 Thread Zbigniew Ledwoń
I need to have fallback in translation. If I have 2 translations ex.: 'eng' and 'es' Some records have both translations and some only one or none. I hoped that if I do it this way: $this->Post->locale = ['es', 'eng'];$results = $this->Post->find('first', array( 'conditions' =>

Onclick in multiple checkbox

2015-12-03 Thread joserafael
Hello: I would like to use a onclick function in a multiple checbox. Im trying with: echo $this->Form->input('deportes._ids', ['options' => $deportes, 'multiple'=> 'checkbox', 'onclick' => 'validar()' ]); But not working. What can I do? -- Like Us on FaceBook

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

Scaffolding Composite Keys

2015-12-02 Thread Luis Galicia
How can I solve composite keys , i want create am application using scaffolding -- 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: 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 I retrieve the

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 - SqlServer - CentOS (Linux)

2015-12-01 Thread Adaro2000
Hi Manoel Neto, I'm new with CakePHP. But concerning the way to connect SQLServer with Cake, I think you can install freetds, unixodbc and php5-sybase. You have to configure them as to let you connect Cake to the database. Please, can you try it and let me know the issue ? On Friday,

Re: fail to raise PDOException

2015-12-01 Thread urulab
SOLVED: Namespaces! \Exception instead Exception On Friday, November 27, 2015 at 3:02:34 PM UTC-3, uru...@gmail.com wrote: > > > 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?')]) ?>

CakePHP 2.x Persistent virtual fields problem

2015-11-29 Thread Sam Clauw
I have a brainteaser about virtual fields on associated models. I know it has it's limitations as you can read here: http://book.cakephp.org/2.0/en/models/virtual-fields.html#limitations-of-virtualfields . But in my specific case, I can't apply the theory of passing the virtualField property

CakePHP 3.1.5 Released

2015-11-29 Thread mark_story
The CakePHP core team is happy to announce the immediate availability of CakePHP 3.1.5. This is a maintenance release for the 3.1 branch that fixes several community reported issues. Bugfixes You can expect the following changes in 3.1.5. See the

Re: Plugin appController beforeFilter() action doesn't work anymore

2015-11-28 Thread Sam Clauw
I didn't find out which release changes caused the problem. But yesterday, I finally got the answar. When I changed the "beforeFilter" tot "beforeRender", it worked again! Thanks anyway for the help! Op donderdag 22 oktober 2015 12:13:17 UTC+2 schreef Rob Maurer: > > There are changes made

Re: Displaying, validating and saving multiple models in a form

2015-11-28 Thread MarkB
Sorry, I just realised that I was wrong in that it DOESN'T actually try to validate the child fields when there is just one child. Apologies for that. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because

Re: Cake 3 Base Authentication without Model

2015-11-28 Thread Rumkuchen
just found a way to solve it :-) I do not know, if it is the best way to implement and to place it... The docu helped my created a file

Cake 3 Base Authentication without Model

2015-11-28 Thread Rumkuchen
I want to use Basic Authentication without a Model - so I want to verify the credentials in a controller Is that possible? I know how to do it with Form-Authentication but not with Basic Authentication. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter

Displaying, validating and saving multiple models in a form

2015-11-28 Thread MarkB
Hi, I'm working on an event management system for a small educational company, that's turned out to be more complex than expected (isn't that always the way?). Basically, people apply online to book their child/children on a course instance. They initially state how many child places they

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',

Re: Configuration Problem

2015-11-25 Thread Leandro Machado Pereira
Man, you need to run composer for install dependencies of cake. See this post with the same problem of you: http://stackoverflow.com/questions/30412844/installing-cakephp-3-manually-without-composer []'s Em ter, 24 de nov de 2015 às 20:42, sebastian Oldani < sebastianold...@gmail.com> escreveu:

Re: cakephp 2.5 cron jobs

2015-11-25 Thread Igor Padovan da Silva
You can use the */full/path/to/Console/cake -app /full/path/to/app your_shell * 2015-11-21 4:40 GMT-03:00 Ruslan : > Hi, > The first of all, Did you try copy-paste your command in terminal? ( /path > /to/app/ && Console/cake your_shell_name params). Do you see ant

Re: generateTreeList starting from an id

2015-11-24 Thread Lê Minh Thành
work for me Vào 20:45:23 UTC+7 Thứ Sáu, ngày 16 tháng 3 năm 2012, gimmebucks đã viết: > > What i always do is get the node lft and rght value. > then set conditions array('Model.lft >' => $node['lft'],'Model.rght <' > => $node['rght']) > to include the node, substitute > with >= and < with <=

Re: create database within cakephp and fill it with some tables.

2015-11-24 Thread Ruslan
Hi, I miss understand for what. But in any case you can run any SQL request : Model::query() BR. -- 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"

Re: cakephp 2.5 cron jobs

2015-11-24 Thread Ruslan
Hi, The first of all, Did you try copy-paste your command in terminal? ( /path/ to/app/ && Console/cake your_shell_name params). Do you see ant errors? show it here. Check users rights I think you have issue (or will have second issue :) ) with permissions for tmp/cashe. Don't forget, you run

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

Configuration Problem

2015-11-24 Thread sebastian Oldani
Hello friends, i am new in this list and i have a problem with my cakephp3 configuration. I installed a server with apache2, php5, mysql, (php5-intl), etc.. I downloaded the cake from the site, and unzip in my server. When i try to open the page i have an error (Fatal Error) like this Error:

how to make a array path

2015-11-24 Thread skank
first thank for all CakePHP. I learned a lot of thing when i work with your framework and I hope I can be useful one day I am writing this little code to cycle through the array and I think that it can be useful 1){ $path = strstr($path,'.'); $path =

failed to open stream: Permission denied give error when I use SFTP and phpseclib 0.3.0

2015-11-24 Thread mohsin rathod
Hi, I used cakephp 2.7.6 , Apache server of Centos and Centos 6.7. My application root directory is /var/www/Vasudev/ Vasudev is my application name. I want to download a files from FTP server. Suceessfully login and Listing the files for download in cakephp. but Bellow error is not do

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's. I think the best

<    1   2   3   4   5   6   7   8   9   10   >