Re: Security Component; custom form (rich editor)

2010-07-30 Thread nurvzy
Your welcome. :) On Jul 30, 5:32 pm, Tomatosoup wrote: > A bit late though, but thanks! > > On 11 jul, 03:48, nurvzy wrote: > > > > > Set the security component to not validate that field. > > >http://book.cakephp.org/view/1297/Configuration > > > Hope that helps, > > Nick > > > On Jul 10, 1:28 

Re: SQL injection (multiqueries sanitization?)

2010-07-30 Thread euromark
As far as I know Model->query() is not escaped or protected in any other way you need to use find() etc in order to use safe sql queries On 30 Jul., 20:19, Hugo M wrote: > Hi! I have a question about Model->query and sql injection. I was > trying to sql inject my own site to see vulnerabilities,

Re: Security Component; custom form (rich editor)

2010-07-30 Thread Tomatosoup
A bit late though, but thanks! On 11 jul, 03:48, nurvzy wrote: > Set the security component to not validate that field. > > http://book.cakephp.org/view/1297/Configuration > > Hope that helps, > Nick > > On Jul 10, 1:28 pm, Tomatosoup wrote: > > > > > Hello, > > > I use the Security component, b

Re: generatetreelist; similar function for retrieving depth

2010-07-30 Thread Tomatosoup
Yes, that would work too. Thanks :) (for some reason this message didn't get posted earlier) On 30 jul, 13:55, Jon Bennett wrote: > you could use getpath, eg: > > count($this->Model->getpath($id, array('id'))); > > hth > > Jon Check out the new CakePHP Questions site http://cakeqs.org and help

Re: generatetreelist; similar function for retrieving depth

2010-07-30 Thread Tomatosoup
Yes, that would work too. Thanks :) On 30 jul, 13:55, Jon Bennett wrote: > you could use getpath, eg: > > count($this->Model->getpath($id, array('id'))); > > hth > > Jon > > On 30 July 2010 12:45, Tomatosoup wrote: > > > > > > > Hello, > > > Does anybody know of a function likegeneratetreelistth

Re: generatetreelist; similar function for retrieving depth

2010-07-30 Thread Tomatosoup
Thanks :) I'll look into that. On 30 jul, 14:28, cricket wrote: > On Fri, Jul 30, 2010 at 7:45 AM, Tomatosoup > wrote: > > Hello, > > > Does anybody know of a function likegeneratetreelistthat seperates > > the depth from the value. Instead of counting the spacer chars. > > > I saw an SQL quer

getmypid() has been disabled for security reasons

2010-07-30 Thread Mariano C.
On many free host this function is disabled, how can I workaround on this issue? It seems that this is used just to random genereation of uuid. The funciton is called uuid() and line intersted is the line 89 in CORE/ cake/libs/string.php: if (function_exists('zend_thread_id')) {

Re: add logged user infos in the setFlash message after login

2010-07-30 Thread Melody Nelson
thanks for your messages I've tried but $user is always empty in my login message function login(){ $txtmsg = "Bienvenue "; $user = $this->Session->read('Auth.User.first_name'); // $user is empty //$user = $this->Auth->user('first_name'); // $user is empty $flashms

Re: How to appreciate cakePHP - try the Zend Framework quickstart

2010-07-30 Thread DragonFlyEye
Yeah, I tried it because I was concerned with some of the performance comparisons I'd seen between CakePHP and other PHP frameworks. Didn't spend a whole lot of time on it, but really was not impressed at all. What is the point of a framework that seems to require MORE coding than just doing thing

Re: Problems with GD i Cake

2010-07-30 Thread DragonFlyEye
You should include some code so we know what you're talking about. Either way, probably not an issue with CakePHP. On Jul 30, 4:37 am, Petter Andreas Strøm wrote: > Hi, > > I have some problems with using GD in Cakephp. Output from i.e. the > imagejpeg() function reports just wrongly encoded dat

Character encoding for trademarks

2010-07-30 Thread DragonFlyEye
More in my continuing saga of trying to fix the horrible data mess my company has... The company's original SQL Server databases are riddled with trademark symbols, copyright symbols and registered trademark symbols entered directly into the data. These symbols present a fairly significant challen

Re: session is not working between different actions on different controllers

2010-07-30 Thread DragonFlyEye
Well, you're not going to be able to maintain a standard session across multiple domains. That's basic to sessions and cookies. You can certainly create some sort of non-visible login system (like a GET variable) that allows the user to see the same things on two domains, but a literal session acro

Re: Amazon FPS integration

2010-07-30 Thread Hugo M
This plugin seems interesting: http://bakery.cakephp.org/articles/view/paypal-ipn-instant-payment-notification-plugin-complete-with-paypalhelper Make me know if it worked for you! :) 2010/7/29 Nabil Alsharif : > Not unless google has something good It shouldn't be to hard to > make your own.

SQL injection (multiqueries sanitization?)

2010-07-30 Thread Hugo M
Hi! I have a question about Model->query and sql injection. I was trying to sql inject my own site to see vulnerabilities, and I got: Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nea

Re: Trouble with using a condition on a related model

2010-07-30 Thread Teh Treag
Dean, CakePHP will not produce a join for hasMany and HABTM finds. As a result, the fields of the associated table are not avaiable for the query. There are a variety of techniques to get what you want. There's the linkable behavior, ad-hoc join, and a method using bindModel to bind the relation

Re: SQL don't appears

2010-07-30 Thread Gildonei Mendes A. (Junior)
Thank you men. It works. =) On 30 jul, 12:50, Vijay Kumbhar wrote: > Hello Gildonie, > > You have to add the following line in you layout, > > element('sql_dump'); ?> > > cake 1.3 doesn't directly displays the sql statements as like cake 1.2 if > your debug mode is 2. > > On Fri, Jul 30, 2010 at

Re: SQL don't appears

2010-07-30 Thread Vijay Kumbhar
Hello Gildonie, You have to add the following line in you layout, element('sql_dump'); ?> cake 1.3 doesn't directly displays the sql statements as like cake 1.2 if your debug mode is 2. On Fri, Jul 30, 2010 at 5:18 PM, Gildonei Mendes A. (Junior) < anjol...@gmail.com> wrote: > Hi, > > I'm star

Re: Upload Photo Using PHP

2010-07-30 Thread Jon Bennett
> i dun get it. anythg juz going wrong. the page can validate if there is no > image selected, also it can validate if it is not jpeg. but when i upload a > photo it been refreshed the page. but image did not appear in folder or been > saved in database have you set the form type to file, eg: ech

Re: Getting Digest Authentication to Work

2010-07-30 Thread Michael
Nor is mod_php. I did a bit of digging in the security.php source and it looks that those two "no"s are my show stoppers. thanks, Michael On Jul 30, 10:00 am, Michael wrote: > No it is not and I don't have access to have that changed.  Nor is it > something that I can request to be changed. > >

Re: session is not working between different actions on different controllers

2010-07-30 Thread Kei Simone
Hi there, the idea is that i am doing something like an ecommerce platform for merchants. there are 2 apps because i want the shopping site to be on 1 domain and the checkout pages to be on another domain. so that i can use ssl on the checkout pages and that this is consistent for ALL customers

Re: Trouble with using a condition on a related model

2010-07-30 Thread DragonFlyEye
First, have a look at the output query - if you have the element('sql_dump'); ?> set in your layout, it should be at the bottom. That should give you some clues as to why it's not working. But you might want to post your $hasMany association to this group so we can help better. Are you actually sp

Re: Validation errors not shown in a form

2010-07-30 Thread Norman Paniagua
Can you add a filter in your gmail account I add the filter for the sender ( cake-php@googlegroups.com) and all the mails that I receive from this email have the gmail label cakephp. Try it, its very helpful --- Norman Paniagua 2010/7/29 John > Hi Guys, sorry for the wrong topic, but i'm new h

Re: Behavior afterFind not filtering data?

2010-07-30 Thread DragonFlyEye
Ok, the problem appears to be that somewhere in the bowels of CakePHP's Models, it doesn't seem to like certain characters and just replaces them with "?" I've discovered this because I'm attempting to run batches through the Console. So, I'm only using a Shell script and the Model in question and

Re: Getting Digest Authentication to Work

2010-07-30 Thread Michael
No it is not and I don't have access to have that changed. Nor is it something that I can request to be changed. Is that a showstopper? thanks, Michael On Jul 30, 7:08 am, cricket wrote: > Does Apache have mod_digest loaded? > > On Thu, Jul 29, 2010 at 2:58 PM, Michael wrote: > > I am having

Re: session is not working between different actions on different controllers

2010-07-30 Thread DragonFlyEye
Why two separate applications for this? Is one not CakePHP? Offhand, here's a few things: 1. Localhost can often be a tricky thing for cookies and sessions. Make sure those addresses are really the way content is being served up to the browser. 2. Cookie settings in Configure::write(): make sure t

Re: session is not working between different actions on different controllers

2010-07-30 Thread DragonFlyEye
Why do you have a completely separate application for the checkout aspect of whatever it is you're doing? Seems like if they're both built in CakePHP, you should probably use the same application. A couple ideas: On Jul 30, 10:48 am, Kei Simone wrote: > Hi all, > > i have 2 cake apps. localhost

session is not working between different actions on different controllers

2010-07-30 Thread Kei Simone
Hi all, i have 2 cake apps. localhost/wp and localhost/checkout. wp sends a httpsocket->post to localhost/checkout/carts/add and gets a result. the carts/add will set a session value. wp will use the result of the post and redirects to paypalsandbox. after that the paypalsandbox will redirect to l

Any CakePHP plugin to act as Module Builder?

2010-07-30 Thread weilies
i understand that CakePHP is powerful enough to allow user create DB table, run a command to generate CRUD. But i wonder is there any available module/plugin which allow CakePHP to have a "module builder", which mean i dont need to dirty my hand by touch the script or create record through phpmyad

Problems with GD i Cake

2010-07-30 Thread Petter Andreas Strøm
Hi, I have some problems with using GD in Cakephp. Output from i.e. the imagejpeg() function reports just wrongly encoded data like: ... � JFIF� �� � � ... So i was just wondering if anybody had any experience with this kind of problems, which seems to be an encodingproblem:P -thanks!

Re: Validation errors not shown in a form

2010-07-30 Thread John
Hi Guys, sorry for the wrong topic, but i'm new here. Just a tip for the group... would be great if in the subject of the emails, a tag [cakePHP] was inserted, will be easy to read the new posts... Thanks for let me join here, hope i can help/be helped Have a nice day On Jul 30, 2010, at 12:08

Trouble with using a condition on a related model

2010-07-30 Thread dean
Hi all, I'm having a slight problem with querying data on an association I've created. The two models are Product and ProductVariation. The ProductVariation model belongs to the Product model and the Product model hasMany ProductVariations. This is all well and good until I attempt to run the fo

Re: cakephp cron job tutorial

2010-07-30 Thread AD7six
On Jul 29, 7:37 pm, hoss7 wrote: > i need cakephp cron job tutorial? I can haz example? http://github.com/AD7six/mi_development/blob/master/vendors/shells/templates/skel/config/crontab.txt.php Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP relat

Re: Controller not working on live site

2010-07-30 Thread meekamoo
Hmmm the paginate array is very simple :( That's what I can't understand. Array ( [limit] => 3 [page] => 1 [contain] => Array ( [Seller] => Array ( [User] => Array ( [0] => Count

Re: cakephp cron job tutorial

2010-07-30 Thread Hugo M
You can use Shells: http://cakebaker.42dh.com/2007/05/07/writing-a-custom-cakephp-console-script/ 2010/7/30 cricket : > On Thu, Jul 29, 2010 at 1:37 PM, hoss7 wrote: >> i need cakephp cron job tutorial? > > Search google for "cakephp cron", there are several good posts about it. > > Check out th

Re: Validation errors not shown in a form

2010-07-30 Thread Roland Pish
Thanks Norman and Marco. Yes I'm creating it with $form helper. The weird thing is that it was showing errors normally as it would, but another guy included some code and another input fields and after that suddenly the errors stopped showing. And I don't see anything abnormal in this guy's added c

Re: generatetreelist; similar function for retrieving depth

2010-07-30 Thread cricket
On Fri, Jul 30, 2010 at 7:45 AM, Tomatosoup wrote: > Hello, > > Does anybody know of a function like generatetreelist that seperates > the depth from the value. Instead of counting the spacer chars. > > I saw an SQL query in the explanation page of MySQL. > It's this page: > http://dev.mysql.com/

Re: SQL don't appears

2010-07-30 Thread cricket
On Fri, Jul 30, 2010 at 7:48 AM, Gildonei Mendes A. (Junior) wrote: > Hi, > > I'm starting with CakePHP, and I'm using the latest version of cakePHP > (1.3.3), I configured my "core.php" with debug, 2, but the SQL > statements doesn't apper on the window. See this page: http://book.cakephp.org/vi

Re: add logged user infos in the setFlash message after login

2010-07-30 Thread Anthony
Also, instead of grabbing from the session variable directly you should use one of the cake specific functions... $user = $_SESSION['Auth']['User']['first_name']; should be: $this->Session->read('Auth.User.first_name'); or (I prefer this way as someone can't mess with this data like they can th

Re: add logged user infos in the setFlash message after login

2010-07-30 Thread Anthony
Set your message as a variable instead of concating them inside the functions parameter list: Example: $text = 'Thank you for logging in: '; $flashmsg = $txt . $user; $this->Session->setFlash($flashmsg, 'growl', array('type'=>'important')); or $flashmsg = 'Thank you for logging in: ' . $user; $

Re: Getting Digest Authentication to Work

2010-07-30 Thread cricket
Does Apache have mod_digest loaded? On Thu, Jul 29, 2010 at 2:58 PM, Michael wrote: > I am having difficulty getting digest authentication to work.  The > code works if I use basic, but when I switch to digest, the > credentials don't authenticate (i.e. the browser username/password > popup keeps

Re: Email Component

2010-07-30 Thread cricket
On Thu, Jul 29, 2010 at 10:09 AM, AD7six wrote: > >> and no the >> ones in views/email directory > > where did you read it would look in views/email? Perhaps huoxito meant views/layouts/email/ Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related

Re: cakephp cron job tutorial

2010-07-30 Thread cricket
On Thu, Jul 29, 2010 at 1:37 PM, hoss7 wrote: > i need cakephp cron job tutorial? Search google for "cakephp cron", there are several good posts about it. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message

Re: generatetreelist; similar function for retrieving depth

2010-07-30 Thread Jon Bennett
you could use getpath, eg: count($this->Model->getpath($id, array('id'))); hth Jon On 30 July 2010 12:45, Tomatosoup wrote: > Hello, > > Does anybody know of a function like generatetreelist that seperates > the depth from the value. Instead of counting the spacer chars. > > I saw an SQL query

SQL don't appears

2010-07-30 Thread Gildonei Mendes A. (Junior)
Hi, I'm starting with CakePHP, and I'm using the latest version of cakePHP (1.3.3), I configured my "core.php" with debug, 2, but the SQL statements doesn't apper on the window. A sample of the project is hosted at http://www.sitecomarte.com.br/nutriaqua. Some links aren't functional, I already

generatetreelist; similar function for retrieving depth

2010-07-30 Thread Tomatosoup
Hello, Does anybody know of a function like generatetreelist that seperates the depth from the value. Instead of counting the spacer chars. I saw an SQL query in the explanation page of MySQL. It's this page: http://dev.mysql.com/tech-resources/articles/hierarchical-data.html This is the query:

Re: How to appreciate cakePHP - try the Zend Framework quickstart

2010-07-30 Thread euromark
well, i tried once... and failed :) On 30 Jul., 12:19, keymaster wrote: > If anyone wants to reaffirm their commitment to the intelligence of > cake, spend an hour reading the zend framework quickstart. > > You would not believe the amount of code and configuration involved in > getting a simple

How to appreciate cakePHP - try the Zend Framework quickstart

2010-07-30 Thread keymaster
If anyone wants to reaffirm their commitment to the intelligence of cake, spend an hour reading the zend framework quickstart. You would not believe the amount of code and configuration involved in getting a simple ZF app up and running with a single controller/model and two actions/views (index,

Re: Validation errors not shown in a form

2010-07-30 Thread Marco
Are you sure you are using the $form->input for all the fields and $form->create? On Jul 30, 2:19 am, Norman Paniagua wrote: > Can you show your code? > --- > > Norman Paniagua > > 2010/7/29 Roland Pish > > > > > Hi. > > > Suddenly a form stopped showing the error messages with the > class="err

Re: Upload Photo Using PHP

2010-07-30 Thread Norsyahida Sulaiman
i dun get it. anythg juz going wrong. the page can validate if there is no image selected, also it can validate if it is not jpeg. but when i upload a photo it been refreshed the page. but image did not appear in folder or been saved in database On Fri, Jul 23, 2010 at 11:37 AM, tristan_ph wrote:

Re: saveAll does'nt work

2010-07-30 Thread Vijay Kumbhar
It is not working while saving the data while adding the data or while editing the existing data? I have the same problem with cakephp 1.3 but while editing the associated model data using saveAll. If it is not saving the data while editing then in cakephp 1.3 you have to specify the related model