Re: cakephp 2.4 projects does not work on ios 7 devices like ipad 2.

2014-03-06 Thread Renato de Freitas Freire
Hi! I have a few systems built on several versions of cake. All systems work fine on iDevices. Actually, I'm working on an ipad 2 with ios 7 (last update) right now. My cake version is 2.3.4. I have lagacy version running on cake 1.2 and 1.3, both working fine on ipad 2 ios 7. I also tested in

Re: How to create multiple apps in one core?

2013-07-19 Thread Renato de Freitas Freire
Check the manual: http://book.cakephp.org/2.0/en/installation.html It's all step by step there -- Renato Freire On Fri, Jul 19, 2013 at 12:01 PM, Amogh Venkatesh amoghv...@gmail.comwrote: I have tried many things to od yet I am not able to. Can anyone give me step by step procedure to do

Re: Get old record in beforeSave when updating (doing a $this-find() inside beforeSave callback)

2013-06-29 Thread Renato de Freitas Freire
Hi. Why don't you save $this-data in another var before calling findById()? Something like this: class User extends AppModel { public function beforeSave($options){ //is it an update? if (isset($this-data[$this-alias][$this-primaryKey])) { //read record

Re: backup of mysql using cakephp

2013-06-19 Thread Renato de Freitas Freire
Why don't you use mysqldump? It's the best way. -- Renato Freire On Wed, Jun 19, 2013 at 2:34 AM, Nikunj Amipara nikamipar...@gmail.comwrote: hi, does any one know how do i backup my sql database in simple sql file using cakephp -- Like Us on FaceBook

Re: Helo. Please help me

2012-11-15 Thread Renato de Freitas Freire
It's really hard to understand your questions. But cakephp is extremely flexible. cake has some standards, but you can change it, if you want. If you want to use other field as primary key, instead of ID, just set it on your model file (var $primaryKey = 'your_field'). If you have some

Re: Best way to implement a follower system (like Twitter) ?

2012-06-13 Thread Renato de Freitas Freire
There is a twitter clone you can study... its not based on cakephp, but it is written in php... so, it may be simple to understand and build your own clone. http://www.baixebr.org/softwares/programacao/twitter-clone-script-php-micro-blogging/ -- Renato Freire On Wed, Jun 13, 2012 at 2:43

Re: Cake is NOT able to connect to the database.

2012-01-02 Thread Renato de Freitas Freire
You are absolutely right. I just enabled pdo_mysql on my php.ini and it worked! Ronghua: try this hint. Worked for me. -- Renato Freire 2012/1/1 清水��己 hiromi2...@gmail.com My last guess is pdo mysql is not enabled. 2012/1/1 Renato de Freitas Freire renat...@gmail.com: I had the same

Re: Cake is NOT able to connect to the database.

2011-12-31 Thread Renato de Freitas Freire
I had the same problem when start using cake 2.0.4 on my work, but I tried it on my pc and it work fine. It might be something with your server configuration. I will doble check it on monday on my work. Any news I tell you. But you can try it on other server, or try to upgrade your mysql, or

Re: How can I link these models together? Product and multiple users

2011-12-08 Thread Renato de Freitas Freire
Try to set classname to User intead of Buyer. Cake will look after the model named there. Probably, cake is trying to find Model Buyer, that doesnt exists. On Thursday, December 8, 2011, denisr den...@gmail.com wrote: I forgot to mention. In the bake process I made an alias for the buyer,

Re: wizard component multiple

2011-07-06 Thread Renato de Freitas Freire
Hello. I think it will give you many troubles. First, you will need a newinstance of the component, otherwise it will conflict with the first instance you are already using. Then you will be able to use like $this-Wizard1-steps and $this-Wizard2-steps, got it? But even that way it may not work,

Re: Wizard component: back link

2011-06-15 Thread Renato de Freitas Freire
If you want to save your data before previous (so user wont lose typed data): function _beforeCancel() { // if user click on Cancel button: $this-Model-save($this-data); } function _beforePrevious() { // if user click on Back/Previous button:

Re: Generate Excel from cakephp

2011-05-13 Thread Renato de Freitas Freire
Try this: - xls helper (views/helpers/xls.php) - ?php /** * This xls helper is based on the one at * http://bakery.cakephp.org/articles/view/excel-xls-helper * * The difference compared with the original one is this helper * actually creates an xml which is openable in Microsoft

Re: 1.3 Losing Session

2011-05-13 Thread Renato de Freitas Freire
There is some things that can help you. This script you say, that runs every 15minutes, is realy running every 15 minutes, or there is a chance this script is running every minute? Try to check if you keep loosing the session without running this script. Remove it from cronjobs, then do the

Re: 1.3 Losing Session

2011-05-13 Thread Renato de Freitas Freire
You can also try to change the session handler. If it is handled by php, you can try to change to cake, or to db... -- Renato Freire ren...@morfer.org On Fri, May 13, 2011 at 12:54 PM, David Cole d...@coledesignstudios.comwrote: This script you say, that runs every 15minutes, is realy

Re: Generate Excel from cakephp

2011-05-12 Thread Renato de Freitas Freire
You can also write the xml for the new version of excel (2003+). For me, this is the best way. On Thursday, May 12, 2011, bujanga buja...@gmail.com wrote: You can also just render to a view and layout. Works great for basic xls output. See here:

Models and Table Prefix help

2011-04-24 Thread Renato de Freitas Freire
c1_configs? I already tried all that stuff found at google to change database config on the fly, but it didnt work. Im getting confused. Can anyone help me? Thank you! -- Renato de Freitas Freire ren...@morfer.org -- Our newest site for the community: CakePHP Video Tutorials http

Re: obfuscate hash form ids

2011-03-15 Thread Renato de Freitas Freire
. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- -- Renato de Freitas Freire ren...@morfer.org -- Our newest site for the community: CakePHP Video Tutorials http

Re: A wizard did it

2011-02-28 Thread Renato de Freitas Freire
version with cake 1.2.8, but I didnt try to use it on 1.3 yet. I dont know if the actual version is ready to 1.3 or it is still on 1.2, but there is a lot of tutorials to help you to use it on 1.3. And there is some limitation too. You will have to hack the code to save checkbox fields. -- Renato de

Re: A wizard did it

2011-02-28 Thread Renato de Freitas Freire
Cant you use the $this-Wizard-_currentStep to know where you are?? I use ajax just to load some autocomplete fields... -- Renato de Freitas Freire ren...@morfer.org On Tue, Mar 1, 2011 at 12:03 AM, Ryan Snowden sicapi...@gmail.com wrote: I modified it to be able to use AJAX but it's got

Cakephp + socket server or Cakephp + ajax?

2011-02-14 Thread Renato de Freitas Freire
create this new system in cake 1.2 or cake 1.3? Thank you. -- Renato de Freitas Freire ren...@morfer.org -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP

Re: More than 1 layout

2011-01-15 Thread Renato de Freitas Freire
://groups.google.com/group/cake-php?hl=en -- -- Renato de Freitas Freire ren...@morfer.org Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group

Re: Can we mix plain php,html and cakephp?

2010-12-29 Thread Renato de Freitas Freire
email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -- -- Renato de Freitas Freire ren...@morfer.org Check out the new CakePHP Questions site

Re: Perfmance, large number of users and CakePHP

2010-12-26 Thread Renato de Freitas Freire
application, like benchmarks, we cannot give you any useful answers. The answer for your question, based on the informations we have, is YES AND NO. Got it? -- Renato de Freitas Freire ren...@morfer.org On Sun, Dec 26, 2010 at 8:39 PM, Ziki zixw...@gmail.com wrote: So there is no any answer

Re: Export to MSExcel

2010-12-20 Thread Renato de Freitas Freire
/View.aspx?ThreadId=54383But if u dont want to use third-part code, you can learn to write excel xml syntax. Pretty simple too. But will be able to read only on excel 2003 or latter. -- Renato de Freitas Freire ren...@morfer.org On Mon, Dec 20, 2010 at 8:21 PM, cricket zijn.digi...@gmail.com wrote

Re: Losing Session variables

2010-12-13 Thread Renato de Freitas Freire
Try to put this code into your bootstrap.php file: ini_set(session.cookie_domain, yourdomain.com); You might be using a shared server... -- Renato de Freitas Freire ren...@morfer.org On Mon, Dec 13, 2010 at 6:37 AM, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com wrote: 1) Install

Re: Session data missing

2010-11-23 Thread Renato de Freitas Freire
Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com for more options, visit this group at http://groups.google.com/group/cake-php?hl=en -- -- Renato de Freitas Freire ren

Re: Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 207 bytes

2010-11-19 Thread Renato de Freitas Freire
I had same problem with some 'export to excel' feature. Today i have 1.5GB in php memory_limit. Anyone have a lighter solution to export data? Im using php_excel to export it. -- Renato de Freitas Freire ren...@morfer.org On Fri, Nov 19, 2010 at 8:10 AM, Sreenivas S Nair ♫ sreenivasn

Re: Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 207 bytes

2010-11-19 Thread Renato de Freitas Freire
In my case, my client explicity asked for an 'excel export feature'. I tried to do it in csv, but he didnt like it. Exporting directly with a simple helper, I had the same results. Just work if I increase the memory for php. Seems not to have another way to do it. -- Renato de Freitas Freire

Re: Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 207 bytes

2010-11-19 Thread Renato de Freitas Freire
) to write the file. } } My action is pretty much this... Do you think if I break this process into pages can make it lighter? -- Renato de Freitas Freire ren...@morfer.org On Fri, Nov 19, 2010 at 2:49 PM, AD7six andydawso...@gmail.com wrote: On Nov 19, 3:03 pm, Renato de Freitas Freire renat

Re: Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 207 bytes

2010-11-19 Thread Renato de Freitas Freire
hmm... I'll try it later... tnx alot ˆˆ -- Renato de Freitas Freire ren...@morfer.org On Fri, Nov 19, 2010 at 3:05 PM, cricket zijn.digi...@gmail.com wrote: On Fri, Nov 19, 2010 at 11:59 AM, Renato de Freitas Freire renat...@gmail.com wrote: Yeah.. my table is near 1gb... Something

Re: How to disable some radio buttons? if using $form-input()?

2010-11-08 Thread Renato de Freitas Freire
' = 'myradio' 'options' = $shippingmodes)); ? $('#myradio').click(function() { var value = $(this).val(); if(value=='SOME_VALUE') $('#some_form_field_id').attr('disabled',true); }); I really dont know what u want, but hope this help you. -- Renato de Freitas Freire ren...@morfer.org

Re: How to disable some radio buttons? if using $form-input()?

2010-11-08 Thread Renato de Freitas Freire
Ok, but based on what factor you will disable this option? I guess you still can do it with jquery. Give a look here: http://stackoverflow.com/questions/1318802/enabling-and-disabling-radio-buttons-depending-on-user-selection -- Renato de Freitas Freire ren...@morfer.org On Tue, Nov 9, 2010

Re: Is this a do-able Cake project?

2010-10-10 Thread Renato de Freitas Freire
://groups.google.com/group/cake-php?hl=en -- -- Renato de Freitas Freire ren...@morfer.org Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post

Re: Is this a do-able Cake project?

2010-10-10 Thread Renato de Freitas Freire
fix... i dont have it here now, but when i get into my house ill send it to you... -- Renato de Freitas Freire ren...@morfer.org On Sun, Oct 10, 2010 at 2:21 PM, Jeff jeffri...@gmail.com wrote: Thanks Renato, After posting this question (before your reply) I _did_ see that wizard component

Re: 15 minute Blog Tutorial? Really?

2010-10-10 Thread Renato de Freitas Freire
what is the name of your index view file? i think u have named it index.php.ctp, but its index.ctp only... try to check this... -- Renato de Freitas Freire ren...@morfer.org On Sun, Oct 10, 2010 at 4:37 PM, Jeff jeffri...@gmail.com wrote: Not sure why, but I'm the lucky guy that gets

Re: cakephp editor

2010-09-19 Thread Renato de Freitas Freire
i think he mean coda... coda is for mac only... i use coda too.. and phpDesigner on windows... both great editors. -- Renato de Freitas Freire ren...@morfer.org On Sun, Sep 19, 2010 at 12:27 PM, Tilen Majerle tilen.maje...@gmail.comwrote: wtf?...which program is for mac only

Re: just baked on cakephp.org

2010-09-07 Thread Renato de Freitas Freire
Very nice. Do you plan do show the source code? What do you use to create the graphics? Good work. Grats! -- Renato de Freitas Freire ren...@morfer.org On Tue, Sep 7, 2010 at 8:01 PM, gabrielr gabriel.gurodrig...@gmail.comwrote: Great Site!!! a simple good idea that make life better

Re: Ebook : CakePHP 1.3 ACL ACO/ARO Control Panel

2010-08-23 Thread Renato de Freitas Freire
Very nice.. Publish it in google docs... so we can translate to english... (i guess).. Congratz! -- Renato de Freitas Freire ren...@morfer.org On Mon, Aug 23, 2010 at 9:37 PM, Kyko kykoc...@gmail.com wrote: I just downloaded it. It looks nice, but I would like to have it in English

Re: echoing data after retrieving it via find. cake doesn't echo the actual value, but rather array

2010-07-01 Thread Renato de Freitas Freire
I dont know what version you are using... but in 1.2, i would do like this: $adressee = $this-User-find('first',array('conditions' = array('User.email' =$user,'fields' = array('username'; try it... -- Renato de Freitas Freire ren...@morfer.org On Thu, Jul 1, 2010 at 12:46 PM, Jeremy

Re: Can I read a session variable inside the model?

2010-06-29 Thread Renato de Freitas Freire
, $ds); } I dont know if this works... but I heard about it some time ago... U can try... -- Renato de Freitas Freire ren...@morfer.org On Tue, Jun 29, 2010 at 2:23 PM, Shaz shazam...@gmail.com wrote: There's been a lot of discussion about this - use the search box on the top right. I

Losing Session on redirect (wierd)

2010-06-27 Thread Renato de Freitas Freire
to the system (through header(Location: myaddress.com/mysystem/controller/action/);) Anyone have any tip? Am I doing something wrong? Can anyone help me with this issue? Thanks... -- Renato de Freitas Freire ren...@morfer.org Check out the new CakePHP Questions site http://cakeqs.org and help

Re: Find all Posts WITHOUT Tags (habtm)

2010-05-24 Thread Renato de Freitas Freire
I alredy asked it here. Never find an answer. Im doing same way you do. 2 querys. Not even with pure sql i count do it in 1 query... still wonder if its some way to do it in a cake way. -- Renato de Freitas Freire ren...@morfer.org On Mon, May 24, 2010 at 11:55 AM, designv...@gmail.com

Re: Front-end for end-users and admins design

2010-05-18 Thread Renato de Freitas Freire
admin route, my systems will be safe. I just heard that there is some robots scanning cake's urls for an open scafold. So, I just want to prevent this things. I dont know if it is the better way, but the work is the same. sry my bad english. -- Renato de Freitas Freire ren...@morfer.org On Tue

Re: email sending

2010-05-09 Thread Renato de Freitas Freire
Im using phpMailer to send emails with cakephp... It works really great for me... Why dont you try? -- Renato de Freitas Freire ren...@morfer.org On Sat, May 8, 2010 at 10:13 AM, John Andersen j.andersen...@gmail.comwrote: Or use your Gmail as your mail account in a smtp setup. See http

Re: email sending

2010-05-09 Thread Renato de Freitas Freire
i never could get smtp auth with core email component... and with phpmailer i did it like a piece of cake... -- Renato de Freitas Freire ren...@morfer.org On Sun, May 9, 2010 at 1:54 PM, Ma'moon phpir...@gmail.com wrote: @Renato because the email component from CakePHP is a core component

Re: cakephp v2.0

2010-05-08 Thread Renato de Freitas Freire
So.. whats the deal with this Lithium framework? Is it the cake 2.0 or just a copy from someone else? -- Renato de Freitas Freire ren...@morfer.org On Fri, May 7, 2010 at 9:27 PM, Graham Weldon gra...@grahamweldon.comwrote: The team has been working towards 2.0 with more and more enthusiasm

Re: cakephp v2.0

2010-05-08 Thread Renato de Freitas Freire
yes... sure.. thanks... i heard alot that cakephp is dead, and the future for cakes users is lithium good to know that its not true... -- Renato de Freitas Freire ren...@morfer.org On Sat, May 8, 2010 at 9:02 AM, Graham Weldon gra...@grahamweldon.comwrote: Lithium is a PHP Framework for PHP

Re: re-format mysql-dates - any generic solution?

2010-05-07 Thread Renato de Freitas Freire
) { return date('d-m-Y', strtotime($dateString)); } I guess you can modify this to make your custom function and put it in your app/AppModel.php So it will work for every model you have in your project... -- Renato de Freitas Freire ren...@morfer.org On Fri, May 7, 2010 at 9:26 AM

Re: Cakephp workflow - where to start

2010-04-24 Thread Renato de Freitas Freire
on auth and acl if the project needs it... thats the way I work on my projects... not only in cakephp, but any language/framework... -- Renato de Freitas Freire ren...@morfer.org On Sat, Apr 24, 2010 at 6:51 AM, viis tarmo.ta...@gmail.com wrote: Would like to know what is your workflow when you

Re: How to display form submitted data without using model and with model in the same controller

2010-04-22 Thread Renato de Freitas Freire
this-data[Modelname][name]; exit; and in the view, I would use $form-input, not $form-text, for a varchar field... -- Renato de Freitas Freire ren...@morfer.org On Thu, Apr 22, 2010 at 8:16 AM, Narendra Padala crazycake...@gmail.comwrote: How to display form submitted data without using model

Re: mac users, which ide are you using to develop cakephp?

2010-04-19 Thread Renato de Freitas Freire
im using aptana studio... really good... based on eclipse.. -- Renato de Freitas Freire ren...@morfer.org On Mon, Apr 19, 2010 at 3:42 AM, Martin Westin martin.westin...@gmail.comwrote: No ide, just Textmate for me. On Apr 19, 6:14 am, Bryan Lim ytbr...@gmail.com wrote: Hi all, mac

Re: Generating diagram of my projekt?

2010-04-11 Thread Renato de Freitas Freire
If your database is MySQL, you can try MySQL Workbench. This program can do reverse engineer of your database and draw the diagram automatically. http://wb.mysql.com/ -- Renato de Freitas Freire ren...@morfer.org On Sat, Apr 10, 2010 at 4:33 PM, mivogt-LU c...@mivogt.net wrote: hi there, I

Re: HABTM QUestio: Getting all non related data

2010-04-07 Thread Renato de Freitas Freire
will have a lot of data... -- Renato de Freitas Freire ren...@morfer.org On Tue, Apr 6, 2010 at 1:18 PM, Jeremy Burns jeremybu...@me.com wrote: There is a reference to NOT IN in the guide - I am sure you could adapt that? http://book.cakephp.org/view/1030/Complex-Find-Conditions Jeremy Burns

HABTM QUestio: Getting all non related data

2010-04-06 Thread Renato de Freitas Freire
= $this-Project-find(all); $this-set('projects', $projects); Can anyone help me? Thanks -- Renato de Freitas Freire ren...@morfer.org Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed

Re: Video Conférence within Cake !!

2010-03-10 Thread Renato de Freitas Freire
I think you may need something more then just cakephp, like some flash or java app to capture webcam and voice from users computer. -- Renato de Freitas Freire ren...@morfer.org On Wed, Mar 10, 2010 at 11:40 AM, Abraham Boray abrahambo...@gmail.comwrote: Anyone of u guys , know how

Re: Designing a form builder - Ideas

2010-02-09 Thread Renato de Freitas Freire
for each form built in the system. If you have any solutions, please share with us. It may help me too. Thanks -- Renato de Freitas Freire ren...@morfer.org On Tue, Feb 9, 2010 at 10:53 AM, @pauldatta pkdatta2...@gmail.com wrote: Thankyou Paul for your suggestions. Creating a webform markup

Re: CakePHP backend + Flash frontend

2010-02-09 Thread Renato de Freitas Freire
('/', array('controller' = 'pages', 'action' = 'display', 'home')); or, of course, as richard said, you can put your cake instalation pointing directly to your /intranet -- Renato de Freitas Freire ren...@morfer.org On Tue, Feb 9, 2010 at 11:20 AM, VitillO vj.nu...@gmail.com wrote: Hello, im kinda

Re: How to update last login using authcomp

2010-02-08 Thread Renato de Freitas Freire
can you help me with almost same question? i need to update lastIP when user log in my system.. how can i do that in cakephp? tnx -- Renato de Freitas Freire ren...@morfer.org On Sun, Feb 7, 2010 at 5:57 AM, John Andersen j.andersen...@gmail.comwrote: You are welcome :) Joh On 7

Re: How to update last login using authcomp

2010-02-08 Thread Renato de Freitas Freire
I know that. I was wondering if cakephp has any automagically with this issue.. but thanks anyway. -- Renato de Freitas Freire ren...@morfer.org On Mon, Feb 8, 2010 at 12:45 PM, John Andersen j.andersen...@gmail.comwrote: Look in the PHP manual for the predefined variable $_SERVER! It has

ACL Component GOOD Tutorial, anyone?

2010-02-08 Thread Renato de Freitas Freire
anyone help me? Im a little lost here. Tnx! -- Renato de Freitas Freire ren...@morfer.org On Sun, Feb 7, 2010 at 10:45 PM, mansil...@gmail.com mansil...@gmail.comwrote: When isAuthorized() returns false I get redirected to / which then redirects to pages controller... Here is my code

Re: error : Deprecated: Assigning the return value of new by reference is deprecated

2010-02-04 Thread Renato de Freitas Freire
i had the same problem using PHP 5.3.. im using PHP 5.2 now.. and all my problems are gone... Try it too... -- Renato de Freitas Freire ren...@morfer.org On Thu, Feb 4, 2010 at 3:18 AM, Samatha kksama...@gmail.com wrote: i configured cakephp in my local system... i'm using php 5.3

Re: 1 controller 2 models =)

2009-12-29 Thread Renato de Freitas Freire
the image on image model, i dont know... but that way work.. -- Renato de Freitas Freire ren...@morfer.org On Tue, Dec 29, 2009 at 2:41 AM, Wils anjo.virt...@gmail.com wrote: Hi Guys, How's going? so, I trying to figure out the following scenario: 2 models: - articles - images

Re: convention clarifications, and joins with cakephp

2009-12-28 Thread Renato de Freitas Freire
table_id... but, of course, you can change it... -- Renato de Freitas Freire ren...@morfer.org On Mon, Dec 28, 2009 at 11:20 AM, Jaimon kal.liz...@gmail.com wrote: hi, just few days ago i found out about this miracle called cakePHP so i am pretty green to it. i need to build a mail application

Re: how to setup privileges

2009-12-28 Thread Renato de Freitas Freire
missing details and don’t work very well. Thanks and sorry to post here in this thread, but I thought it was better than create a new one with the same question. -- Renato de Freitas Freire ren...@morfer.org On Mon, Dec 28, 2009 at 12:56 PM, Nuno Oliveira nfa...@gmail.com wrote: Hi all, I am