Re: CakePHP 3.0 Plugin - Where to put a « global » function for multiple helpers

2015-07-27 Thread Mikaël Capelle
Thanks! Exactly what I was looking for. On Monday, July 27, 2015 at 2:29:31 PM UTC+2, Florian Krämer wrote: Then use a trait http://php.net/manual/en/language.oop5.traits.php. On Monday, July 27, 2015 at 11:32:54 AM UTC+2, Mikaël Capelle wrote: I cannot do that without multiple inheritance

Recording Emails Sent

2015-07-27 Thread #2Will
I'm trying to work out a good way to record all the emails the system has sent. I want to record them to DB, with columns for To, Subject and Message. I don't think that CakeEmail triggers any events or callbacks I can hook into? If I write a custom Log, I think I just get back the Whole

Re: CakePHP 3.0 Plugin - Where to put a « global » function for multiple helpers

2015-07-27 Thread Mikaël Capelle
I cannot do that without multiple inheritance (which, as far as I know, does not exist in php) because as I stated in my post, all my helpers does not inherit a standard CakePHP helpers, for instance I have: class MyHTMLHelper extends HTMLHelper { ... } class MyFormHelper extends FormHelper {

Re: CakePHP 3.0 Plugin - Where to put a « global » function for multiple helpers

2015-07-27 Thread Florian Krämer
Simple OOP? MySpecialHelper extends MyBaseHelper {...} MyOtherSpecialHelper extends MyBaseHelper {...} And MyBaseHelper implementds addClass(). On Friday, July 24, 2015 at 10:23:43 AM UTC+2, Mikaël Capelle wrote: Hi everyone, I am writing a CakePHP 3.0 plugins, and I have multiple helpers

How to integrate Twitter Bootstrap to cakePHP 1.2

2015-07-26 Thread dbarasuk
Hi all, I'm very new to this forum. First of all my excuses because I'm using cakePHP 1.2 due to the lack of good web tutorials. So i have finished reading a PDF book I just downloaded from the Internet. I'm stuck on how to integrate Twitter Bootstrap in my exercise application especially in

Re: CakePHP 3.0.10 Released

2015-07-26 Thread Aashish Dubey
I have a shared hosting plan of Linux cpannel on godaddy for 1 year. I have developed my website in cake framework 3.0 every thing is working smothly at my local machine but when i uploaded this on server it is throwing the below mentioned error. 25-Jul-2015 12:32:07 UTC] PHP Fatal error: You

Re: generateList() returning SQL error.

2015-07-26 Thread dbarasuk
I found the error that was in the add.ctp. Changing $form-hidden('author_id') to $form-input('author_id') solved my problem. I'm using cake 1.2 too. On Sunday, July 5, 2009 at 6:53:45 AM UTC+2, centr0 wrote: my db is designed as one author can have many books. books belongsto authors.

How to upload bulk records in CAKEPHP

2015-07-26 Thread Umair Nasir
A 4 column dashboard with 10 rows is provided wherein the user can enter details as follows: Column 1 – File Category Column 2 – File Type Column 3 - File Reference Column 4 – Upload FIle (any type) Upload button– uploads the details of all the documents entered simultaneously I am

CakePHP 1.3 Shell can't find AppModel class

2015-07-26 Thread Andrew Burchill
Hi All, I have just posted a question to stack overflow and would like to post it here as well for more visibility, hopefully this is ok. The short version is I am having trouble getting the shells to work after migrating a cakephp 1.3 app, any help would be much appreciated.

CakePHP 3.0 Plugin - Where to put a « global » function for multiple helpers

2015-07-24 Thread Mikaël Capelle
Hi everyone, I am writing a CakePHP 3.0 plugins, and I have multiple helpers (inheriting from either HTMLHelper, FormHelper, PaginatorHelper, etc.). In each of these new helpers, I have a function *addClass* (copy/paste from helper to helper... ). I don't really like having duplicated code (5

Re: CakePHP 3 - Login form not working

2015-07-22 Thread 'Sajoscha Sauer' via CakePHP
Hi, Did you make sure that the password column in your database is long enough for a hashed password? Otherwise your code looks fine and should actually work, I guess. Cheers, Sajoscha On Jul 20, 2015, at 9:33 PM, Mark Dijkema mark.dijk...@gmail.com wrote: I am following both the

cakephp 3.0 session not supported in safari browser

2015-07-22 Thread Karthik Keyan
Hi, We have created the application using cakephp 3.0 that an application runs in an Iframe. Now the problem is **not able to get the session value in the safari browser**. We have tried this solution added header ('P3P: CP=CAO PSA OUR') ---It works fine in IE browser Anyone please, help to

IFrame not supported the session values

2015-07-21 Thread Karthik Keyan
Hi I am created the iframe application using cakephp3.0, session values not supported in *safari and IE web browser*. any one please help -- 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 - Login form not working

2015-07-21 Thread Mark Dijkema
I am following both the tutorials in the CakePHP 3 documentation and I am trying to get the login functionality working, but so far I have no luck. I have a Users table with the 2 fields 'username' and 'password'. The password is hashed with `(new DefaultPasswordHasher)-hash($password);` After

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

Cakephp 3.0 Session setting

2015-07-21 Thread Karthik Keyan
Hi, I am Try setting the Session.checkAgent configuration to false. How to change the session setting in cakephp 3.0 -- 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

Re: CakePHP 3 Component

2015-07-20 Thread euromark
You can also keep things skinny by leveraging components here maybe. Am Samstag, 18. Juli 2015 13:21:20 UTC+2 schrieb Jeremy Burns: Yup - I understand that. But a method in a skinny controller (which I appreciate is the element that should provide feedback on progress) hands off to a single

Cakephp 3 core path change

2015-07-20 Thread CCorreia
Hi everyone. I'm having a small problem changing the path of cake core files. So I change the path on the Config/paths.php file to something like: define('CAKE_CORE_INCLUDE_PATH', '/path/to/library/cakephp'); I have no trouble running the code after this change but as soon as I remove the

Re: CakePHP 3 Component

2015-07-18 Thread Jeremy Burns : Class Outfit
Yup - I understand that. But a method in a skinny controller (which I appreciate is the element that should provide feedback on progress) hands off to a single model function which then follows business rules and runs a series of processes in sequence. So my question is “when the progress one

Re: CakePHP 3 Component

2015-07-18 Thread euromark
multi-step sounds like the C in MVC. the model itself has nothing to do with stateful requests IMO. Am Freitag, 17. Juli 2015 11:08:21 UTC+2 schrieb Jeremy Burns: What about the situation where you have a multi-step process inside a model/s and you want to make the progress status available

Re: CakePHP 3 Component

2015-07-17 Thread euromark
Your models should stay stateless, as such you should never internally use the session. Instead, pass the data to the model layer or use events to pass them Use https://github.com/UseMuffin/Footprint Mark Am Donnerstag, 16. Juli 2015 23:03:45 UTC+2 schrieb Rafael Queiroz: Hi guys, I need

Re: CakePHP 3 Component

2015-07-17 Thread Jeremy Burns : Class Outfit
What about the situation where you have a multi-step process inside a model/s and you want to make the progress status available to javascript calls? On 17 Jul 2015, at 09:55, euromark dereurom...@gmail.com wrote: Your models should stay stateless, as such you should never internally use

Re: CakePHP 3 Component

2015-07-17 Thread Rafael Queiroz
Mark, Thanks a lot, solved my problem. On Fri, Jul 17, 2015 at 5:55 AM, euromark dereurom...@gmail.com wrote: Your models should stay stateless, as such you should never internally use the session. Instead, pass the data to the model layer or use events to pass them Use

Uploading Cakephp site to live server and getting error 500 internal server error

2015-07-16 Thread Amitava Pramanik
I have created a cakephp site and uploaded to my staging server. The Url is http://xecutiontech.com/rr-2/ In my staging server the site has been uploaded to the folder named rr-2 that's why the url looks like xecutiontech.com/rr-2. The site looks ok if I hit the above mentioned url. My client

CakePHP 3

2015-07-16 Thread Rafael Queiroz
Hi guys, I need store the currently logged in user as a reference for the created register, the cakebook sample is: public function add(){ $article = $this-Articles-newEntity(); if ($this-request-is('post')) { $article = $this-Articles-patchEntity($article, $this-request-data);*

Re: CakePHP 3

2015-07-16 Thread Rafael Queiroz
Hey man, I need skinny controller. I need remove this code to controller for using in Model/Entity or Model/Table. On Thu, Jul 16, 2015 at 11:17 AM, 'Sajoscha Sauer' via CakePHP cake-php@googlegroups.com wrote: Hi Rafael, $userid = $this-Auth-user('id'); $this-request-data['user_id'] =

CakePHP 3 Events

2015-07-16 Thread Rafael Queiroz
Hi guys, I have question for Cake Events conventions: $event = new Event('Model.Order.afterPlace', $this, []); “*Order*” or “*Orders*” ? I abstract modelAlias using in AppTable: public function afterSave(\Cake\Event\Event $event, $entity, $options) { if ($entity-isNew()) {

Re: CakePHP 3

2015-07-16 Thread 'Sajoscha Sauer' via CakePHP
Hi Rafael, $userid = $this-Auth-user('id'); $this-request-data['user_id'] = $userid; $article = $this-Articles-patchEntity($article, $this-request-data); if ($this-Articles-save($article)) { … That works for me, hope it helps! Cheers, Sajoscha On Jul 16, 2015, at 3:59 PM, Rafael

CakePHP 3 Component

2015-07-16 Thread Rafael Queiroz
Hi guys, I need loaded components in my Models, actually Auth Component, for store user id logged. In old version, CakePHP 2.x, i using in my model: App::uses('AuthComponent', 'Controller/Component'); public function beforeSave() { if (!$this-id) { $this-data[$this-alias]['user_id']

Re: Composer and Cake lib folder

2015-07-16 Thread euromark
yes and yes the additional files don't hurt :) Am Dienstag, 14. Juli 2015 17:13:31 UTC+2 schrieb brett.shi...@gmail.com: Ok, that example clears up my confusion. Basically when cake is required within the composer file, it gets downloaded to the Vendor folder. I then need to edit my

Re: Uploading Cakephp site to live server and getting error 500 internal server error

2015-07-16 Thread Mike Knight
Please check your web server(nginx/apache) logs . without further information ,I can't say what's wrong. 2015-07-16 14:03 GMT+08:00 Amitava Pramanik amitava.xecution.technolog...@gmail.com: I have created a cakephp site and uploaded to my staging server. The Url is

CakePHP 3.0.9 Released

2015-07-16 Thread mark_story
The CakePHP core team is happy to announce the immediate availability of CakePHP 3.0.9. This is a maintenance release for the 3.0 branch. Bugfixes You can expect the following changes in 3.0.9. See the [changelog](http://cakephp.org/changelogs/3.0.9) for every commit. * Index and

Re: Hide folder in url

2015-07-15 Thread Ken Winans
You really should consider moving everything in your new/frontend/ folders up to public_html. This is how CakePHP should be configured out of the box. The reason your RewriteRules are not working is because they are AFTER the standard rules for CakePHP. The have no effect because the CakePHP

Query

2015-07-15 Thread Hugo Fabricio
Hi, Can anyone help me for this query in cakephp 2 format? *SELECT * FROM `app_customers` AS `Customer` WHERE id IN ( SELECT DISTINCT (customer_id) FROM `app_buildings`)* Thanks -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You

Re: Query

2015-07-15 Thread Christian Quispe
Si usas la v2 tendrás que usar este metodo: $this-Customer-query(SELECT * FROM pictures LIMIT 2;); http://book.cakephp.org/2.0/en/models/retrieving-your-data.html#model-query Te recomiendo que uses la versión 3. Enviado con MailTrack

Re: upload images cake 3.0

2015-07-14 Thread Florian Krämer
Try https://github.com/burzum/cakephp-file-storage maybe not the most beginner friendly plugin but IMHO the most powerful. You can already try the 3.0-event-overhaul branch, the event listeners are completely rewritten and now as good as I wanted them to be for a long time. -- Like Us on

Check tax code (fiscal code) when insert a user

2015-07-14 Thread Allison Mckenzie
Could someone pls explain to me also what the fiscal code is about I'm not sure what it's is either -- 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: Which parts of the framework can be used outside the framework?

2015-07-14 Thread Allison Mckenzie
A library holds all original editors with a licence for copy writers permission for editors also. There a lot off research in everything and an excellent framework for all new starters, and do edit and write pieces that are their own original piece instead off a piece that's rewritten On

Re: Composer and Cake lib folder

2015-07-14 Thread brett . shigoto . chuu
Ok, that example clears up my confusion. Basically when cake is required within the composer file, it gets downloaded to the Vendor folder. I then need to edit my app/webroot/index.php to point to the Cake core lib folder in /Vendor/cakephp/. Is that correct? Also, I noticed composer also

Run a php file in backgorund

2015-07-14 Thread Ravinder Baid
I want to run a single file i.e A.php that includes a file which is a part of app(cakephp app) lets name it as B.php and this B.php runs the Neo4j. So how shall I go through this process? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP

Re: Hide folder in url

2015-07-14 Thread Allison Mckenzie
Online users don't like accessing websites that has hidden links on them, you want to users to access them, why hide links if it's safe and secure On Friday, 10 July 2015, michel martins michelmfrei...@gmail.com wrote: Hi people, I use cakephp and I have a domain www.site.com.br/new and i

Re: CakePHP 3 with ckeditor and kcfinger

2015-07-14 Thread Allison Mckenzie
Get a business phone line and create a ur life link that works, try and get your own website licence and your own editor code , all linked to a url off your own instead off another editors On Saturday, 11 July 2015, gianmere gianm...@gmail.com wrote: I'm using CakePHP 3 with ckeditor and

Pools/betting sports links matched odds/

2015-07-14 Thread allisonmck84
Approaching successful betting site, Promote company products using your own links and your own websites to build up your own client/customer base as a third party Business on behalf of successfull company's under their licence and their terms and agreements under licences commissions

Re: Check tax code (fiscal code) when insert a user

2015-07-14 Thread allisonmck84
Didn't believe the hmrc Woud email customers claiming their eligible for a tax refunds of the amounts figure stated claiming s random fiscal tax code that most likely doesn't exist, how can you think it would be s true email if the unemployment that haven't had a job in years ad certainly

Re: Composer and Cake lib folder

2015-07-13 Thread euromark
That is actually how you are *supposed* to do it. the vendors including the cake core should never be commited and tracked. See https://github.com/dereuromark/cakefest for an example implementation (both 2.x and 3.x composered). mark Am Sonntag, 12. Juli 2015 13:23:06 UTC+2 schrieb

Re: Hide folder in url

2015-07-13 Thread michel martins
Can I configure this option in ROUTES? How? Em sexta-feira, 10 de julho de 2015 18:36:09 UTC-3, michel martins escreveu: Hi people, I use cakephp and I have a domain www.site.com.br/new and i will like the user see www.site.com.br . I made in .htaccess, but don't is working. Can anybody

Re: Check tax code (fiscal code) when insert a user

2015-07-13 Thread John Andersen
If you are storing the fiscal code in a database, make the column unique and then the database will inform you if you are trying to insert a fiscal code that already exists. Enjoy, John On Tuesday, 30 June 2015 21:27:38 UTC+3, Andrea Manca wrote: Hi all, i'm new to cakephp and i use the 3

Re: Assets via IP working but not with domain

2015-07-13 Thread John Andersen
Hi Sven Have you fixed your issue? In case you have, what was the solution? In the case you haven't - when you access it via IP how exactly are you doing that? http://-ip address- or something else? How are you trying to access it using the URL? Enjoy, John On Tuesday, 30 June 2015 12:12:21

Re: cakephp ajax pagination

2015-07-13 Thread euromark
There are many different (and easy ways), IMO the best way would be one that also allows a fallback (non js in case js is broken or for google bot etc) see http://sandbox3.dereuromark.de/sandbox/ajax-examples/pagination for an example in cake3. mark Am Sonntag, 12. Juli 2015 13:23:07 UTC+2

Re: XML output

2015-07-13 Thread John Andersen
Take a look in the CakePHP book 2.x at this location http://book.cakephp.org/2.0/en/views/json-and-xml-views.html#using-a-data-view-with-view-files The solution is written in the class XmlView section :) Enjoy, John On Tuesday, 30 June 2015 16:43:25 UTC+3, Juan Ezquerro LLanes wrote: I'm

Re: upload images cake 3.0

2015-07-12 Thread joserafael
Look this plugin https://github.com/Xety/Cake3-Upload El domingo, 12 de julio de 2015, 6:53:07 (UTC-4:30), Maxwell Ochieng escribió: I am working with cakePhp 3.0.I am stuck trying to either store the image in the database or image path in the database(either is fine).I have a form that

Schema Shell for Procedures, Views Triggers.

2015-07-12 Thread Sankalp Bohra
Schema shell is not working for procedures, views, and triggers. How can I use it for procedures, views and triggers as well. Is their any external plugin present that helps me with this?? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP

Regarding to parseExtensions Error

2015-07-12 Thread Octal Test
*Hi When we had routes.php cakephp3.xRouter::mapResources(['websiphones']); Router::parseExtensions('xml','json');Error: * Call to undefined method Cake\Routing\Router::parseExtensions() *File* D:\xampp\htdocs\devcakephp\config\routes.php *Line: * 88 -- Like Us on FaceBook

CakePHP cPanel et envoi des Emails

2015-07-12 Thread Ouafae Bel'
Bonsoir, Je suis débutante en CakePHP et je rencontre le problème qui suit : J'ai besoin d'envoyer des courriels à travers CakeEmail , qui fonctionne très bien en local mais pas sur le serveur . Je suis sur ' cPanel' . J'ai donc un problème avec l'adresse email de mon serveur

Composer and Cake lib folder

2015-07-12 Thread brett . shigoto . chuu
I have a standard Cake project setup on Github. The project root for has the app, lib folders in addition to all the other files like .gitignore. I would like to remove the lib folder from my repo and control which Cake version I am using with a dependency manager. Is this possible with

cakephp ajax pagination

2015-07-12 Thread Daniel Uche
I am trying to do an ajax pagination in cakephp 3.0 but for some reason i can't get around it -- 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

CakePHP 3 Book: Is anyone writing an introductory book to help beginners get started?

2015-07-12 Thread Paul M
Is anyone writing an introductory book about CakePHP 3 aimed at beginners? I'm asking because I've seen books about other frameworks such as Yii and Laravel. They can typically be found on LeanPub, Amazon / Kindle, and Paktpub.com etc. But I have not seen any CakePHP 3 books. The most recent

CakePHP 3 with ckeditor and kcfinger

2015-07-12 Thread gianmere
I'm using CakePHP 3 with ckeditor and kcfinder. I have configured all how said there: http://kcfinder.sunhater.com/integrate I've a problem when I try to uploda or browse files. I've the error: Error: Controller class Js could not be found. I know it's normal: when I tried to open the script

upload images cake 3.0

2015-07-12 Thread Maxwell Ochieng
I am working with cakePhp 3.0.I am stuck trying to either store the image in the database or image path in the database(either is fine).I have a form that collects information and an image.I am able to get the form to store the image on webroot but I am struggling with storing the same image

CakePHP 2.7.0 Released

2015-07-12 Thread mark_story
The CakePHP core team is happy to announce the immediate availability of CakePHP 2.7.0. 2.7.0 is an API compatible feature release for the 2.x release series. The last 2.6 release will be 2.6.9, which will be released later this week. 2.7.0 should be a drop in replacement for your existing 2.5

Making AssetCompress Work With Friendsofcake/App-Template

2015-07-10 Thread OJ Tibi - @ojtibi
Hello, folks. Back story: I came across Mark's AssetCompress plugin through the FriendsOfCake website, and I've been using it with my 2.x projects, before I started using the app-template, and it works nicely. Fast-forward: I have a new project that uses friendsofcake/app-template for 2.5,

Re: noisy logs

2015-07-10 Thread euromark
You should always mention the exact cakephp version you are using. Am Freitag, 10. Juli 2015 02:17:35 UTC+2 schrieb . .: Is there a way to split the NotFoundException to another log file? Instead of error.log, it should go to, for example, notfoundexception.log file. Thanks -- Like Us

Re: noisy logs

2015-07-10 Thread rc . gojinny
Sorry. I am using cake 2.6. On Friday, July 10, 2015 at 12:01:11 AM UTC-7, euromark wrote: You should always mention the exact cakephp version you are using. Am Freitag, 10. Juli 2015 02:17:35 UTC+2 schrieb . .: Is there a way to split the NotFoundException to another log file? Instead

Re: Which parts of the framework can be used outside the framework?

2015-07-10 Thread ravage1984
David, First, checkout the various GitHub repos besides the framework, the app skeleton and the usual suspects such as DebugKit: https://github.com/cakephp/ Let's take Event for example: https://github.com/cakephp/event There is not only a README as you found out, but more importantly a

Hide folder in url

2015-07-10 Thread michel martins
Hi people, I use cakephp and I have a domain www.site.com.br/new and i will like the user see www.site.com.br . I made in .htaccess, but don't is working. Can anybody help me, please? my .htaccess code in /public_html/new/frontend/ where frontend is a cakephp folder in directory new.

Re: Which parts of the framework can be used outside the framework?

2015-07-09 Thread Reuben
Not quite a direct answer, but I'm able to Cake parts like the CakeSession in CakePHP 2.x in legacy applications, so I can do a part migration to CakePHP. All I need is to include the webroot/index.php, and make a small modification to recognise that it has been called from a legacy

Como Ativar o mcrypt no php.ini

2015-07-09 Thread Ronaldo Marins
Sou iniciante em CakePHP e estou apanhando para ativar o mcrypt no php.ini. sou usuário de macbook. Grato pela atenção de todos que puderem contribuir. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because

How to execute stored procedure in cakephp 2.6 with mssql server 2005 ?

2015-07-09 Thread The_devil_3
Hi everyboy, It's been a a month now that i'm trying to execute and get the result of a stored procedure wich is located in mssql server with cakephp. So far I've tried this : $conn = $this-DevCondition-getDataSource('default'); $result = $conn-query('Exec [dbo].[cond_docu_log_errors]');

Re: Which parts of the framework can be used outside the framework?

2015-07-09 Thread Florian Krämer
Not directly an answer to your problem but I would appreciate if we could make more parts of the framework completely self-contained if possible. Other frameworks, especially Symfony, does a very good job in doing so and on top of that they use their libs as a marketing tool. To me it looks

noisy logs

2015-07-09 Thread . .
Is there a way to split the NotFoundException to another log file? Instead of error.log, it should go to, for example, notfoundexception.log file. Thanks -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because

Which parts of the framework can be used outside the framework?

2015-07-08 Thread David Yell
I've noticed that stuff like the Event library have their own readme's does that mean that the library can be used outside the framework, like a component? I'm making a presentation and I would like a list of all the parts of the framework which can be used outside the framework as a bonus

saveMany validation not working correctly

2015-07-06 Thread Javi
I'm trying to do this With last 2.x CakePHP version, I'm trying to do a upload multiple file form with validations but not working... *DocsController.php (action add)* if ($this-request-is('post')) { if ($this-Doc-saveMany($this-request-data, array('deep' = true))) {

Problems with relationships without Auto increment

2015-07-06 Thread Ronaldo Matos Rodrigues
I have the following relationships Contact HABTM List list HABTM Contact Only I had to take my auto_increment primaryKey ID field from the contact table, I'm having problem when using INSERT IGNORE. To replace the auto_incremente created the following trigger: DECLARE AUTOI int UNSIGNED

Re: In CakePHP 3, how do I check if user is logged in and has admin rights?

2015-07-05 Thread DJ Far
SessionHelper is deprecated; use $this-request-session()-read('Auth.User.id'); On Monday, December 8, 2014 at 2:29:35 AM UTC-8, euromark wrote: if ($this-Sessioncheck('Auth.User.id') {} Am Montag, 8. Dezember 2014 02:32:28 UTC+1 schrieb frocco: I want to check in my default layout.

Basic usage of cakePHP 3.0 Upgrade tool - Where to install the upgrade tool?

2015-07-03 Thread glk
Ok, you got me into cakePHP 3.0, but now it's time to actually upgrade a V2 site to V3. The Upgrade tool README.md says After downloading/cloning the upgrade tool, you need to install dependencies with 'composer' OK, but the what FOLDER was I supposed to download and unpack the

Re: multi table query with cross reference table

2015-07-02 Thread rxhector...@gmail.com
OK - NVM I figured it out what I learned - how to create a query / subquery object expression to use //create subquery $sub = $query-newExpr('select t.op_team_name from Teams t where (t.ws_team_name=Matches.team_home OR t.ws_team_name=Matches.team_away) and

Re: multi table query with cross reference table

2015-07-02 Thread rxhector...@gmail.com
OK, i found the right query - now i just need to modify it into cakephp orm SELECT Matches Seasons... OpMatches... FROM matches Matches LEFT JOIN seasons Seasons ON (Seasons.id = (Matches.season_id) AND Seasons.stage_id = (Matches.stage_id)) LEFT JOIN op_matches OpMatches ON

Re: Validation Example

2015-07-01 Thread joserafael
Use 'message'. For more information visit: http://book.cakephp.org/3.0/en/core-libraries/validation.html#creating-validators El viernes, 26 de junio de 2015, 7:17:53 (UTC-4:30), Kingston Abraham escribió: How will the error messages in validator will appear. Is there any live example to

multi table query with cross reference table

2015-07-01 Thread rxhector...@gmail.com
The problem, I have two tables that need to be 'matched up' from data in a third table I am currently using a contains query - but I think the final part should be a subquery - just not sure of how to go about it. I dont need any 'data' from the third table - just using it to compare some name

component to list all controllers and actions

2015-06-30 Thread Helton Nogueira Uchoa
Hi, I'm coding in CakePHP 3. I'm trying to make a user manager inspired in AdaptCMS with custom roles. I need make a component like this: https://github.com/cakebaker/controller-list-component/blob/master/app/Controller/Component/ControllerListComponent.php I don't know how list controllers and

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

Assets via IP working but not with domain

2015-06-30 Thread Sven Mäurer
I configured my virtual host like this: http://pastebin.com/Hgu3se5A Access via IP is working but not with the URL. Than I got problems with the assets. In the core file I set the Configure::write('App.fullBaseUrl', 'www.innolabvenlo.nl'); The /etc/hosts file has the entry of: ip

XML output

2015-06-30 Thread Juan Ezquerro LLanes
I'm using cake 2.x, how can i use _rootNode for custom xml output? I would like to delete the response/response labels. -- 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

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

2015-06-30 Thread Eric Haskins
Yeah I have dedicated servers so not run by GoDaddy let me know. Since I host many sites I am looking into having php 5.5 and php 5.4 for some our hosting customers. I see no issues with cakephp 3 and 5.5 . so maybe they need to change minimum requirements -- Like Us on FaceBook

Check tax code (fiscal code) when insert a user

2015-06-30 Thread Andrea Manca
Hi all, i'm new to cakephp and i use the 3 version. I'm lovin' it!!! :-) I try to check the fiscal code (i'm italian and in my country the fiscal code = tax code is the unique id for all person) because i need to check if the user exist and don't insert duplicate. I'm going crazy to do that

Re: Result of function search is very large

2015-06-29 Thread euromark
Looks to me as if you could have done the same thing properly (not using session but PRG pattern) and with 3 lines of code using https://github.com/CakeDC/search mark Am Montag, 29. Juni 2015 10:30:50 UTC+2 schrieb Eb ook: Hello all, Result of function search is very large, It sometime is

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

2015-06-29 Thread Eric Haskins
?php trait Foo { private static $conf; public static function config($a) { static::$conf = $a; } } class Bar { use Foo { config as protected _config; } public static function config($a) { static::_config($a); } }

Result of function search is very large

2015-06-29 Thread Eb ook
Hello all, Result of function search is very large, It sometime is wrong. Can you help me to fix it. This is source this function. public function find(){ $this-layout = 'listimage'; $this-set('title_for_layout', __('Search Results', true)); $this-Image-recursive = 0;

CakePHP 2.6.8 Released

2015-06-29 Thread mark_story
The CakePHP core team is happy to announce the immediate availability of CakePHP 2.6.8. This is a maintenance release for the 2.6 branch. Bugfixes You can expect the following changes in 2.6.8. See the [changelog](http://cakephp.org/changelogs/2.6.8) for every commit. * Fix issue with

CakePHP 3.0.8 released

2015-06-28 Thread mark_story
The CakePHP core team is happy to announce the immediate availability of CakePHP 3.0.8. This is a maintenance release for the 3.0 branch. Bugfixes You can expect the following changes in 3.0.8. See the [changelog](http://cakephp.org/changelogs/3.0.8) for every commit. *

cakephp3 errors..... after edit db info

2015-06-28 Thread Eric Haskins
Hey All So Im trying to get version 3 running. Aside from not liking the composer BS Im having a issue with initial install and setup. I get it running at http://cake3.farsightedmedia.com on the initial setup and works fine as soon as I change the DB credentials //'port' =

JOB POST: CakePHP Developer Needed (Full time in LA area)

2015-06-27 Thread atoney
*Company:Stage 32 (Stage32.com* *Job Description:CakePHP 3 Web Developer * Established in 2011, Stage 32 is the world’s largest social network and eduational hub for film, television and theater creatives. *Forbes* Magazine has called Stage 32 “LinkedIn meets Lynda

Re: Load model in bootstrap

2015-06-27 Thread basant
thanks its working for me too App::uses('ClassRegistry', 'Utility'); $Setting = ClassRegistry::init('Configuration'); -- 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: CakePHP 3.0.7 Released

2015-06-26 Thread Ankit Bhardwaj
it gives 500 internal server error on putting this script. I checked all configurations on my server but cant able to rectify the issue. Please help. On Mon, Jun 22, 2015 at 2:28 PM, Ankit Bhardwaj ankitbhardwaj244...@gmail.com wrote: it seems my server have some problem, on my friends server

Validation Example

2015-06-26 Thread Kingston Abraham
How will the error messages in validator will appear. Is there any live example to see -- 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

Re: CakePHP 3.0.7 Released

2015-06-26 Thread Ankit Bhardwaj
check http://myceo.us/backup/ On Fri, Jun 26, 2015 at 4:50 PM, José Lorenzo jose@gmail.com wrote: With what error message? On Friday, June 26, 2015 at 1:13:17 PM UTC+2, Ankit Bhardwaj wrote: it gives 500 internal server error on putting this script. I checked all configurations on my

Re: CakePHP 3.0.7 Released

2015-06-26 Thread José Lorenzo
With what error message? On Friday, June 26, 2015 at 1:13:17 PM UTC+2, Ankit Bhardwaj wrote: it gives 500 internal server error on putting this script. I checked all configurations on my server but cant able to rectify the issue. Please help. On Mon, Jun 22, 2015 at 2:28 PM, Ankit

cake 3, import a class stored in webroot

2015-06-25 Thread lorenzoshake
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 this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from

Re: How to create Login using already-hashed password from another application (non-cakephp application)

2015-06-25 Thread chol paul
find out the password hasher of that app. and create a mirror of that class of course the cakephp way. password hashers are found in app/controller/components/auth. Optionally your custom hashers can extent AbstractPasswordHasher On 6/25/15, 'Cruisine' via CakePHP cake-php@googlegroups.com

Re: Editor for Cakephp

2015-06-25 Thread Douglas Costa
Netbeans On Jun 13, 2015 4:12 AM, Pamela Whittaker knutsfordsoftw...@gmail.com wrote: What do you suggest as an editor for CakePHP please? I use Dreamweaver cs6 for PHP but that doesn't open .ctp files. Thanks -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter

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