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,
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
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 =
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
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
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
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
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,
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
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
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?
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.
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
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
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
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
--~--~-~--~~~---~--~~
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
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
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
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
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
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
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
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
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'));
}
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:
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
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 =
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
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) {
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
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
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
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
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();
}
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
36 matches
Mail list logo