Duvida com o bake 1.2

2008-01-21 Thread DrWinux
Pessoal estou numa luta contra o bake do cake1.2, mais não consigo personalizar os arquivos view já editei os arquivos do seguite lugar /cake/console/libs/templates/ views, que encontrei num site em ingleshttp://cakebaker.42dh.com/ 2007/06/11/baking-views/, mais não funcionou, continua gerando

Re: Duvida com o bake 1.2

2008-01-21 Thread Bill
vc quer personalizar pra já gerar personalizado, pq normalmente eu gero no bake os arquivos, mas não gero usando scaffold, gero os arquivos de add, edit, view, delete, e depois edito um por um. qual seria sua necessidade? Bill Pessoal estou numa luta contra o bake do cake1.2, mais não

Re: Duvida com o bake 1.2

2008-01-21 Thread Sadjow Medeiros Leão
Eu traduzir o bake do 1.1 se quiser eu arrumo. E implementei para ele colocar fckeditor automáticamente nas textareas que eu quiser. A views já vem em português. Vou ver se faço no 1.2 também. Sadjow Medeiros Leão --~--~-~--~~~---~--~~ Recebeu esta mensagem porque

Re: Duvida com o bake 1.2

2008-01-21 Thread Bill
se puder disponibilizar seria otimo, principalmente por conta dos textareas com fckeditor. abraços Bill Eu traduzir o bake do 1.1 se quiser eu arrumo. E implementei para ele colocar fckeditor automáticamente nas textareas que eu quiser. A views já vem em português. Vou ver se faço no 1.2

Implementação Carrinho de compras

2008-01-21 Thread TSassara
Olá pessoal! Alguem já implementou uma loja virtual? Estou desenvolvendo uma pequena loja e minhas duvidas estão na implementação do carrinho. Gostaria de saber se alguem tem alguma boa dica. Estive pensando em algumas formas. Pensei em guardar as informações do carrinho em uma sessão. Com um

Re: Seesion Cakephp 1.2

2008-01-21 Thread Juan Basso
Que tipo de session você está usando? File, PHP, DB, ...? Eu uso o padrão (php) e não tenho problemas... O que já vi dar problema é utilizar o método PHP e no php.ini ele apontar para uma pasta inexistente ou sem permissão, causando tal erro. Juan Basso On 21 jan, 09:22, Rogerio Oliveira

Re: database.php: $test?

2008-01-21 Thread [EMAIL PROTECTED]
The test database is simply a temporary database used in unit tests that require a database to run. Say you want to write a test that involves some custom SQL or simply some condition of ordering logic in your model. To be able to run such a test you need an actual database (that you fill with

Re: Fixtures problem in Cake 1.2

2008-01-21 Thread sidr
A have no problem with a test of single model I said I cannot get records from the fixture for joined table --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: Simple binding question.

2008-01-21 Thread phpjoy
for some kind of reason, this didn't work: $this-Ticket-bindModel(array('belongsTo' = array('Deal' =array('foreignKey' = 'deal_id'; $this-Ticket-Deal-bindModel(array('belongsTo' = array('Item' =array('foreignKey' = 'item_id'; On the query, it searched for: Item.id = Ticket.item_id (and

Re: Dynamic form creation?

2008-01-21 Thread cakeFreak
I did the following while working on a dynamic questionnaires generation system. 1 Questionnaire hasMany Questions 1 Question has Many options (for multiple answers) --- ANSWERS -- 1 Questionnaire hasMany AnswersMain 1 AnswerMain hasMany Answers AnswerMain has:

Re: Dynamic form creation?

2008-01-21 Thread cakeFreak
I did the following while working on a dynamic questionnaires generation system. 1 Questionnaire hasMany Questions 1 Question has Many options (for multiple answers) --- ANSWERS -- 1 Questionnaire hasMany AnswersMain 1 AnswerMain hasMany Answers AnswerMain has:

Re: Simple GROUP BY ?

2008-01-21 Thread Claudia
Hi there Something like this might work (untested): $conditionsArr = array('HotelDescriptionPhoto.hotel_id' = $hotel_id, '1=1 GROUP BY HotelDescriptionPhoto.photo_id'); $hotel = $this-Hotel-findAll($conditionsArr); Although you should make sure that you really need a

Pagination

2008-01-21 Thread bhushan A
I have followed steps as per link http://bakery.cakephp.org/articles/view/pagination. Pagination is achieved but its displying Result per page = 20 by default. I want to take that from user. There is one function resultPerPageSelect() in view/helper/pagination.php . We have to call it in

Re: Simple binding question.

2008-01-21 Thread Dardo Sordi Bogado
Do bind in the model you will execute the findAll! As you say: A deal has many tickets, and belongs to one item. do bind: Deal hasMany Ticket, Deal belongsTo Item. HTH, - Dardo Sordi. On Jan 21, 2008 7:16 AM, phpjoy [EMAIL PROTECTED] wrote: for some kind of reason, this didn't work:

Re: Simple GROUP BY ?

2008-01-21 Thread Marcin Jaworski
I don't see a reason for using grouping in this query. 'Group by' is only needed if you want to use some aggregation functions like SUM, AVG, MAX, MIN etc. If you don't use them, you don't need 'group by' in your query. I think that use of 'order by' would be enough in your situation, so you need

Re: How to get a Helper and a Component reuse the same code?

2008-01-21 Thread [EMAIL PROTECTED]
OMG! I'm so sorry for the language in the top paragraph. Try this instead :) I am being picky about trying to keep things DRY and I would really like be able to have a component and a helper use the same code. --~--~-~--~~~---~--~~ You received this message

cakephp 1.2 beta, How to add metalanguage support in my application?

2008-01-21 Thread ali
Can any body tell me in detail, how I can add multi language support in application. I am newby to cakephp. Please help me in this regard, thanks, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To

Re: SQL Error: 1110: Column 'id' specified twice with Scaffolding

2008-01-21 Thread rogwei
I have a similar problem. Different table but same process/scenario. The only additional data point I can add is that this only occurs if I try to use the automagic UUID feature, that is if I specify the id column as char(36) not null primary key. When I use int(11) not null auto_increment

Passing ID (MySQL) from one table to the next

2008-01-21 Thread ryoungsma
Hi All, I am working on an application that uses a Primary Key 'ID'. This ID is based on Table A. Another portion of this application needs to use the ID for Table B. My question is how would I pass that ID (from Table A) in a form to a newly added item in Table B? I was thinking of this.

Help - problem with Cakephp + phpFlickr authenticated sessions

2008-01-21 Thread mixersoft
I posted this on the phpFlickr forum, but thought I might also try here: http://phpflickr.com/forums/comments.php?DiscussionID=241 My problem is getting an authenticated session with phpFlickr so I can access private photos. It seems to get stuck in a redirect loop. Has anyone managed to get

AJAX Request - DHTML Suite

2008-01-21 Thread ryoungsma
I am looking at using the DHTML Suite (dhtmlgoodies.com) with my application. I am using their Window Widget to retrieve some information via AJAX. The issue is that it uses the URL as a parameter when when you create the window from Javascript. Cake always seems to return a message that it is

Re: How to get a Helper and a Component reuse the same code?

2008-01-21 Thread nate
The simplest way to do it would be to write a base class, stick it in your vendors, and have the helper and component each extend it. This is kind of cheating, but as long as your helper doesn't need any of the Helper base class functionality, you should be good. As far as the setFlash bit, Im

Re: cakephp 1.2 beta, How to add metalanguage support in my application?

2008-01-21 Thread djiize
http://groups.google.com/group/cake-php/web/frequent-discussions Go to section How to add i18n support? On 21 jan, 11:40, ali [EMAIL PROTECTED] wrote: Can any body tell me in detail, how I can add multi language support in application. I am newby to cakephp. Please help me in this regard,

How do people usually learn CakePHP and what is best?

2008-01-21 Thread Oxygen
I've been playing around with CakePHP for a little over 24 hours in total now and I've just given up on the IBM Cook up Web sites fast tutorial; it was hopelessly buggy and inconsistent. I don't want to rant, and obviously some parts are out of date, but for this tutorial to be one of the

PostgreSQL Update Query and the trouble with aliases

2008-01-21 Thread [EMAIL PROTECTED]
I'm having trouble making UPDATE queries in PostgreSQL. I know that there is a known issue about Postgres not supporting aliases in UPDATE queries. Anyway, my problem is that when I try to create new Aro like this: $parent = $this-Acl-Aro-findByAlias('SuperUser');

Re: AJAX Request - DHTML Suite

2008-01-21 Thread hydra12
Can you show the relevant js code? Specifically, how are you inputting the url? On Jan 21, 7:29 am, ryoungsma [EMAIL PROTECTED] wrote: I am looking at using the DHTML Suite (dhtmlgoodies.com) with my application. I am using their Window Widget to retrieve some information via AJAX. The

Re: How to get a Helper and a Component reuse the same code?

2008-01-21 Thread [EMAIL PROTECTED]
Ok, I have never regarded the vendors directory as a place to put my code. I have viewed it exclusively as a place for external libraries and PEAR stuff if needed. Your suggestion should work since neither component nor helper uses any cake functionality. They simply determine the current

Re: How do people usually learn CakePHP and what is best?

2008-01-21 Thread clemos
Hi Ben I think the very first step is to follow the 15 min Cake Blog Tutorial http://manual.cakephp.org/appendix/blog_tutorial It allows you to setup a cake install, and build a very simple blog engine with it, thus demonstrating Cake's basic concepts. Once you're done with it, check out the

Re: Simple GROUP BY ?

2008-01-21 Thread cronet
Thanks for your replies! @Claudia, I will try this! @Marcin I think an order by is not enough in this case. There are multiple entries with the same photo_id, but different descriptiontype_id's ... But at the end they are the same photos. Only in different categories (descriptiontypes). This

Re: Can't find any services through AMF plugin

2008-01-21 Thread kiang
On Jan 21, 6:16 am, Grant Cox [EMAIL PROTECTED] wrote: Well, I've never used the service browser, but the AMF plugin works fine from Flex. Maybe I did rely it too much. So you didn't use any other tool to help developing applications combined with Flex and CakePHP? I'm not familiar with flex

Re: AJAX Request - DHTML Suite

2008-01-21 Thread ryoungsma
Here is the js code to generate the window script type=text/javascript function createNewWindow() { var newWindowModel = new DHTMLSuite.windowModel( {windowsTheme:false,id:'newWindow', title:'New dynamically created window', xPos:200,yPos:200,minWidth:400,minHeight:600 } );

Re: How do people usually learn CakePHP and what is best?

2008-01-21 Thread Baz
http://tempdocs.cakephp.org/ On Jan 21, 2008 8:54 AM, clemos [EMAIL PROTECTED] wrote: Hi Ben I think the very first step is to follow the 15 min Cake Blog Tutorial http://manual.cakephp.org/appendix/blog_tutorial It allows you to setup a cake install, and build a very simple blog engine

Version of cakephp

2008-01-21 Thread [EMAIL PROTECTED]
Hi all, I'm newbe of cakephp, what version should I use? There are: # Stable: 1.1.19.6305 # Beta: 1.2.0.6311 are there version compatible? I saw that in 1.1 template are .thtml, in 1.2 are .ctp. Can you correct me if I was wrong? thanks all! Francesca

Re: AJAX Request - DHTML Suite

2008-01-21 Thread hydra12
OK, a couple of things. First, I've never used DHTML Suite, but this works for me using extjs. I think it will work for you, too. First, try hard-coding your url: contentUrl: 'http://localhost/myapp/vendor/view/107' //or whatever your url is :-) Note: if you put localhost in, you have to

Model with no data source / database - how to do this in CakePHP 1.2?

2008-01-21 Thread Matt
I've got an application built in CakePHP 1.1 and I am having trouble in my attempts to port it to 1.2 as my models which had no data source / database are giving me errors. Back in CakePHP if you want a model that didn't use the database you just set $useTable = false but this doesn't work in

question about phpThumb

2008-01-21 Thread [EMAIL PROTECTED]
Does anyone know how to disable the error images? If phpThumb ever errors out it turns the entire page into an image with the error on it. I'd like it to just not generate the thumb and keep parsing. I've tried setting $PHPTHUMB_CONFIG['disable_debug'] = true; in the phpThumb.config.php file but

Re: How do people usually learn CakePHP and what is best?

2008-01-21 Thread [EMAIL PROTECTED]
I think the most efficient way is to pick a project that interests you, keep the manual handy and start developing. If it interests you, you'll stick with it. Dave On Jan 21, 8:39 am, Baz [EMAIL PROTECTED] wrote: http://tempdocs.cakephp.org/ On Jan 21, 2008 8:54 AM, clemos [EMAIL PROTECTED]

Calling one page from another

2008-01-21 Thread MonkeyGirl
Hi! I'm trying to run another controller's unrelated method from within the method of the page being accessed, in the hope I might be able to get all the variables it's setting to avoid code duplication. It looks like requestAction can do this very thing, but I can't seem to get it to output

Re: How do people usually learn CakePHP and what is best?

2008-01-21 Thread RichardAtHome
David above identified the method that worked for me. Liberal echo pr($variable) in the models/controller/views was invaluable to me to work out what was getting passed by who and to where. Using Bake to build your scaffolding. You can learn an awful lot by looking at the baked code. Blogs

Re: Setting $useDbConfig at runtime with cake 1.2 beta

2008-01-21 Thread hydra12
Look at the values in $this-params (it's an array with all the parameters passed to the controller). If selenium is always the last parameter, you could check that, or you could just do: if(in_array('selenium', $this-params) { $this-useDbConfig='selenium'; } HTH! hydra12 On Jan 19, 11:58

Re: Simple Bog tutorial Sorting question

2008-01-21 Thread hydra12
findAll is a model function, so you can find it in the manual under models, or you can find it in the api under models. Don't feel bad if you have trouble finding things at first - we all do. As long as you make an honest effort to find things first, you'll find that the cake community is

Re: Calling one page from another

2008-01-21 Thread [EMAIL PROTECTED]
It should work, you have to set requestaction equal to a variable if you want the returned output, this is how I use it: $results = $this-requestAction('/controller/method'); Also, make sure that your method ends with: return($datayouwanttoreturn); You can also define the function in your

Re: Confused using forms (i think!)

2008-01-21 Thread hydra12
I haven't ever tried this, but I think that $this-User-Usertype- find() needs to be $this-User-Usertype-findAll() if you want to get a list of all the different user types. Best way to do this - use bake to make your views, then see how it handles this. On Jan 19, 3:57 pm, judouk [EMAIL

Re: Confused using forms (i think!)

2008-01-21 Thread grigri
$html-selectTag() and friends are deprecated in 1.2 - do you mean 1.1? Anyway, here's how to do it: in 1.1: (I think. it's been a while) [controller] $this-set('usertypes', $this-User-Usertype-generateList()); [view] ?php echo $html-selectTag('User/usertype_id', $usertypes,

Re: cakephp 1.2 :: Database prefix and tips about sanitize

2008-01-21 Thread hydra12
I could be wrong, but I don't think you have to do anything to use the database prefix. That's configured in database.php. On Jan 19, 1:21 pm, Josoroma [EMAIL PROTECTED] wrote: I have an afterSave function inside a model, my two questions are: #1 How do i use the database prefix? #2 Do i

Re: Using view from a parent controller

2008-01-21 Thread grigri
First, please specify your cake version, as it generally makes a huge difference if you're on 1.1 or 1.2. I'm going to assume you're on the 1.2 beta. If you want EVERY method in your ChildController to render the parent's view, it's easy-peasy class ChildController extends SomeParentController

Re: Error editing a record without foreign key

2008-01-21 Thread dandreta
? --~--~-~--~~~---~--~~ 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 options, visit

Re: Pass elements from one list to other one in HABTM

2008-01-21 Thread dandreta
Any suggestion please? On 19 ene, 14:03, dandreta [EMAIL PROTECTED] wrote: Hi! I have an HABTM relation between ModelA and ModelB. In the add view of A, I have created two lists(two multiple selects), one with all B elements of the database and other one empty . I pass elements of the

Re: AJAX Request - DHTML Suite

2008-01-21 Thread ryoungsma
Thank you so much for the help. With your guidance I was able to work this out. If interested here is the what it looks like. script type=text/javascript function createNewWindow(id) { var host ='?php echo $_SERVER['HTTP_HOST']; ?'; var viewId = id; var newWindowModel = new

Re: question about phpThumb

2008-01-21 Thread Chris Hartjes
On Jan 21, 2008 11:10 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Does anyone know how to disable the error images? If phpThumb ever errors out it turns the entire page into an image with the error on it. I'd like it to just not generate the thumb and keep parsing. I've tried setting

Re: How to test that adatabase table exists ?

2008-01-21 Thread hydra12
Here's an idea: assuming you have a table users with data in it and a table schools that is empty. In the users controller: function test() { $data = select * from users limit 0,1; //custom query, limit to make things run faster $temp = $this-User-execute($data); if($temp)

Re: Model with no data source / database - how to do this in CakePHP 1.2?

2008-01-21 Thread Chris Hartjes
On Jan 21, 2008 11:02 AM, Matt [EMAIL PROTECTED] wrote: I've got an application built in CakePHP 1.1 and I am having trouble in my attempts to port it to 1.2 as my models which had no data source / database are giving me errors. Back in CakePHP if you want a model that didn't use the

Re: AJAX Request - DHTML Suite

2008-01-21 Thread hydra12
I'm glad it worked for you! On Jan 21, 11:06 am, ryoungsma [EMAIL PROTECTED] wrote: Thank you so much for the help. With your guidance I was able to work this out. If interested here is the what it looks like. script type=text/javascript function createNewWindow(id) { var host ='?php

Re: Calling one page from another

2008-01-21 Thread MonkeyGirl
Also, make sure that your method ends with: return($datayouwanttoreturn); Thank you! This is what I was missing. I'm so used to CakePHP being magical that I assumed it'd to something amazing like return the $this- set variables automatically. Now that I've ended the method being called with

Re: Redirecting to another url in cake

2008-01-21 Thread hydra12
I'm still unsure what you are wanting. Are all of these new pages going to be cake pages, or are they going to be static pages? If they are cake pages, then your two points are correct. Sometimes it is easier to make a new layout. On Jan 19, 1:37 am, Novice Programmer [EMAIL PROTECTED] wrote:

Re: Model with no data source / database - how to do this in CakePHP 1.2?

2008-01-21 Thread Matt
I get the same error for both $useTable = false, and $useTable = null Fatal Error (256): ConnectionManager::getDataSource - Non-existent data source default [CORE\cake\libs\model\connection_manager.php, line 113] On Jan 21, 5:18 pm, Chris Hartjes [EMAIL PROTECTED] wrote: On Jan 21, 2008 11:02

Getting ID of dropped sortable?

2008-01-21 Thread Han
I have multiple sortable unordered lists that are generated from entries in a database. I'm currently using $ajax-sortable to make all of these ajax sortable, but I'd like to have the lists update database entries when things are moved from one list to another. So I don't want to use serialize,

Re: How do people usually learn CakePHP and what is best?

2008-01-21 Thread powtac
Good question! The answers will show you that the manual and the tutorial for version 1.2 are not finished yet. My (current) way to learn cake is to set up and expand a very small projekt. Each question witch came up I post here (after searching if it wasnt already answerd). I think this is for

Re: How do people usually learn CakePHP and what is best?

2008-01-21 Thread dr. Hannibal Lecter
Trial and error! It's a bit difficult at the beginning, and everything is confusing, but once you get it, as RichardAtHome said, skyrocket! :-) As an example, I'm messing with Cake for a short while now, and I've decided to create a private mini cms for myself and learn Cake while doing that. My

Re: How do people usually learn CakePHP and what is best?

2008-01-21 Thread 703designs
I recommend that, first off, you have these prerequisites: * Solid PHP skills, including a basic understanding of using OOP (object-oriented programming) in PHP * MySQL skills * A basic understanding of what an MVC framework is With that foundation, I recommend that you begin with, in the

Re: Pass elements from one list to other one in HABTM

2008-01-21 Thread dandreta
On 21 ene, 18:05, dandreta [EMAIL PROTECTED] wrote: Any suggestion please? On 19 ene, 14:03, dandreta [EMAIL PROTECTED] wrote: Hi! I have an HABTM relation between ModelA and ModelB. In the add view of A, I have created two lists(two multiple selects), one with all B elements of

Re: Error editing a record without foreign key

2008-01-21 Thread dandreta
On 21 ene, 18:04, dandreta [EMAIL PROTECTED] wrote: ? --~--~-~--~~~---~--~~ 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,

weird behavior in CakePHP 1.2 (possible bug)

2008-01-21 Thread [EMAIL PROTECTED]
I'm seeing some weird behavior in CakePHP 1.2 that may be a possible bug, and wonder if anyone else can confirm it, or if it's just my server. I'm using the beta download from cakephp.org. Whenever I make a call to a variable in my view that is undefined I get this error: Fatal error: Allowed

Postal code validation for multiple countries

2008-01-21 Thread Greg Baker
I need to check my postal code field for Canada and US postal codes.. I tried using the following postal validation but it doesn't work.. 'postal_code' = array( 'zip' = array( 'rule' = array('postal', null,

Re: question about phpThumb

2008-01-21 Thread [EMAIL PROTECTED]
It is a PHP library for generating thumbnails, but I'm using this component: http://bakery.cakephp.org/articles/view/phpthumb-component to implement it. Thanks, Dave On Jan 21, 10:09 am, Chris Hartjes [EMAIL PROTECTED] wrote: On Jan 21, 2008 11:10 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Re: How do people usually learn CakePHP and what is best?

2008-01-21 Thread Baz
Read through the manual for a general understanding. For actual coding examples (the few that are there) go to the tempdocs. Baking helped me a lot! If you're not sure what baking is, it's the process by which you have cake create the files for the project based on only the database definition.

Re: Model with no data source / database - how to do this in CakePHP 1.2?

2008-01-21 Thread duRqoo
You still have to have database.php file in your /app/config. Content of the file is list of data sources u will use in your app. Default one must be there, otherwise it will throw you those fatal errors. So your database.php file should at least look like this (copied from database.php.default).

CakePhp Strange Session behavior

2008-01-21 Thread GardenWeazeL
Hello all, I'm fairlly new to cakephp and while it seems to be fairly fast it is indeed difficult to grasp. I have a question concerning sessions. I have a cakephp app the has external code and is not part of my cakephp app. When a visitor browses my web site a session is created by cakephp. I

Re: CakePhp Strange Session behavior

2008-01-21 Thread francky06l
Is there any create_session in your external code ? On Jan 21, 8:05 pm, GardenWeazeL [EMAIL PROTECTED] wrote: Hello all, I'm fairlly new to cakephp and while it seems to be fairly fast it is indeed difficult to grasp. I have a question concerning sessions. I have a cakephp app the has

Re: How to test that adatabase table exists ?

2008-01-21 Thread Gonzalo Servat
On Jan 18, 2008 6:39 PM, foxmask [EMAIL PROTECTED] wrote: Good evening, I would like to test if my database table exists or not If no, i will display a message to suggest to install the software If yes, i will Route::connect() to the main page of the software. I digged on the

Re: How do people usually learn CakePHP and what is best?

2008-01-21 Thread MonkeyGirl
I can't be alone in wondering what the most efficient way to get into CakePHP is. Good guides seem to be the main thing missing from CakePHP - there are plenty of tips about how to do one or two specific things at a time, but not much in the way of a beginner's guide that gives you a good

Re: Redirecting to another url in cake

2008-01-21 Thread Novice Programmer
Hello hydra, you got my point right. But here i have a little query regarding routes as well. Please bear with me as i am new to cake. lets say that i have a layout default.thtml. and i am having a link in the default page which points to some other page(which happens to be the cake page

Re: Redirecting to another url in cake

2008-01-21 Thread hydra12
A couple of things: first, I'd use the html link helper to make links. ?php echo $html-link('Test', '/controller/action'); ? Second, it should be /controller/action, not controller/action. Third, pagesController is a built-in part of cake, so you can't have a controller called pages. In

Bake Default Database

2008-01-21 Thread [EMAIL PROTECTED]
Hello All, Is it possible to direct Bake to more than one database? I was using one local mysql database, but now I'm working on something else. Can Bake use more than one at a time or do I need to change my config file? TIA, beren erchamion

Re: CakePhp Strange Session behavior

2008-01-21 Thread GardenWeazeL
Yes there is a session_start() in the external code. The code is a captcha code for form submission. I might also mention that this code is also on a hosted server and the code actually on a subdomain. The session_start() in the external code is created outside of the cakephp session. Obviously

Re: CakePhp Strange Session behavior

2008-01-21 Thread francky06l
remove/comment the session creation in the code outside of cake, that should fix your problem. hth On Jan 21, 11:07 pm, GardenWeazeL [EMAIL PROTECTED] wrote: Yes there is a session_start() in the external code. The code is a captcha code for form submission. I might also mention that this

Re: How do people usually learn CakePHP and what is best?

2008-01-21 Thread powtac
Thougt to set up a wiki. What do you think? --~--~-~--~~~---~--~~ 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

Open Source CakePHP Project

2008-01-21 Thread longint
Just wondering if any of you folks can recommend me a good open source cake project to use a guide? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Connecting Two HABTM Tables

2008-01-21 Thread david_setwise
Here is a potential situation in which it seems like two HABTM tables should be connected. So, am I incorrect in my table structure. If not, can Cake handle connecting two HABTM tables? The system in question deals with clothing. So imagine shirts of various types that can have multiple sizes

Re: CakePhp Strange Session behavior

2008-01-21 Thread GardenWeazeL
I've tried this also. SecureImage requires a session but for some strange reason the session is not seen. Here's the code: /** * Class constructor.br / * Because the class uses sessions, this will attempt to start a session if there is no previous one.br / * If you do not start a

How do I set focus to a form input field?

2008-01-21 Thread Carl
I used to do this with something like this: script type='text/javascript'document.post_form.title.focus();/ script but CakePHP forms use dot notation in the field names. I haven't found anything in the existing documentation.

Re: Fatal error: Cannot redeclare class connectionmanager when using cake acl

2008-01-21 Thread Mac65
I got around this problem by using the cake schema run create DbAcl command instead of cake acl initdb. I found this out by running the cake acl initdb command under Linux, and it ran without a problem, but reported Error: This command is deprecated. Please use, cake schema run create DbAcl. I

Re: CakePhp Strange Session behavior

2008-01-21 Thread GardenWeazeL
I've tried this also. SecureImage requires a session but for some strange reason the session is not seen. Here's the code: /** * Class constructor.br / * Because the class uses sessions, this will attempt to start a session if there is no previous one.br / * If you do not start a

Re: CakePhp Strange Session behavior

2008-01-21 Thread GardenWeazeL
I've tried this also. SecureImage requires a session but for some strange reason the session is not seen. Here's the code: /** * Class constructor.br / * Because the class uses sessions, this will attempt to start a session if there is no previous one.br / * If you do not start a

Create Excel using this from the bakery

2008-01-21 Thread Louie Miranda
I followed the guidelines on the bakery relating to this article: http://bakery.cakephp.org/articles/view/generate-excel-spreadsheets-from-your-database Downloaded the two files: http://webdesign.janenanneriet.nl/excel_writer.zip http://webdesign.janenanneriet.nl/ole.zip extracted to

Cake without a SQL database

2008-01-21 Thread sam
I am working on porting my current web site over to a MVC framework. Right now I am evaluating Cake PHP. I have gone through the blog tutorial and it all makes sense when the back end is a standard SQL database. At present my web site is driven via a XML file and by hard drive queries (images

Re: How do I set focus to a form input field?

2008-01-21 Thread dizz
Just add an ID to the form input: ?=$form-input('title', array('id' = 'title'))? Then in the JS you can do: document.getElementById('title').focus(); On Jan 22, 5:52 am, Carl [EMAIL PROTECTED] wrote: I used to do this with something like this:                         script

Re: Sessions, redirects and setFlash

2008-01-21 Thread Mr-Yellow
http://au2.php.net/session_write_close The discussion here seems to indicate a PHP problem of some kind on some systems. or Some missing stuff in cake to garbage collect for all situations? or Well my problem seems to point elsewhere.. __start in setFlash? I encounter the problem with 1.2 +

Re: Sessions, redirects and setFlash

2008-01-21 Thread Mr-Yellow
debug(compact('message', 'layout', 'params')); Array ( [message] = foobar [layout] = default [params] = Array ( ) ) That's the debug from the compact that goes into the write inside setFlash. -Ben --~--~-~--~~~---~--~~ You received

Re: CakePhp Strange Session behavior

2008-01-21 Thread R. Rajesh Jeba Anbiah
On Jan 22, 5:22 am, GardenWeazeL [EMAIL PROTECTED] wrote: snip I suspect it's because the cake session is named CAKEPHP and the default session is called PHPSESSID. Exactly I had the same problem lately. Set Configure::write('Session.cookie', 'PHPSESSID'); -- ?php echo 'Just another

Re: Sessions, redirects and setFlash

2008-01-21 Thread Mr-Yellow
Ok I've been through it from top to bottom on the writing side of things, sessions, flash code etc. Seems that there is something cleaning up the message value before it gets to the session helper $session-flash(); Before the view (debug($_SESSION) at the top and no message). the message is

Re: Sessions, redirects and setFlash

2008-01-21 Thread Mr-Yellow
Ok got it on my end.. Hopefully this can help some others. Problem is in the example code for DAuth user login controller. $this-DAuth-newSalt(); $this-Session-setFlash($error); This resets the message all the time with a blank var ($error is blank unless there has been one) Mod to

Re: cake 1.1.19: Ability to turn debug info off during ajax - Is it broken?

2008-01-21 Thread keymaster
Configure::write('debug', '0'); works. Curious, does anyone know what has changed in 1.1.19 to stop the $db = ConnectionManager::getDataSource('default'); $db-fullDebug = false; approach from working? --~--~-~--~~~---~--~~ You received this message because you

Re: Open Source CakePHP Project

2008-01-21 Thread rogwei
Guide for what? Coding standards or just a way to learn cake? If the latter, there is an active discussion here: http://groups.google.com/group/cake-php/t/825c76132e10e0cd. On Jan 21, 4:40 pm, longint [EMAIL PROTECTED] wrote: Just wondering if any of you folks can recommend me a good open