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
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
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
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
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
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
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
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
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.
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
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
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
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
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
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.
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
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
My code is this:
Index.thtml:
div id=div_id/div
?php echo $ajax-link('New','#',
array(
'update'='div_id',
'url'='/post/new/'
Its 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() :
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
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
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?
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
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
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
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
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...
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
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
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
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
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
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
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
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:
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
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
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
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
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
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
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
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
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
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';
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/
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
@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
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
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
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
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() ?
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
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))
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,
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
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
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
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',
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...
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
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
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
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
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
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
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,
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,
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
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');
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
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
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' =
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
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
75 matches
Mail list logo