2 Gwoo: Zeroes as named and unnamed parameters. Continuation of discussion ot ticket 4917

2008-06-15 Thread Serge Rodovnichenko
OK. Zero cannot be an unnamed parameter like this: /mycontroller/index/ 0, it's a feature. But this the test below fails too: $result = Router::url(array('controller'='mycontroller', 'action'='index', 'id'=0)); $expected = '/mycontroller/index/id:0'; $this-assertEqual($result, $expected); So,

Re: How strong is Security::cipher() ?

2008-06-15 Thread seedifferently
From cold hard facts, no. Joel, please forgive me but I'm a little confused by your answer. Quite simply, is Security::cipher() a viable alternative to mcrypt_encrypt or would it be more advisable to go the route of mcrypt_encrypt for sensitive data in CakePHP? I have seen a helper/ component

Re: 2 Gwoo: Zeroes as named and unnamed parameters. Continuation of discussion ot ticket 4917

2008-06-15 Thread AD7six
On Jun 15, 8:30 am, Serge Rodovnichenko [EMAIL PROTECTED] wrote: OK. Zero cannot be an unnamed parameter like this: /mycontroller/index/ 0, it's a feature. But this the test below fails too: $result = Router::url(array('controller'='mycontroller', 'action'='index', 'id'=0)); $expected =

[Cake 1.2. RC1] - Problem with Ajax and encoding

2008-06-15 Thread Webrickco
Hi, I have a problem figuring out why the result of an Ajax execution is not in the correct encoding under cake. You can see the result at http://webrickco.com/caketest. Using the user/password david/test and clicking on the first link: Alterar a configuração dos menus. At this point the result

Cake 1.2. RC1 - Problem with Ajax and encoding

2008-06-15 Thread Webrickco
Hi, I have a test page made with cake 1.2 RC1 and everything is fine despite the lack of documentation on the matter. I have however a little problem on my production site that doesn't happen on local. The problem is with encoding. Everything looks fine until i fire an event calling Ajax and

Re: - Problem with Ajax and encoding

2008-06-15 Thread AD7six
On Jun 15, 11:33 am, Webrickco [EMAIL PROTECTED] wrote: Hi, I have a problem figuring out why the result of an Ajax execution is not in the correct encoding under cake. because you are not using UTF-8, ajax requests always use and expect UTF-8. You can see the result

Re: Cake 1.2. RC1 - Problem with Ajax and encoding

2008-06-15 Thread AD7six
On Jun 15, 12:13 pm, Webrickco [EMAIL PROTECTED] wrote: Hi, I have a test page made with cake 1.2 RC1 and everything is fine despite the lack of documentation on the matter. book.cakephp.org I have however a little problem on my production site that doesn't happen on local. The problem

Adding CSS class to HTML link helper

2008-06-15 Thread BeroFX
So, I baked some views and looking at the code you get: ?php echo $html-link(__('Edit', true), array('action'='edit', $bookmark['Bookmark']['id'])); ? Which prints out an Edit link. How do I add a CSS class to this so I can have a little icon next to the text? note: I have the css code. Also,

FAQs page hacked?

2008-06-15 Thread cakeFreak
Hey guys has the FAQs page got hacked? http://groups.google.com/group/cake-php/web/faq Every entry points to a movie site!!! Dan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this

Re: Adding CSS class to HTML link helper

2008-06-15 Thread David C. Zentgraf
The __() function is a translation helper function which looks up the word/phrase in localization files. Look at the i18n section of the cookbook... Usually that function echos the result directly into your page, passing it the second argument TRUE makes it return the value instead (so

Re: SaveAll() and 'validate' = 'first' is not working

2008-06-15 Thread Jaime
Thanks francky06l, But atomic is set to true by default (according to the documentation), and I have already traced the DB calls, as you can read above. The ROLLBACK is being called, but it's not affecting the INSERT operation, because a SELECT is being made after. Is that a bug?

Re: How strong is Security::cipher() ?

2008-06-15 Thread Joel Perras
Pardon the previous cryptic reply (!). The Blowfish algorithm is more secure than the Security::cipher() method. In most cases, if you or your client are overly concerned with data security, then Blowfish (or its successor, Twofish) are both viable options for encryption/decryption schemes.

Re: - Problem with Ajax and encoding

2008-06-15 Thread Webrickco
Thank for your answer. I was expecting you say something like this. Obviously i tryed UTF-8 as first place along with many other configuration of charset. Unfortunately, if i put $html- charset('UTF-8'); you can look at the result now at http://www.webrickco.com/caketest It's even worse!!! This

Re: - Problem with Ajax and encoding

2008-06-15 Thread AD7six
On Jun 15, 3:20 pm, Webrickco [EMAIL PROTECTED] wrote: Thank for your answer. I was expecting you say something like this. Obviously i tryed UTF-8 as first place along with many other configuration of charset. Unfortunately, if i put $html- charset('UTF-8'); you can look at the result now

Re: [Cake 1.2. RC1] - Problem with Ajax and encoding

2008-06-15 Thread Spark
database default collation is just a little part, and doesn't matter as much as you may think. database connection is far more important (you can change it in config/database.php), the file you are editing is, i'm almost for sure, wrongly encoded. Try To change it in Aptana or Eclipse (under the

Re: FAQs page hacked?

2008-06-15 Thread Troy Schmidt
Works fine for me. Maybe your computer is hacked. On Jun 15, 9:00 am, cakeFreak [EMAIL PROTECTED] wrote: Hey guys has the FAQs page got hacked? http://groups.google.com/group/cake-php/web/faq Every entry points to a movie site!!! Dan --~--~-~--~~~---~--~~

Ajax links having same random ID

2008-06-15 Thread schneimi
Hi, my site is working with tabs, so different views are present on one page at the same time, but only one is visible. Now I have the problem, that sometimes after working in different tabs, some sorting- and pagination-ajax-links stop working in the views, nothing happens on click anymore. I

Re: FAQs page hacked?

2008-06-15 Thread AD7six
On Jun 15, 4:49 pm, Troy Schmidt [EMAIL PROTECTED] wrote: Works fine for me.  Maybe your computer is hacked. I edited the page (as any member can), and checked the other pages too. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: FAQs page hacked?

2008-06-15 Thread slaphappy
Last night, I also noticed that it was pointing to a malware + movie site. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To

cant change document root on my hosting company

2008-06-15 Thread kroxelikrax
Hi, Im new to cakePHP and i been constructing a page on my local computer, using MAMP. My site is working fine on my comp, but not on my website host. Im using one.com for hosting, and they dont allow me to change document root to app/webroot/. Ive tried a couple of solutions I found searching

Re: SaveAll() and 'validate' = 'first' is not working

2008-06-15 Thread francky06l
I do not know if it's a bug, I do have transactional calls as well but I use innoDb type table. It seems that the select is triggering an auto-commit on ISAM. I am not sure actually, but try setting your table as innoDb and check if you get the same result. Maybe you could also try to validate

Re: Ajax links having same random ID

2008-06-15 Thread francky06l
I suppose, you can also give an id on the ajax link by passing id = 'myid' in the options array. Anyway, this is a problem if the rand() gives the same number (linked to php version or plateform ?). Maybe issuing an srand() or mt_srand() in beforeRender() would avoid such collision .. hth On

Re: - Problem with Ajax and encoding

2008-06-15 Thread Webrickco
Thx for your kind answers. The point is that everything looks fine locally and when i put everything on the server the Ajax request fail to present data properly, however requests to the database and HTML presentation continue to work fine in ISO-8859-1, and unfortunately not in UTF-8. I would

Re: SaveAll() and 'validate' = 'first' is not working

2008-06-15 Thread Marcin Jaworski
There is no auto-commit in MyISAM tables, because MyISAM doesn't support transactions at all! All transaction statements are ignored by this storage engine. That is why rollback does nothing. InnoDB has more advantages to MyISAM than transaction support. It also does row locking (MyISAM has only

Custom url in paginate CakePHP 1.2

2008-06-15 Thread Petr Vytlačil
Hi pleas can you help me? I have this function (return all entries for Journal): function entriesjournal($seourl = null) { if (!$seourl) { $this-flash(__('Invalid Journal', true), array('action'='index')); }

ODBC driver not working with SQL syntax modifications

2008-06-15 Thread David Brown
I'm working on an application that connects to a company's internal customer database which is powered by Pervasive SQL 9.5. I can connect to this database with ODBC, but the PSQL syntax has a few differences from regular SQL. To fix this, I extended the DboOdbc class like so:

Re: How strong is Security::cipher() ?

2008-06-15 Thread seedifferently
Pardon the previous cryptic reply (!). Haha, nice one! ;) Thank you. I appreciate you sharing your expertise on this subject. Seth --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this

Re: Update 2 div with ajax which sintax please?

2008-06-15 Thread Novice Programmer
Thanks francky.. This community rocks.. :)... On Sat, Jun 14, 2008 at 9:09 PM, francky06l [EMAIL PROTECTED] wrote: You could declare, after the list of comment, an empty comment for future insertion : div id=last_comment/div Then in your view, make a javascript block : $last_post =

Re: Infinite redirect when logout with AuthComponent

2008-06-15 Thread [EMAIL PROTECTED]
Hello I'm having the same kind of problem. I think it happens when you have a component that extends Component the problem goes away when you have you components extend Object any one would comment on this ? TIA thomas On Jun 10, 4:41 pm, Marcelius [EMAIL PROTECTED] wrote: Hi Just

Re: Custom url in paginate CakePHP 1.2

2008-06-15 Thread cakeFreak
Try something like this in your view: ?php $paginator-options = array('url'='../catalogue/'.$seourl)? Dan On 15 Giu, 21:08, Petr Vytlačil [EMAIL PROTECTED] wrote: Hi pleas can you help me? I have this function (return all entries for Journal): function entriesjournal($seourl = null) {

Re: Ajax links having same random ID

2008-06-15 Thread schneimi
Thx alot for your answer, srand() in beforeRender really solves the problem! :-) I think I will try out if the problem also happens on another system and write a ticket if it does. francky06l schrieb: I suppose, you can also give an id on the ajax link by passing id = 'myid' in the options

Captcha reload problem, works in ff not in IE

2008-06-15 Thread Crazy
Hi, I've implemented the captcha component that was published on the bakery here: http://bakery.cakephp.org/articles/view/captcha-component-with-phpcaptcha Everything work fine, untill I want to reload the image. It works just fine in firefox, but when I try it in IE7 it doesn't refresh. To be

Re: Captcha reload problem, works in ff not in IE

2008-06-15 Thread bingo
Its difficult to say what the problem is without having access to code or webpage. However, I have compiled a list of issues that can cause IE7 to break but not firefox. Here is a link to my blog that discuss all these issues

Re: How to change the argument separator for named params?

2008-06-15 Thread Matt Huggins
I still can't manage to change the named parameter argument separator from a colon to a semicolon. Here are the things I've tried doing, which look like they fall in line with the documentation I've come across. app_controller.php: class AppController extends Controller { var

Re: How to change the argument separator for named params?

2008-06-15 Thread Matt Huggins
For giggles, I also tried the following in my app_controller.php, and it didn't make a difference: function __construct() { Router::setRequestInfo(array( Router::parse($this-here), array('argSeparator' = ';'), )); parent::__construct(); }

Re: CakePHP email attachment problem

2008-06-15 Thread Dr. Tarique Sani
On Sun, Jun 15, 2008 at 1:01 AM, Manu0310 [EMAIL PROTECTED] wrote: Hi, I am building an application that checks a pop3 email box and if there are new messages, it then checks what messages have attachments, and parses the attachments that are images(jpg,png,gif only). So in essence it is