Off-topic, php function to ease isset usage?

2008-04-15 Thread laeffe
I wrote this function a couple of months ago for a Webtech course at my university. But I was wondering if anyone has anyother idea to ease this with more intregreated functions. Any way.. the problem is that in my code I often write this peace of code: $variable = isset($anothervariable)?$anothe

Re: How to define a global function in bootstap.php?

2008-04-15 Thread Daniel Hofstetter
Hi Freshow, > how to define a global function for all controllers in ./app/confing/ > bootstap.php ,and how to inplement it in controller ? If it is a function only used by controllers then I would add it to the AppController (app/app_controller.php) and not to bootstrap.php. Hope that helps.

Leadership issues....

2008-04-15 Thread Dr. Tarique Sani
Hate to be the one to post it here but it has to be done! http://logs.cakephp.nu/cakephp/chat.log.2008-04-16 Tarique P.S. I am not fanning flames here! -- = Cheesecake-Photoblog: http://cheesecake-photoblog.org PHP for E-Biz: http://sa

single view for multiple controllers

2008-04-15 Thread damo
Can't seem to figure this one out. I have two controllers that I would like to use the same view for. Here is how they are: function viewall() { $this->set('students', $this->Student- >findAll(array( 'Student.status' => "Active" ))); } function viewx() {

How to define a global function in bootstap.php?

2008-04-15 Thread Freshow
how to define a global function for all controllers in ./app/confing/ bootstap.php ,and how to inplement it in controller ? :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group,

Ajax form won't submit

2008-04-15 Thread double07
Hi all, This is doing my head in so I'm posting here as a last resort. I'm reasonably new to cakephp, I've written a simple CMS app last year but I'm working on a new v1.2.0.6311 project now with user management/acl built in. Basically I'm working on the user management area at the moment specifi

Re: Newbie question

2008-04-15 Thread José Selesán
It worked!! Thank you Regards José Sam Sherlock escribió: > try this in your .htaccess > > RewriteEngine on > RewriteRule (phpmyadmin)/(.*) - [L] > RewriteRule^$webroot/[L] > RewriteRule(.*) webroot/$1[L] > > > On 16/04/2008, *José Selesán* <[EMAIL PRO

Re: Newbie question

2008-04-15 Thread Sam Sherlock
try this in your .htaccess RewriteEngine on RewriteRule (phpmyadmin)/(.*) - [L] RewriteRule^$webroot/[L] RewriteRule(.*) webroot/$1[L] On 16/04/2008, José Selesán <[EMAIL PROTECTED]> wrote: > > > Hi there! I'm starting to use Cake-PHP (I think it is gra

Newbie question

2008-04-15 Thread José Selesán
Hi there! I'm starting to use Cake-PHP (I think it is grate!) and I have a problem with my production server. I've installed CakePHP on the server and it has also phpmyadmin, soy my root directory looks as this: /app /cake /phpmyadmin index.php .htaccess The problem happens when I try to use ph

Re: Saving data from a text file

2008-04-15 Thread Adam Royle
You need to use it like this: $this->MailingList->create(array('email' => $email)); $this->MailingList->save(); On Apr 16, 4:19 am, Kyle Decot <[EMAIL PROTECTED]> wrote: > I am trying to read in a line of a text file and then save it to the > database. Below is my code: > > function massAdd() {

Re: weird file upload issue (swfupload + cake 1.2)

2008-04-15 Thread Adam Royle
Probably.. it's got something to do with max upload size set with your server. Put this in your webroot/.htaccess php_value upload_max_filesize 20M php_value post_max_size 20M If that doesn't fix it... - Check your app/tmp/logs/error.log for problems. - Use $this->log('got here'); in your

weird file upload issue (swfupload + cake 1.2)

2008-04-15 Thread johnny1am
I am having a weird problem with uploading files via swfupload on my cake application. When i access my application on localhost (i am using xampp ) everything runs fine, files get uploaded placed where they should etc, but when someone else tries to connect from the internet to my server, file up

Re: New Set of ACL Tutorial Articles

2008-04-15 Thread aranworld
Well, all I hope is that they are the start of something. I submitted them to the cookbook about a week ago and they still aren't in it, so I have to figure that they aren't exactly what the developers want in the official documentation. I am very partial towards wikis, so am very much in favor

Re: |OT| What is your preferred URL structure?

2008-04-15 Thread the_woodsman
One thing I keep meaning to do is implement routes to make URLs more sentence like, (inc singulars as the above), and strip all numbers. I.e for a cakey book store: cakeybooks.com/all/books // books index /all/books/by:jane_austen /a/book/named:war_and_peace // a =>view /purc

Re: CSS Acting Very Bizarre

2008-04-15 Thread Chez17
The problem is fixed now. I checked what was going on in Firebug and it showed that the CSS I entered was not even in the file. I must have been using a temporary file somehow or what I did before got saved to different file. I have no idea what happened. Its working now. Thanks for you help and t

Re: architecture - organizing related models (?)

2008-04-15 Thread the_woodsman
> Cake isn't really set up to handle inheriting models directly. I'd be really interested to hear more about that - I'd always assumed there might be issues with this due to all the the model magic, but never tried anything complex enough to hit those kind of issues. What kind of issues do you r

Models and SQL bindings

2008-04-15 Thread wittygraphy
Hi all, I am looking to use CakePHP for my project but I am very concerned about SQL injection in general. Thus I always run my DB queries with bindings (I don't mean the Cake models bind/unbind feature) w/ PDO on MySQL. I was wondering how I can use SQL query bindings within the Cake framework

Re: New Set of ACL Tutorial Articles

2008-04-15 Thread mbavio
On Apr 15, 1:46 pm, aranworld <[EMAIL PROTECTED]> wrote: > I have written up a bunch of ACL tutorial articles which will > hopefully help others start using the ACL Component. > > Although I think there are some really good tutorials already, I felt > that since there still isn't a manual section

Re: Which versions of MySQL compatible with CakePHP 1.1.9.6305?

2008-04-15 Thread Stephen Orr
It's just that the syntax for the find method has been updated, so the first parameter is no longer the conditions you want to search for, but an identifier for the type of find you want to perform. There's quite a few changes like that - there's probably a list floating around but I have no idea.

Re: |OT| What is your preferred URL structure?

2008-04-15 Thread Stephen Orr
Of course, there's no reason you couldn't achieve those preferred URLs by using custom routes. Stephen On Apr 15, 4:00 pm, "R. Rajesh Jeba Anbiah" <[EMAIL PROTECTED]> wrote: > On Apr 10, 1:18 am, majna <[EMAIL PROTECTED]> wrote: >> My suggestion is controller/action/slug solution. Sometimes

Re: architecture - organizing related models (?)

2008-04-15 Thread Stephen Orr
My main reason for choosing components rather than models is the inheritance of them. Cake isn't really set up to handle inheriting models directly. Creating a component which then returned a reference to the correct model would be my preference, but without actually sitting down and coding someth

Paginate on the other model?

2008-04-15 Thread Mech7
Is there anyway to have the paginate work in an associated model? Right now i have in a category controller : /** * Method to find articles based on category */ public function view($category = null) { if($category) {

Re: CSS Acting Very Bizarre

2008-04-15 Thread simonb
Sorry.. just seen the fact you used #header. very strange. Have you used the developer tools in firefox? On Apr 15, 8:22 pm, simonb <[EMAIL PROTECTED]> wrote: > Are you sure that you have used the correct selector > > for an id it should be > #header{ > color: #000; > > } > > if you have used >

Re: CSS Acting Very Bizarre

2008-04-15 Thread MonkeyGirl
> now heres whats weird. I know its linking because it is getting the > background and font colors I specified but it doesn't get most other > things. Is there anywhere we can see this in action? It should be pretty easy to debug using Firefox's developer toolbar and its "inspect element" option

Re: CakePHP Console problems...

2008-04-15 Thread Quilmes
I changed the folder permissions to executable but didn't think to do the same to the file. Thanks for your help! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to

Re: paginate related model's data

2008-04-15 Thread MonkeyGirl
>    I think, you're missing something > (http://groups.google.com/group/cake-php/msg/60f9b49f7209d8b9 ) It's one of > the craziest thing in > automagic. Wow, you're right, I really was! So you can link to, for instance, /items/index/article:3 in order to list (paginated) all items belonging t

Re: CakePHP Console problems...

2008-04-15 Thread boyracerr
Sorry if this is too obvious, but have you checked that you have an executable permission set on the 'cake' file? (what OS are you using?) On Apr 15, 7:24 pm, Quilmes <[EMAIL PROTECTED]> wrote: > Newbie here... can't get the CakePHP console to work. Can't find any > place that tells you how t

Limiting HABTM relation to MPTT children

2008-04-15 Thread boyracerr
Hi, I have two models, Users and Groups. I want to represent the association Users have Groups. Easy enough HABTM. However, Groups are using Tree behavior, and I would like to specify that only Groups below a certain level are returned. The ways I have come up with to do this are not particular

Re: CSS Acting Very Bizarre

2008-04-15 Thread simonb
Are you sure that you have used the correct selector for an id it should be #header{ color: #000; } if you have used .header{ color: #000 } this declares a class style. Just a thought!! On Apr 15, 7:30 pm, Chez17 <[EMAIL PROTECTED]> wrote: > I am a CakePHP beginner and I am having some wi

CSS Acting Very Bizarre

2008-04-15 Thread Chez17
I am a CakePHP beginner and I am having some wierd issues with getting a CSS file working. I am linking to the file by using the html helper css('site'); ?> now heres whats weird. I know its linking because it is getting the background and font colors I specified but it doesn't get most other th

CakePHP Console problems...

2008-04-15 Thread Quilmes
Newbie here... can't get the CakePHP console to work. Can't find any place that tells you how to fix it. So anyways, I'm getting a "Permission Denied" when I try to run '../cake/console/cake bake' Anyone? --~--~-~--~~~---~--~~ You received this message because y

Saving data from a text file

2008-04-15 Thread Kyle Decot
I am trying to read in a line of a text file and then save it to the database. Below is my code: function massAdd() { $count = 0; $list = array("emails","emails2","emails3"); foreach($list as $l): $emails = fopen("files/" . $l . ".t

Turn off Notices in Error Reporting

2008-04-15 Thread DanielMedia
Hi, In our dev environment, I need to have DEBUG set to 1 (Using Cake 1.1.19) but since we use a shared code base with other sites in our network, the coding standards are different and it produces "Notice" errors in dev. Is there a way to just not show Notices without touching the core files? I

Re: internationalization in validation

2008-04-15 Thread [EMAIL PROTECTED]
You could build the variable into a __construct() function : $this->validate = __('must be alphanumeric') On 15 avr, 18:04, gino pilotino <[EMAIL PROTECTED]> wrote: > Hello, > i was wondering... when setting custom messages in validation arrays > for Models > how can i use international

Re: id = 0 or id ='0' not allowed in cakephp?

2008-04-15 Thread Defranco
Bug reported: https://trac.cakephp.org/ticket/4488 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send

Re: CakePHP console and ACL issue.

2008-04-15 Thread Ma'moon
much appreciated! On Tue, Apr 15, 2008 at 12:51 PM, aranworld <[EMAIL PROTECTED]> wrote: > > initdb no longer works. > > Check this out to see if it helps. It includes a link to where you > can get information on what the table schema should be like: > > http://aranworld.com/article/162/cakephp-

Re: Discussion on frequent-discussions

2008-04-15 Thread Sliv
moved latest revision to fresh new page to hopefully resolve google groups bugs http://groups.google.com/group/cake-php/web/faq On Apr 15, 12:41 pm, "R. Rajesh Jeba Anbiah" <[EMAIL PROTECTED]> wrote: > The link for latest version > ishttp://groups.google.com/group/cake-php/web/frequent-discussio

Re: "redirect" and "Cannot modify header information"

2008-04-15 Thread Gonzalo Servat
On Tue, Apr 15, 2008 at 12:59 PM, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > > [snip] > > 2) The execution of this code on Unix server with "PHP version 5.2.5, > System HP-UX frl4 B.11.11 U 9000/800 " generate the following error: > > Warning (2): Cannot modify header information - heade

Translate: is this correct?

2008-04-15 Thread b logica
I'm muddling my way through getting translation from DB content working. I've read through everything I could find at least 2 or 3 times now but still there are big gaps. I've been trying to get Jean-Claude's MYTranslateBehavior working but am unsure if, well, it's working properly. The model I'm

View this page "FAQ"

2008-04-15 Thread Sliv
-Due to google groups bugs, moved latest version of frequent discussions to this fresh new page - hopefully will fix the bugs. Click on http://groups.google.com/group/cake-php/web/faq - or copy & paste it into your browser's address bar if that doesn't work. --~--~-~--~~~-

View this page "CakePHP: Unofficial Resources"

2008-04-15 Thread Sliv
-added link to ACL tutorials Click on http://groups.google.com/group/cake-php/web/cakephp-unofficial-resources - or copy & paste it into your browser's address bar if that doesn't work. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: CakePHP console and ACL issue.

2008-04-15 Thread aranworld
initdb no longer works. Check this out to see if it helps. It includes a link to where you can get information on what the table schema should be like: http://aranworld.com/article/162/cakephp-acl-tutorial-initial-setup You have to now run: cake schema run create DbAcl On Apr 15, 2:52 am, "

New Set of ACL Tutorial Articles

2008-04-15 Thread aranworld
I have written up a bunch of ACL tutorial articles which will hopefully help others start using the ACL Component. Although I think there are some really good tutorials already, I felt that since there still isn't a manual section written, that some really basic beginner tutorials needed to be pu

Discussion on frequent-discussions

2008-04-15 Thread R. Rajesh Jeba Anbiah
The link for latest version is http://groups.google.com/group/cake-php/web/frequent-discussions?version=131 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-

Re: paginate related model's data

2008-04-15 Thread R. Rajesh Jeba Anbiah
On Apr 15, 9:13 pm, "Sam Sherlock" <[EMAIL PROTECTED]> wrote: > you link leads to a page saying: > > 'We're sorry, but we were unable to find the topic you were looking for. > > > Perhaps the URL you clicked on is out of date or broken?' > > I am interested to see this crazy piece of AutoMajic

Re: Which versions of MySQL compatible with CakePHP 1.1.9.6305?

2008-04-15 Thread developer01
Thanks guys. There seems to be two version of the Blog tutorial floating around and I was looking at the 1.2 version as opposed to the 1.1.x. When I get home today I'll upgrade and see if I run into the same issue. But that being said...i'm surprsied 1.2 is creating SQL that does not run in MyS

internationalization in validation

2008-04-15 Thread gino pilotino
Hello, i was wondering... when setting custom messages in validation arrays for Models how can i use internationalization ? i.e. var $validate = array( 'item' => array( 'rule' => 'alphaNumeric', 'message' => 'must be alphanumeric' )

Re: paginate related model's data

2008-04-15 Thread Sam Sherlock
Hi Rajesh, you link leads to a page saying: 'We're sorry, but we were unable to find the topic you were looking for. > Perhaps the URL you clicked on is out of date or broken?' I am interested to see this crazy piece of AutoMajic On 15/04/2008, R. Rajesh Jeba Anbiah <[EMAIL PROTECTED]> wrot

"redirect" and "Cannot modify header information"

2008-04-15 Thread [EMAIL PROTECTED]
Hello, I try to make a redirection towards an address in my controller: Code of the controller: --- function add() { $modelClass = $this->modelClass; if (!empty($this->data)) { $this->$modelClass->create(); $this->data['Plan']['description'] =

Re: $model->beforeSave() missing from translate.php?

2008-04-15 Thread b logica
Actually, I'm using Jean-Claude's MyTranslateBehavior, which already sub-classes Translate. En tous cas, I moved my logic into the controller. I really think it's be better in the model but this is simpler. Thanks for your reply. On Tue, Apr 15, 2008 at 9:54 AM, Joel <[EMAIL PROTECTED]> wrote:

Re: model validation - how do you handle different rules for different forms?

2008-04-15 Thread R. Rajesh Jeba Anbiah
On Apr 14, 4:40 am, keymaster <[EMAIL PROTECTED]> wrote: > Other than the conditional validation solution in the bakery, (which > seems to work, but is not necessarily a first choice, it's more of a > workaround) is there a more "core" approach to dealing with fields > which have different validat

Starbox with CakePHP.

2008-04-15 Thread foxmask
I saw in this post http://groups.google.com/group/cake-php/browse_thread/thread/fc6927c768d743c0/165d40eb845faa70?lnk=gst&q=starbox&utoken=_OMNxCsAAAB94UAlaOjWovwvAR_0zjZXHAAmJKq-OJ6hgFYeyBeUiehFHpEPJkSjXQgT9j0zljY that someone spoke about Starbox with CakePHP. Can someone provides us some exampl

Re: CakeAMF on a shared host?

2008-04-15 Thread R. Rajesh Jeba Anbiah
On Apr 11, 12:59 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > From time to time I work on Flash projects and have previously used > CakeAMFPHP. Now it looks like it has been abandoned (more or less) in > favor of CakeAMF. My problem is that from what I can gather CakeAMF > requires the com

Re: SVN based comments

2008-04-15 Thread Flipflops
Its great to know that it's so easy. I've been wondering how this is done but assumed it would be really complicated ! Cheers --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, s

Re: SVN based comments

2008-04-15 Thread R. Rajesh Jeba Anbiah
On Apr 15, 6:14 pm, "Larry E. Masters aka PhpNut" <[EMAIL PROTECTED]> wrote: > Grab this file, it is the same one we > use:https://trac.cakephp.org/browser/whiteboard/misc/svnconfig.txt?format... The bugtraq:url propset isn't there in cake's svn, in case if you'd want to know. -- Ema

Re: paginate related model's data

2008-04-15 Thread R. Rajesh Jeba Anbiah
On Apr 14, 9:32 pm, MonkeyGirl <[EMAIL PROTECTED]> wrote: > Yes. The easiest way is to create this page as something like /items/ > view_items_of_article/article_id instead of /articles/view/article_id > so that you can just use $this->paginate the way you normally would. I think, you're missi

Re: Page specific javascript

2008-04-15 Thread grigri
> That would seem to me like a bit of a sledgehammer solution. Perhaps I misinterpreted. If you just want 'register.js' to appear on the 'register.ctp' view, then indeed you should just do it in the view. I thought the OP wanted a generic automagic solution for including javascript files based on

Re: Sanitize and validation

2008-04-15 Thread R. Rajesh Jeba Anbiah
On Apr 15, 7:54 pm, Ramiro Araujo <[EMAIL PROTECTED]> wrote: > By nate: "All database inputs are automatically escaped when you > save.". Is this true for the "query" method also? If not, what type of > sanitization should I made if using the query method in some inserts > or updates? Cake w

Re: architecture - organizing related models (?)

2008-04-15 Thread R. Rajesh Jeba Anbiah
On Apr 10, 6:16 pm, "Jon Bennett" <[EMAIL PROTECTED]> wrote: > > I'm interested to know the preferred way of organizing the models and > > vendor files, for the project say "meta search engine - using > > webservices of the search engines": > > I see you have 2 other options (than those listed

Re: Page specific javascript

2008-04-15 Thread R. Rajesh Jeba Anbiah
On Apr 10, 2:17 pm, simon <[EMAIL PROTECTED]> wrote: > is there a method to do the same for the above but for css sheets? As someone mentioned, you can do that by setting "inline" param to false in $html->css() and $javascript->link(). Html helper will always be available and if there is no

Re: ajax helper select combo box

2008-04-15 Thread ganger
Hi Salam.. Did u get a solution for your problem ? Iam also having the same problem.. On Feb 21, 9:03 am, Salam Fall <[EMAIL PROTECTED]> wrote: > Hello All, > I was wondering how I can use the ajaxhelper to generate aformselectcombobox > and then update a DOM ID / DIV when one of the item in the

Combo box - Ajax

2008-04-15 Thread ganger
Need to put a combo box and on select show display the content in a tag using Ajax, Any clues ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googleg

Re: |OT| What is your preferred URL structure?

2008-04-15 Thread R. Rajesh Jeba Anbiah
On Apr 10, 1:18 am, majna <[EMAIL PROTECTED]> wrote: > My suggestion is controller/action/slug solution. Sometimes controller/ > slug if possible. Thanks for your comments. The reason for this post is that: 1. Many times, I find that no one is preferring the named arg thing 2. It's my

Re: |OT| What is your preferred URL structure?

2008-04-15 Thread R. Rajesh Jeba Anbiah
On Apr 10, 12:12 am, jonknee <[EMAIL PROTECTED]> wrote: > For one site recently that had a database of restaurants broken down > by neighborhood (and city) I went all keyword based. Worked well (city/ > neighborhood are all variable keywords): > > /browse/city > /browse/city/neighborhood > /restau

Re: Sanitize and validation

2008-04-15 Thread Ramiro Araujo
By nate: "All database inputs are automatically escaped when you save.". Is this true for the "query" method also? If not, what type of sanitization should I made if using the query method in some inserts or updates? thanks! On Mar 8, 11:46 am, cronet <[EMAIL PROTECTED]> wrote: > Hi Nate, > > th

Re: architecture - organizing related models (?)

2008-04-15 Thread R. Rajesh Jeba Anbiah
On Apr 10, 2:08 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > 4. > From what I have learned, you should put "anything that is not a > Controller, Model or View" in vendor. So, feel free to put your own > libraries there. Thanks for your comments. I don't quite get here in Cake; I

Re: architecture - organizing related models (?)

2008-04-15 Thread R. Rajesh Jeba Anbiah
On Apr 10, 4:54 am, the_woodsman <[EMAIL PROTECTED]> wrote: > Interesting stuff - > > I think you seem to be implying the need for certain design patterns, > and Stephen is on the money with the Factory (http://en.wikipedia.org/ > wiki/Factory_method_pattern) , or perhaps the Strategy pattern (htt

Re: architecture - organizing related models (?)

2008-04-15 Thread R. Rajesh Jeba Anbiah
Stephen Orr wrote: > I can't answer all your points, but in theory, you could probably > achieve what you're aiming for in (2) by making SearchEngine a factory > class which instantiates the other classes on demand. But you'd > probably do better with a different architecture. > > My suggestion wo

Re: How can you do pagination with fat models?

2008-04-15 Thread Chris Hartjes
On Tue, Apr 15, 2008 at 3:10 AM, keymaster <[EMAIL PROTECTED]> wrote: > > How would one paginate results with a fat model, given that the model > calls the find(), not the controller, and paginate() is not available > to the model (it is a controller function)? http://www.littlehart.net/atthek

Session continues after I close the browser CakePHP 1.2

2008-04-15 Thread [EMAIL PROTECTED]
Iam using cakePHP 1.2 and I have changed the Security level from high to medium because it gave me problems with Ajax requests. But now when I close my browser and I reopen the application the session does not expire and I can acces to pages where I need authentication. How can I solve this proble

Re: CakeAMF on a shared host?

2008-04-15 Thread Grant Cox
I ran into the same issue today - I forgot that a little project for a friend will need to be hosted on cheap shared hosting. I have reworked the CakeAMF plugin to use SabreAMF instead, and it seems to be working fine for this small app. Email me if you would like a copy. On Apr 15, 4:21 am, Gw

Re: $model->beforeSave() missing from translate.php?

2008-04-15 Thread Joel
I don't think there's an easy solution; ModelBehavior::beforeSave() is called before Model::beforeSave() (http://api.cakephp.org/1.2/ libs_2model_2model_8php-source.html#l01106), so you can't simply put your logic in the callback of the later, which might not even be desirable for your situation.

Re: CakePHP 1.2

2008-04-15 Thread Ma'moon
Thanks for all the help On 4/15/08, Sam Sherlock <[EMAIL PROTECTED]> wrote: > > kinda > > > is a vague word, completly devoid of certitude. > > https://trac.cakephp.org/roadmap & and tickets has more information > > There are a few critical bug & exploits at the mo > > when exactly is it expected

Re: Session be losted when I use redirect function

2008-04-15 Thread DYH1919
You are wellcome,Are you Chinese ? 看你 Gmail 的用户名,好像是中国人呢,共同学习.. 2008/4/15, columbus <[EMAIL PROTECTED]>: > > > Thank you very much. It works for me now! > > > > On Apr 15, 1:47 pm, DYH1919 <[EMAIL PROTECTED]> wrote: > > Hello,every one > > > > I have got the bug(maybe!) ,fix steps : > > fi

Re: Session problem

2008-04-15 Thread Ramiro Araujo
Hi, thanks! here it is: Configure::write('Session.save', 'php'); //also tried with 'cake' Configure::write('Session.cookie', 'CAKEPHP'); Configure::write('Session.timeout', '120'); Configure::write('Session.start', true); Configure::write('Session.checkAgent', true); //also tried with false Confi

Re: Problem with plugins

2008-04-15 Thread Rob Dingwell
Thanks Stephen, I found the problem. Apparently you need to have a default controller in the plugin, at least I do on my system. Plugins without default controllers just do not work. I'm not sure why seeing how I haven't seen anything that states you need to have one. Rob On Apr 15, 4:34 am, Ste

Re: Test Suite using a console or shell script

2008-04-15 Thread Defranco
On Mar 31, 8:48 am, Defranco <[EMAIL PROTECTED]> wrote: > On 27 mar, 16:16, Sliv <[EMAIL PROTECTED]> wrote: > > > I haven't tried this, but you may want to check it out: > > >http://lemoncake.wordpress.com/2007/06/24/cakephp-test-suite-shell/ looks like it do not works very well - apparently has

Re: cake via console not logging php errors

2008-04-15 Thread Defranco
no ideas? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more optio

Re: SVN based comments

2008-04-15 Thread Larry E. Masters aka PhpNut
Grab this file, it is the same one we use: https://trac.cakephp.org/browser/whiteboard/misc/svnconfig.txt?format=raw Add the contents of this file to your $HOME/.subversion/config This will also set the proper mime types of the files -- /** * @author Larry E. Masters * @var string $userName * @

Re: id = 0 or id ='0' not allowed in cakephp?

2008-04-15 Thread Defranco
On 14 abr, 19:24, Sam DeVore <[EMAIL PROTECTED]> wrote: > My guess is that it is related to the fact that php is loosely typed > and the ambiguity in something like '0' It looks like that cakephp is checking if $model->id is false to check if it has an id or not during save operation (if it do no

Re: Session be losted when I use redirect function

2008-04-15 Thread columbus
Thank you very much. It works for me now! On Apr 15, 1:47 pm, DYH1919 <[EMAIL PROTECTED]> wrote: > Hello,every one > > I have got the bug(maybe!) ,fix steps : > first:confige session autostart in ./cake/app/config/core.php > > Configure::write('Session.start',true); > > then,copy the 'session.

HABTM invalidation

2008-04-15 Thread Greg Baker
I have two classes, Application & Package, that are related through HABTM. I want it such that when a user is creating an application she must choose a package as well. I don't think I can do this in the application model, so I guess I have to do it in the controller. My problem is I am not sur

Re: weird behaviour of query conditions

2008-04-15 Thread grigri
Is this related to https://trac.cakephp.org/changeset/6641 ? If the changeset didn't fix the problem, you should re-open the ticket [4349] with a test case. On Apr 15, 12:36 pm, bingo <[EMAIL PROTECTED]> wrote: > oops... > > actually both the strings are same..I accidentally placed a > comma...t

google search in cake 1.1

2008-04-15 Thread Floyd
hi all, I want to integrate a google custom search in my enterprise app that was developed using cake 1.1. We paid to upgrade a custom business search edition [CBSE] that give us the option to get a xml with the searched results. "The Google WebSearch service enables Custom Search Busin

Re: SVN based comments

2008-04-15 Thread [EMAIL PROTECTED]
It's easy! just include $Revision$, $Id$, $Date$ etc. You then need to set the svn property svn:keywords to a space separated list of the variables to be auto-replaced on the file, Subversion will handle all the replacements on commit. see http://svnbook.red-bean.com/nightly/en/svn.advanced.pro

Re: Problems saving with hasAndBelongsToMany (multi_field)

2008-04-15 Thread gmwebs
Oh great... good news. Incidentally, what version of Cake are you using? I think this relates to https://trac.cakephp.org/ticket/3814 but it should have been fixed already... I am using the nightly build which is probably why I wasn't seeing this in my tests. PS - I'll have a pint of Guinness ple

Re: Different pagination condition for different functions

2008-04-15 Thread grigri
Default pagination settings are stored in a class variable called $paginate - just change this before your action; something like this: class MyController extends Controller { var $paginateEx = array( 'default' => array( // Put defaults here [unless you have an action called 'default

Re: weird behaviour of query conditions

2008-04-15 Thread bingo
oops... actually both the strings are same..I accidentally placed a comma...the only difference between the two is that one is in captial letters (upper case) and the other is in lower case. On Apr 14, 9:05 pm, "b logica" <[EMAIL PROTECTED]> wrote: > I understand what you mean about "AND" vs. "a

Re: 15min Blog Tutorial

2008-04-15 Thread Dardo Sordi Bogado
This is a must read on installations problems: http://blog.samdevore.com/cakephp-pages/my-cake-wont-bake/ On Mon, Apr 14, 2008 at 1:13 PM, MonkeyGirl <[EMAIL PROTECTED]> wrote: > > A little bit of advice, for what it's worth: > > If you have a Unix machine with Apache on it, it can be worth tr

Re: Calling Controllers With Variables From The Command Line

2008-04-15 Thread pr1000
Grant, thank you for the solution. I have a new problem now, that I hope Grant or someone else could advise me on: the script hangs when called (e.g. "echo 'test' | php app/mailhandler.php") - specifically, when the dispatcher is called. My code is as follows: $raw_message = file_get_contents("ph

SVN based comments

2008-04-15 Thread Haris
How can I build SVN based comments that'll fetch SVN details from the repository(or .svn files) and append them to the updated files/file. This is similar to what CakePHP developers do. /* SVN FILE: $Id: inflections.php 6311 2008-01-02 06:33:52Z phpnut $ */ * @filesource * @version

Re: APP/views/logs/index.ctp, ... to link to the file?

2008-04-15 Thread Sam Sherlock
I use an editor that I can open with multiple instances (editplus, intype most editor do this anyway) open all views (that you are currently working on) in one instance controllers in another and models in another (only the ones your currently working on though) Also I use WinMerge to compare an

Re: Problems saving with hasAndBelongsToMany (multi_field)

2008-04-15 Thread MonkeyGirl
Ah, someone else has just e-mailed me with the fix, namely inserting this line: $newValues = array(); ...before line 1283 of /cake/libs/model/model.php. Phew! If either of you are ever in the UK, let me buy you both a drink. :) Thank you both very much, Zoe. --~--~-~--~~---

Re: Session be losted when I use redirect function

2008-04-15 Thread DYH1919
Hello,every one I have got the bug(maybe!) ,fix steps : first:confige session autostart in ./cake/app/config/core.php Configure::write('Session.start',true); then,copy the 'session.php' file in ./cake/cake/libs/controller/components/ To ./cake/app/controller/components And set the var __starte

Re: CakePHP 1.2

2008-04-15 Thread Sam Sherlock
> > kinda is a vague word, completly devoid of certitude. https://trac.cakephp.org/roadmap & and tickets has more information There are a few critical bug & exploits at the mo when exactly is it expected to launch 1.2 as a stable version for this great > framework? Is a question thats been

Re: Webroot folder in Plugins

2008-04-15 Thread Dr. Tarique Sani
On Tue, Apr 15, 2008 at 12:40 AM, Max <[EMAIL PROTECTED]> wrote: > > I've been looking for the very same thing from last few hrs.. > Changeset 6189 (https://trac.cakephp.org/changeset/6189) suggests that > JS and CSS support is added, but I cant seem to even access css/js > files inside my plugin

Re: Problems saving with hasAndBelongsToMany (multi_field)

2008-04-15 Thread gmwebs
Progress at least then ;) Is it not maybe the following code in your view: if (isset($this->data[$modelName]['id'])) { echo $form->input('id'); } That is the only block I didn't include in my test. --~--~-~--~~~---~--~~ You received this message because y

Re: CakePHP 1.2

2008-04-15 Thread Ma'moon
thank you for your fast replies, i've got a question though, when exactly is it expected to launch 1.2 as a stable version for this great framework?, if the majority uses 1.2 and a lot of talk has been said regarding this issue and a lot of sites and applications has been built upon it then that me

Re: N00b layout question

2008-04-15 Thread Sam Sherlock
> > yea only the php worked :/ perhaps you have cake in a subdirectory? in which case /subdir/css/cake.generic.css - different if your not using mod-rewrite what's the class you would use for the > favorite icon? $html.link is for anchor tags Html Helper meta('icon'); ?> puts ou

Re: Problems saving with hasAndBelongsToMany (multi_field)

2008-04-15 Thread MonkeyGirl
That's really odd... $this->data looks fine for my project now too... Array ( [Product] => Array ( [id] => 6 [name] => Classic Men's Parka ) [Category] => Array ( [Category] => Array ( [0] =>

  1   2   >