Re: Ajax + cakephp + FF

2007-12-05 Thread John-Henrique Ferreira Silva
Um plugin do FireFox... Mas pela sua resposta provavelmente você não o tem Falopa! Em 05/12/07, Josenivaldo Benito Junior [EMAIL PROTECTED] escreveu: Desculpe a ignorância, mas o que é Firebug? On 12/5/07, Eber Freitas Dias [EMAIL PROTECTED] wrote: Tem Firebug ligado? Se sim, tenta

Re: Passar o valor de um campo por javasrcipt

2007-12-05 Thread Josenivaldo Benito Junior
Olá Igor, Use os helpers de Javascript e AJAX na sua view. Estou sem minha cola, mas na viu vc vai usar algo como: echo $ajax-observe(xxx) Por favor, consulte a API do ajax helper no site do cake, eu não consigo acessar aqui do trabalho. Essa função vai fazer com que, ao atualizar algum

Re: Duplicidade de servidores

2007-12-05 Thread Josenivaldo Benito Junior
HR, Não sei se entendi direito mas, no database.php do cake você, provavelmente está selecionando entre uma das configurações certo? Faça uma função ali (método construtor ou qualquer coisa que seja executada ali) que teste qual server está disponível. Abraço, Benito On 12/5/07, HR [EMAIL

Re: scaffold improuvement

2007-12-05 Thread Josenivaldo Benito Junior
Completando as dicas do Bill esse artigo mostra algumas automágicas do cake: http://cake.insertdesignhere.com/posts/view/15 Abraço, Benito On 11/24/07, Bill [EMAIL PROTECTED] wrote: Olá Benito, dá uma olhada neste link: http://www.donutczar.com/blog/?p=3 Aí você encontra os novos

Re: Ajax + cakephp + FF

2007-12-05 Thread DJ Spark
adicionando: o firebug é um plugin para o firefox... mas depois de instalado , muda sua vida. MESMO. (se você faz html, css, javascript, ou programação web). Michael, se voce está num select multiline, os valores têm que estar selecionados. talvez seja este o problema.. em um site onde eu tinha

Duplicidade de servidores

2007-12-05 Thread HR
Salve, Tenho um sistema que usa 2 configurações de banco de dados, uma local e outra em outro servidor usada somente para login e profile. Até aí tudo bem. Alguém sabe como podemos proceder para que se este servidor externo (usuarios.xxx.com) estiver fora do ar, o sistema use um outro servidor

Re: Ajax + cakephp + FF

2007-12-05 Thread Juan Basso
O value dos options estão certos? Não estão vazios ou não definidos? Estão em alguma parte especial da página, algo como iframe, layer ou coisa assim... Sei que na minha empresa, usamos o prototype (mesma lib do cake) e as vezes temos problema nisso. Juan Basso On 5 dez, 13:23, Michael Mafort

Re: Ajax + cakephp + FF

2007-12-05 Thread Josenivaldo Benito Junior
Desculpe a ignorância, mas o que é Firebug? On 12/5/07, Eber Freitas Dias [EMAIL PROTECTED] wrote: Tem Firebug ligado? Se sim, tenta desligar... Em 05/12/07, Michael Mafort [EMAIL PROTECTED] escreveu: Olá padeiros, bom dia. Estou tendo um pequeno grande problema na inclusão de dados

Ajax + cakephp + FF

2007-12-05 Thread Michael Mafort
Olá padeiros, bom dia. Estou tendo um pequeno grande problema na inclusão de dados de um formulário onde um combobox foi criado usando o Ajax nativo do cake. No IE funciona normalmente, mas no Firefox o ajax funciona mas na hora de gravar no banco ele nao envia o valor do combo selecionado.

Re: Ajax + cakephp + FF

2007-12-05 Thread Michael Mafort
Bom descobri o que era, o problema estava no form que o cara fez dentro de uma tabela, mas fora de qualquer coluna e linha, ou seja ele quebrou a hierarquia do html e ai no firefox tava dando pau, coloquei ele no lugar certo e funcionou. Obrigado padeiros, atá mais. Em 05/12/07, Juan Basso

Re: Ajax + cakephp + FF

2007-12-05 Thread John-Henrique Ferreira Silva
Ué como assim o Firefox tava dando pau? Se o HTML estava errado o firefox funcionou corretamente, afinal qualquer coisa escrita dentro de e que não sejam TAGs não são interpretados... Falopa! Em 05/12/07, Michael Mafort [EMAIL PROTECTED] escreveu: Bom descobri o que era, o problema estava

Re: Ajax + cakephp + FF

2007-12-05 Thread Michael Mafort
Desculpe se expressei mal, não quis dizer que o firefox deu pau, mas que ocorreu o problema apenas nele, pois no IE estava funcionando. Sei que o FF está correto e que o IE que entende as coisas erradas, mas foi o que aconteceu. Abraços. Em 05/12/07, John-Henrique Ferreira Silva [EMAIL

Re: Inline javascript in a view not executed

2007-12-05 Thread [EMAIL PROTECTED]
Yes I'm using prototype. I'm using Ajax helper. I'm using $ajax-link and from Html code I can see that evalScript is already set to true. On 4 Dic, 19:11, Christophe Cholot [EMAIL PROTECTED] wrote: On Dec 4, 5:22 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi I have a question I have

Re: Stop Users From Going Back After Logout

2007-12-05 Thread AD7six
Use the (sweet) sauce luke https://trac.cakephp.org/browser/branches/1.2.x.x/cake/libs/controller/controller.php?rev=6000#L720 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this

Re: Saving Date and Time NOT in the Model/Database (cleanUpFields not working)

2007-12-05 Thread Adam Royle
Is it a big deal to not have them in the database? Maybe if I understood the context a bit better then I might be able to suggest something more appropriate. In my forms when I have datetime fields, I separate them off into two fields - date as d/m/y and time as any string strtotime() handles.

Re: Best practices for organizing tables?

2007-12-05 Thread BravoFoxtrot
Thanks for the offer. I'd prefer to just have a few examples of best practices though. We will be making heavy use of plugins and we just wanted an example of way to organize the tables. --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Do you hardcode your menu links?

2007-12-05 Thread Arne-Kolja Bachstein
Hi, many thanks for your answers so far. I think I'll implement a mix of elements and a generic model for this, to configure the links from within the backend. I think that's a nicer way than putting it into a config file or something. I had this in mind earlier, but have been in doubt if it

Re: Inline javascript in a view not executed

2007-12-05 Thread [EMAIL PROTECTED]
My code is this: Index.thtml: div id=div_id/div ?php echo $ajax-link('New','#', array( 'update'='div_id', 'url'='/post/new/'

RE: unbindModel and this-paginate

2007-12-05 Thread Mariano Iglesias
It’s in spanish, but look at the paginate() and paginateCount() implementation, they should be on your model so you can override Controller::paginate() auto-calls to find(‘count’) and find(‘all’) so it instead calls your implementation, where you can do your bindModel() / unbindModel() :

Re: .ctp versus .thtml?

2007-12-05 Thread gentleJuggernaut
also check out this discussion: http://groups.google.com/group/cake-php/web/frequent-discussions at the top is a few links for differences between 1.1 and 1.2 NSM On Dec 5, 12:49 pm, gentleJuggernaut [EMAIL PROTECTED] wrote: sounds like you are using cakephp 1.2 which uses ctp extensions

.ctp versus .thtml?

2007-12-05 Thread [EMAIL PROTECTED]
I'm going over the tutorial now for Cake on my first install and testing ever with the framework and I am having some strange issues. Whenever I upload a copy of the view (named with a .thtml extension as per the article) but I keep getting an error that my file is missing but it lists it with a

using files outside of app direcotry

2007-12-05 Thread Stinkbug
Our app will allow people to upload files. What I would like is to store these files outside of the app directory, so that when we do new deployments we don't have to be careful to overide files in the webroot directory. Is there a recommended way to do this?

Re: Best way to handle ssl webservices when passing XML

2007-12-05 Thread gentleJuggernaut
thanks. I have used cURL, I will check out that other method. On Dec 5, 11:27 am, Chris Hartjes [EMAIL PROTECTED] wrote: On Dec 5, 2007 11:25 AM, francky06l [EMAIL PROTECTED] wrote: Maybe using Curl. There is Curl model on the bakery, I have used it to make http / https requests. No

Re: dual purpose Facebook / web app

2007-12-05 Thread digifish
It's always great to solve one's own problems... For my parseExtensions() problem I just added this to AppController::beforeFilter(); if(!empty($this-params['url']['ext']) ($this-params['url']['ext'] == 'fb')) { $this-RequestHandler-setContent('fb', 'text/html'); } Still, other thoughts on

Re: Best way to handle ssl webservices when passing XML

2007-12-05 Thread francky06l
Maybe using Curl. There is Curl model on the bakery, I have used it to make http / https requests. On Dec 5, 4:52 pm, gentleJuggernaut [EMAIL PROTECTED] wrote: What is the best way using cakephp 1.2 to POST an XML string to a webservice? I must be able to send the request to an ssl server

CSS in CAKEPHP

2007-12-05 Thread
Estou com algumas dificuldades no CSS do meu projeto , em alguns momentos funciona corretamentamente porem em alguns casos funciona em termos: a.principal{ font-family: arial; font-size: 11px; text-transform: capitalize; color: #FF; left: 15px; text-decoration: none; display: block

Re: .ctp versus .thtml?

2007-12-05 Thread [EMAIL PROTECTED]
Ah much appreciated! I was just combing through the tempdocs for 1.2 as I had just run across the deprecated in htmlhelper errors, thanks! :) On Dec 5, 12:49 pm, gentleJuggernaut [EMAIL PROTECTED] wrote: Check this out: http://ahsanity.wordpress.com/2007/08/31/making-the-blog-tutorial-run...

Starting up with CakePHP?

2007-12-05 Thread dr. Lecter
Hi everyone, I've recently found out about CakePHP and fell in love immediately! I went through a tutorial (IBM) and not I just can't wait to start creating great apps on my own (privately and on the job). BUT, since I'm new, I'd like to create a learning project, a CMS of a kind, that I could

unbindModel and this-paginate

2007-12-05 Thread Baz
Quick question. I've looked, but found nothing concrete stating either yes or no. Is there a simple way to get unbindModel and bindModel to work with $this-paginate? I'm trying to do something relatively simple: I have a hasMany relationship, but I need to dynamically switch the condition. I was

Ownership problem when creating view in tutorial

2007-12-05 Thread mvidberg
Had a strange problem come up while going through the CakePHP blog tutorial. I added the view and controller files using a different user account than what I had installed the base CakePHP system with. It came up with errors about not being able to find the view file posts.ctp even though it was

reading from Configure class in a helper

2007-12-05 Thread Walker Hamilton
Could anyone give me a tutorial or point me towards some information that would help me figure out how to read from Configure in a helper? I tried just calling Configure::read('MyProperty.subproperty'); And then I tried the uses('configure') uses('Configure'), neither of which made the

Re: Starting up with CakePHP?

2007-12-05 Thread gentleJuggernaut
have you seen cakeforge? There are several cms projects going on right now. They might be of help. Here is a link to the ocean-cms project: http://cakeforge.org/projects/ocean-cms/ NSM On Dec 5, 12:29 pm, dr. Lecter [EMAIL PROTECTED] wrote: Hi everyone, I've recently found out about

dual purpose Facebook / web app

2007-12-05 Thread digifish
Hi All, I'm still getting my bearings with Cake and need advice on the best strategy for building a web app that will be accessed both as a standard website and as a Facebook application. Much of the Model and Controller logic will be the same in both instances. My primary issue relates to

Re: Ownership problem when creating view in tutorial

2007-12-05 Thread AD7six
On Dec 5, 8:29 pm, mvidberg [EMAIL PROTECTED] wrote: Had a strange problem come up while going through the CakePHP blog tutorial. I added the view and controller files using a different user account than what I had installed the base CakePHP system with. It came up with errors about not

Re: CSS in CAKEPHP

2007-12-05 Thread AD7six
On Dec 5, 7:48 pm, RÔ [EMAIL PROTECTED] wrote: Estou com algumas dificuldades no CSS do meu projeto , em alguns momentos funciona corretamentamente porem em alguns casos funciona em termos: a.principal{ font-family: arial; font-size: 11px; text-transform: capitalize; color:

Re: Best Practices/Method - Search to Return Results (With Paginate)

2007-12-05 Thread Marcin Domanski aka kabturek
http://wiki.kabturek.info/paginating_search_results HTH On Dec 5, 3:57 pm, Baz [EMAIL PROTECTED] wrote: Got a quick question. I'm trying to implement a custom search on a model that returns based on the user's criteria. Basically I have a bunch of if statements and build up a query before

Re: Best Practices/Method - Search to Return Results (With Paginate)

2007-12-05 Thread Dave Miller
http://tempdocs.cakephp.org/#TOC53292 Check out postConditions(). You can replace the findAll() with paginate(). So a search with the right input names can be as easy as: function search() { $this-set('data', $this-MyModel-paginate($this-postConditions($this-data))); } Dave Baz

passing session from http to https

2007-12-05 Thread gentleJuggernaut
I have a cakephp 1.2 app that moves to https during credit card transactions. When it does all session data is gone. I have researched this issue with php and have found different answers as to session behavior when changing to an SSL url. Session work is new for me. I have read the cake

Re: How to INNER Join in Model ?

2007-12-05 Thread Baz L
I ran into a need for this today. In the interest of time, I just trim the array I get back after the fact, however...is there someway to do this? -- Baz L Web Development 2.0 http://WebDevelopment2.com/ On Dec 1, 1:30 pm, foxmask [EMAIL PROTECTED] wrote: gooed evening any idea aboutinner

find a man at www.SexDatingPoint.com

2007-12-05 Thread Mr.Drum
find a man at www.SexDatingPoint.com find a man looking for a woman at www.SexDatingPoint.com meet adult male at www.SexDatingPoint.com men seeking women at www.SexDatingPoint.com women seeking men www.SexDatingPoint.com woman seeking man www.SexDatingPoint.com woman looking for man

Re: session problems with cake 1.18 and CAKE_SECURITY=high?

2007-12-05 Thread robechar
I've had the same problem, and I think the problem was in the fix for ticket #3133. Session IDs are regenerated with every page request, however it isn't carrying over the data with that new session id. Therefore all session information is being lost with each page request. I've added a ticket

Re: Best way to handle ssl webservices when passing XML

2007-12-05 Thread Chris Hartjes
On Dec 5, 2007 11:25 AM, francky06l [EMAIL PROTECTED] wrote: Maybe using Curl. There is Curl model on the bakery, I have used it to make http / https requests. No need for cURL, actually. Check out this link: http://netevil.org/blog/2006/nov/http-post-from-php-without-curl -- Chris

Re: Do you hardcode your menu links?

2007-12-05 Thread powtac
Could anybody publish his menuHelper? It would be very fine for beginners (like me). --~--~-~--~~~---~--~~ 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

Re: .ctp versus .thtml?

2007-12-05 Thread gentleJuggernaut
sounds like you are using cakephp 1.2 which uses ctp extensions rather than thtml ext. Check this out: http://ahsanity.wordpress.com/2007/08/31/making-the-blog-tutorial-run-on-cakephp-12/ On Dec 5, 12:38 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm going over the tutorial now for

Re: Xml layout name

2007-12-05 Thread jarmstrong
I believe that is so you can have the same layout name with different actual layouts. For instance layout='newsfeed' or 'productlist', you might want a Html, Rss, and XML output. Andreas-70 wrote: I used this one and it works. $this-layoutPath = 'xml'; $this-layout = 'default';

Re: Do you hardcode your menu links?

2007-12-05 Thread Jon Bennett
Could anybody publish his menuHelper? It would be very fine for beginners (like me). I have published one previously to cakeforge. I've just updated it to handle 2 tier structures: http://cakeforge.org/snippet/download.php?type=snippetid=361 hth jon -- jon bennett w: http://www.jben.net/

User Model disappears after clicking too fast

2007-12-05 Thread chewie124
I have a model that's used in a component that I'm developing. It's working fine, generally, however I'm noticing some weird behavior that I can't figure out. My component (yet another authentication component) is using the Cookie component to save the authentication tokens on the browser. The

Re: Do you hardcode your menu links?

2007-12-05 Thread Adam Royle
@Arne Try and it and test the speed. I ended up caching my rendered menu in an element based on the page. @powetac I do intend to release my helper, except the code that selects the current page is not 100% accurate (and is a bit slow, because it analyses route data as well). But I can still

Re: Do you hardcode your menu links?

2007-12-05 Thread powtac
Thanx a lot! This is how I used it successfully with cakePHP 1.2: 1. Downloaded http://cakeforge.org/snippet/download.php?type=snippetid=361 into /app/views/helpers/menu.php 2. Added var $helpers = array('Menu'); to class AppController in /app/app_controller.php 3. Added ?php $navi

Ajax - help in serialize of data from mootools sortable OL list for CakePHP to use

2007-12-05 Thread luke BAKING barker
Hi I am building a little menu manager for a backend of a site. I am using this Nestable Sortable drag and drop script , using mootools framework. demo and script: http://youmuppet.com/?page_id=9 description: http://forum.mootools.net/viewtopic.php?id=1106 It essentially allows the reordering

new page Groups in other languages

2007-12-05 Thread powtac
I published a new page in this group: http://groups.google.de/group/cake-php/web/groups-in-other-languages. Any other language suggestions? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to

Re: textarea formating

2007-12-05 Thread RichardAtHome
Alternatively, you could wrap the output in pre/pre tags. On Dec 4, 9:30 am, manu [EMAIL PROTECTED] wrote: thanks Michael, I could have searched that for ages. and nl2br() is just fine too Best regards Manu On 4 déc, 10:24, grigri [EMAIL PROTECTED] wrote: What's wrong with nl2br() ?

Re: CLOB in cakephp 1.2

2007-12-05 Thread sanderken
I read throught the oracle php cookbook and probably searched on the wrong searchterms ;) Thanks for the response. I encountered such an example of binding here: http://www.oracle.com/technology/pub/articles/oracle_php_cookbook/fuecks_lobs.html eg: ?php // etc. $sql = INSERT INTO

Re: i18n: static language references with __(My lang key, true) in models and controllers

2007-12-05 Thread francky06l
You can't use it in validation rules (I suppose for the message) ... I have actually done it for the validation, but for this made my own invalidate method in app_model.php as follow : function invalidate($field, $value = null) { if (!is_array($this-validationErrors))

Re: Function to ignore an element of an array

2007-12-05 Thread butangphp
Thanks man I appreciate the help. I probably will use a regular expression on that 'split' step, something like $email_list = split(/, \s*/, $data['Mail']['receiver_username']) to eliminate any spaces following the commas. On Dec 4, 11:40 pm, Adam Royle [EMAIL PROTECTED] wrote: One more thing,

Re: Saving Date and Time NOT in the Model/Database (cleanUpFields not working)

2007-12-05 Thread Baz
Sorry AD, you've totally lost me. -- Baz L Web Development 2.0: Web Design, CakePHP, Javascript http://www.WebDevelopment2.com/ On Dec 5, 2007 5:09 AM, AD7six [EMAIL PROTECTED] wrote: On Dec 5, 8:57 am, Baz [EMAIL PROTECTED] wrote: OK, I've banged my head against the wall a million

Best Practices/Method - Search to Return Results (With Paginate)

2007-12-05 Thread Baz
Got a quick question. I'm trying to implement a custom search on a model that returns based on the user's criteria. Basically I have a bunch of if statements and build up a query before I do a paginate(). My question is, how do I keep this current? Should I use the function with different

Re: Saving Date and Time NOT in the Model/Database (cleanUpFields not working)

2007-12-05 Thread Adam Royle
With AD's technique (which looks kinda cool), you would still need to write a custom method to handle the data conversion from your date input to an sql datetime. All depends on your form I guess. Since I'm in Australia, I want to convert my form fields from dd/mm/ (aus format) to

Re: Saving Date and Time NOT in the Model/Database (cleanUpFields not working)

2007-12-05 Thread AD7six
On Dec 5, 8:57 am, Baz [EMAIL PROTECTED] wrote: OK, I've banged my head against the wall a million times. This is my problem: I got date and time fields which I need. They are not associated with the model or database. I call them like so: echo $form-input('from',

Re: CLOB in cakephp 1.2

2007-12-05 Thread AD7six
On Dec 5, 10:19 am, sanderken [EMAIL PROTECTED] wrote: I read throught the oracle php cookbook and probably searched on the wrong searchterms ;) Thanks for the response. I encountered such an example of binding here:http://www.oracle.com/technology/pub/articles/oracle_php_cookbook/fue...

Re: Stop Users From Going Back After Logout

2007-12-05 Thread Adam Royle
Probably sending out no-cache headers would do the trick. Example taken from php manual... Could put this in your bootstrap.php or in appcontroller header(Cache-Control: no-cache, must-revalidate); // HTTP/1.1 header(Expires: Mon, 26 Jul 1997 05:00:00 GMT); // Date in the past Cheers, Adam On

Re: CLOB in cakephp 1.2

2007-12-05 Thread AD7six
On Dec 5, 1:28 am, sanderken [EMAIL PROTECTED] wrote: Hello everybody. After a long quest on the internet and through the cakephp API, I can't find a solution to my problem . Here goes: Cakephp is working great with my oracle database. Now I want to store messages 4000 chars

Re: Best way to handle ssl webservices when passing XML

2007-12-05 Thread francky06l
http://netevil.org/blog/2006/nov/http-post-from-php-without-curl Excellent, thanks Chris I will give a try ..! On Dec 5, 5:27 pm, Chris Hartjes [EMAIL PROTECTED] wrote: On Dec 5, 2007 11:25 AM, francky06l [EMAIL PROTECTED] wrote: Maybe using Curl. There is Curl model on the bakery, I

Re: Saving Date and Time NOT in the Model/Database (cleanUpFields not working)

2007-12-05 Thread Baz
Ouch, ok. My *actual* problem is specific to time however: [1]:[02] [AM] becomings - [1]:[2] in $this-data. Therefore, becoming 1:2am in my string and causing me strtotime to fail. OK, I'll just use my own fields. I just thought there was a simpler method. Just figured if it's there, I should be

Best way to handle ssl webservices when passing XML

2007-12-05 Thread gentleJuggernaut
What is the best way using cakephp 1.2 to POST an XML string to a webservice? I must be able to send the request to an ssl server (https:). I have tried HttpSocket(); but it does not appear to work with https. Thx NSM --~--~-~--~~~---~--~~ You received this

Re: Saving Date and Time NOT in the Model/Database (cleanUpFields not working)

2007-12-05 Thread Baz
My thinking is if there's already a function there, maybe there's someway I can use it without doing my own. I'm tried concatinating the fields, but that didn't work so well (stuff like 1:02 am, for some reason becomes 1:2 am and then strtotime doesn't work). -- Baz L Web Development 2.0: Web

Re: Stop Users From Going Back After Logout

2007-12-05 Thread Joyce
Oh yeah, you reminded me. It could be just that. Would that be possible to do a no cache upon redirect or somehow before it, probably just for that page or so? I was able to do something like that for hardcoding no javascript involved, where once users logout, even if they used browser back,

Filtering views to show selected data

2007-12-05 Thread Gould, Adrian
When retrieving the information for a User, we get associated models, such as loans. The view is the Users (for a particulat ID), with hasMany Loans, and Equipment hasMany Loans. How can I filter the loans model to give me only those which have been marked as L for on loan. User (id, name,

Re: Filtering views to show selected data

2007-12-05 Thread Adam Royle
Use bindModel() to define the conditions. Something like this... $this-User-bindModel(array('hasMany' = array('Loan' = array('conditions' = array('on_loan' = 'L'); $users = $this-User-findAll(); Adam On Dec 6, 1:17 pm, Gould, Adrian [EMAIL PROTECTED] wrote: When retrieving the information

Re: Saving Date and Time NOT in the Model/Database (cleanUpFields not working)

2007-12-05 Thread Baz
Hey, thanX for all the help people. I took the lazy way out though. I copied a huge chunk outta cleanUpFields. Actually, it's more like I removed the loops. So now I got this: function cleanUpField($field, $type, $modelClass = null) And I call it like: $this-cleanUpFiend('to', 'date');

RE: Filtering views to show selected data

2007-12-05 Thread Gould, Adrian
Thanks Adam will give it a go (well, will forward the answer to the person who needed to know). Adrian -Original Message- From: cake-php@googlegroups.com on behalf of Adam Royle Sent: Thu 12/6/2007 12:46 To: Cake PHP Subject: Re: Filtering views to show selected data Use

Re: using files outside of app direcotry

2007-12-05 Thread Adam Royle
In my sites I keep the user-uploaded content inside webroot/files/ Then each type of file has its own subfolder (ie. images, videos, documents, etc) I just make sure I don't touch anything in that folder when I upload new files. If you are doing some kind of automated upload, then you could

Re: Ajax - help in serialize of data from mootools sortable OL list for CakePHP to use

2007-12-05 Thread Adam Royle
here is my code for the view using the ajax helper (note the ids are important, these are actually the ids that exist in the database) ul id=items li id=item_1Item 1/li li id=item_2Item 2/li li id=item_3Item 3/li /ul ?php echo $ajax-sortable('items', array('constraint' =

Re: Ajax - help in serialize of data from mootools sortable OL list for CakePHP to use

2007-12-05 Thread Adam Royle
I forgot to mention you need to include the prototype+scriptaculous javascript libraries - this is what the ajax helper uses. Adam On Dec 6, 2:57 pm, Adam Royle [EMAIL PROTECTED] wrote: here is my code for the view using the ajax helper (note the ids are important, these are actually the ids

Re: Xml layout name

2007-12-05 Thread sum1kul
Try this as well: option 1: - turn on Router::parseExtensions(); in routes.php - use xml extension for url, then the defaut.ctp in xml folder will be used by cake. - more info http://groups.google.com/group/cake-php/msg/3baf7b8e7256aae1 option 2: the default.ctp only outputs xml declaration