Re: problem with utf8 signs in Html-link(..) function

2010-10-22 Thread KK
Hi! Yes, my previous text-editor was working quite strange. I opened my files in Notepad and saved them as UTF8 and now it is ok! ;) Thank you very very much for help! KK Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You

Re: problem with utf8 signs in Html-link(..) function

2010-10-22 Thread KK
Hi! Yes, that was right, my previous editor was working strange. I opened my files in Notepad and saved them as UTF8 and now everything is ok! :) Thank you very very much for help! KK Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related

saving records after foreach

2010-10-22 Thread Tomfox Wiranata
hi, I am retrieving multiple records from a table and echo it via foreach in a table. the idea: the user has the opportunity to edit each record. for that i display them in textfields: this is the view where the data is displayed: table id=contact border=1 cellpadding=0 cellspacing=0

Re: cakePHP + openID component (cakebaker) + google

2010-10-22 Thread Dmitry Shevchenko
Thank you Dr. Loboto: I'm using a https link for test - like https://www.google.com/accounts/o8/id and still has a invalid openID I have made some additional research .. my test server don't bind on 80 port, it use port, so l have to change $returnTo from =

Controller render() issue

2010-10-22 Thread Adrian Arnautu
Hello, I'm facing a strange problem. In my controller I call $this-render() with a particular layout and then I use the default layout. Example: $this-set('foo', $this-render('bar', 'other_layout'); $this-layout = 'default'; I know it's wrong and it's not the MVC way, the rendering part should

override redirect/render/stop in testcontroller extension

2010-10-22 Thread J. Argyl Plath
Hello-- I'm attempting to override the redirect/render/stop methods when executing tests and I'm trying to avoid using a constant after reading messages by Mark Story. It makes sense why you would simply override the method in the test controller, rather than with the constant. However, this is

Cache clearing

2010-10-22 Thread PaulW
I've now got caching working great on my 1.3.4 site (thanks to help in another thread). The db traffic is almost non-existant now. I currently have it set for 1 hour but as this site is only updated once or twice a week I am wondering if there is a downside to making this time longer? Am I right

safely limit number of records imported with fixture

2010-10-22 Thread J. Argyl Plath
Hello. I am working with live data in my test cases but there is a *lot* of data. This slows everything down, so I decided to limit the number of records imported. I found the location to do this here: /cake/tests/lib/cake_test_fixture.php LINE 110 However, I realize that hacking core seems

Re: pdo_postgres strange error.

2010-10-22 Thread Fanck
It has been fixed: https://bugs.launchpad.net/ubuntu/+source/php5/+bug/660227 It was a PHP segfault error \o/ cya On 21 oct, 00:35, Fanck francois.pie...@gmail.com wrote: Hi, Before flaming down, let me say that it may not be related to CakePHP, but somehow on my configuration (hopefully):

Re: Controller render() issue

2010-10-22 Thread cricket
On Fri, Oct 22, 2010 at 9:00 AM, Adrian Arnautu arnautu.adr...@gmail.com wrote: Hello, I'm facing a strange problem. In my controller I call $this-render() with a particular layout and then I use the default layout. Example: $this-set('foo', $this-render('bar', 'other_layout'); $this-layout

Re: override redirect/render/stop in testcontroller extension

2010-10-22 Thread J. Argyl Plath
On Oct 22, 10:50 am, J. Argyl Plath jeremy.pl...@homefront.tv wrote:     $result = $this-testAction('/users/delete/' . $id, array('return' = 'view')); Update: Calling:     $result = $this-testAction('/testUsers/delete/' . $id, array('return' = 'view')); works. Which makes sense. Is this my

Integrating PHPUnit with 1.2.3

2010-10-22 Thread A Smiley
How difficult is it to integrate PHPUnit into an existing install of CakePHP 1.2.3? Has anyone successfully done it? If so, please point me to anything that's publicly available about the process. So far I've found only http://cakephp.lighthouseapp.com/projects/42648/phpunit-migration-hints,

Re: saving records after foreach

2010-10-22 Thread jsalonen
First, you need to add a counter to the form element names so that the fields of one record don't get confused with the fields of others: ?php for ($i=0; $i count($contacts); $i++): ? ?php echo $form-text(ProductAdditionalInformation. $i.contact_content, array('value' =

Re: Logout not... logging out?

2010-10-22 Thread jsalonen
Is it possible then that the user controller's logout method is not being called? Perhaps you can printing something to the log to verify: function logout() { $this-log(I'm trying to log out); $this-Session-setFlash(lang('You have logged out.')); $url =

Sessions and http/https

2010-10-22 Thread Jeremy Burns
I can see lots of activity on this subject, but no clear working answer; so excuse me if it's a broken record. My users log in via an https page. They are logged in and the Auth session variable is set. If they now go to an http page I would expect them to still be logged in, but they are not. I

Re: Auto genereated links do not include route prefixes

2010-10-22 Thread odd
Solved it. I've change the route like this: Router::connect('/mobile/:controller/:action/*', array('theme' = 'mobile')); and the link generation like this: $html-link('Title', array('plugin' = null, 'controller' = 'news', 'action' = 'view', 'theme' = $this-params['theme'], $id)); Check out

Media Behaviour not working with hasOne association

2010-10-22 Thread odd
I'm using David Perssons Media Behaviour (http://github.com/ davidpersson/media), and i have a small problem. When trying to save a model that has a hasOne association, the associated model is saved, but the behaviour isn't triggered. The association in my model, named Release, is set up like

I'm new and need help

2010-10-22 Thread k2zs
Hello, I am new to using any type of MVC framework. 10+ years experience with PHP but always used the top-down method with includes. My interests are in CMS and I have installed cake and have the blog tutorial working but can't seem to get ACL working. I used the tutorial for ACL and broke

Keep Pagination options using URL instead of store in a Session

2010-10-22 Thread Felipe Roman
Hello All, This is my first message to this list and I'm beginner using CakePHP. I have a question that I guess is a simple question but till now I didn't find the answer on the internet forums. I'm using pagination component to paginate the result of one search page I created, the problem is

Re: Media Behaviour not working with hasOne association

2010-10-22 Thread odd
Solved this one too :) It was a simple typo in the Cover model class name, so cake couldn't find it and substitued it with AppModel... 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

delete() causing fatal error -- ClassRegistry

2010-10-22 Thread cricket
using 1.3.4 Fatal error: Class name must be a valid object or a string in /usr/share/php/cake_1.3.4/cake/libs/class_registry.php on line 141 This is in CommentsController of my Comments plugin: public function admin_delete($id = null) { if (!$id) {

Re: Integrating PHPUnit with 1.2.3

2010-10-22 Thread mark_story
Currently there is no 'supported' way of adding PHPUnit into 1.2.x. I simply don't have the time to test PHPUnit and 1.2, and write documentation on how. However, if you want to use PHPUnit with your application tests, I don't see any blockers really. You just will have to use PHPUnit's fixture