Não parece ser tão complicado, isso penso eu hehehe , por favor
pessoal um dos controllers do meu sistema ficara fora do padrão q eu
tinha definido para todo tipo de cadastro!!!
valeu pessoal aguardo respostas
--~--~-~--~~~---~--~~
Você recebeu esta mensagem
Sobre upload com ajax, esquece...rs... via xmlhttprequest não é
possível... o pessoal geralmente faz um iframe escondido e manda
postar nele...
inté
On 18 fev, 08:03, Rafael Bueno [EMAIL PROTECTED] wrote:
Não parece ser tão complicado, isso penso eu hehehe , por favor
pessoal um dos
Dêem uma olhada nesse link:
http://www.phpletter.com/Demo/AjaxFileUpload-Demo/
Ja utilizei o mesmo e funciona beleza.
Abraços!
2008/2/18 Tulio Faria [EMAIL PROTECTED]:
Sobre upload com ajax, esquece...rs... via xmlhttprequest não é
possível... o pessoal geralmente faz um iframe escondido e
aee Bill pode passar o link que não to conseguindo achar lá
Em 11/02/08, Bill[EMAIL PROTECTED] escreveu:
Resolvi aqui galera, com um tuto do bakery e um help do Tulio, resolvi.
Estarei publicando minha solução em forma de artigo no site
www.cakephp.com.br
Abraços
Olá galera,
Não pretendo liberar o fonte não cara...
Aguardo suas impressões =D
[]'s
2008/2/18 Bill [EMAIL PROTECTED]:
legal Eber, vou testar.
Vai ser disponibilizado o fonte dele?
Abraços
Fala galera, acabei de lançar um aplicativo on-line e gostaria que
vocês desse um olhada lá!
No meu
Bacana cara, ficou bem lecal
[]s
2008/2/18 Eber Freitas Dias [EMAIL PROTECTED]:
Não pretendo liberar o fonte não cara...
Aguardo suas impressões =D
[]'s
2008/2/18 Bill [EMAIL PROTECTED]:
legal Eber, vou testar.
Vai ser disponibilizado o fonte dele?
Abraços
Olá Rafael,
Dei uma googleada ultra rápida (não refinei muito), mas acho que o que você
quer fazer está representado aqui:
Eu sei que na versão 1.1 fica:
$this - Cliente - invalidate('cpf');
--~--~-~--~~~---~--~~
Você recebeu esta mensagem porque está inscrito no Grupo Cake PHP Português
em Grupos do Google.
Para postar neste grupo, envie um e-mail para cake-php-pt@googlegroups.com
É, eu tb usava assim.. mas no 1.2 não funciona :(
Em 19/02/08, etapombas [EMAIL PROTECTED] escreveu:
Eu sei que na versão 1.1 fica:
$this - Cliente - invalidate('cpf');
--~--~-~--~~~---~--~~
Você recebeu esta mensagem porque está inscrito no Grupo Cake PHP
Hi,
I've just come across the same problem baking a simple 'Posts' and
'Comments' application. It seems the problem lies in bake.php when
creating the view files, for instance when creating the comments views
it does not insert the Post Model in the variable e.g. $comment['Post']
['title'], it
This IS a cake issue. The scaffolding code should not pass an empty
string to the ID field. It should be fixed so that the id is not used
in the generated SQL statement.
On Feb 16, 8:42 am, skantner [EMAIL PROTECTED] wrote:
I want to say thanks also, Ben. This was really annoying me. I
Hey there,
I've read a lot about the complex find methods in the cake
documentation but there is one thing i do not get to work properly:
image i would like to have a resulting sql like
select a.* from startpage a left join contents b on a.content_id=b.id
where (b.online_from = '-00-00'
I have a situation that I'm not sure how to build the cake model
relationships for.
I have two tables, Companies and Contacts. A Company can have many
contacts but it also has one primary contact. I figured I would set
up hasMany and belongsTo entries for the Company and Contact models.
But
Can any1 help me with this? i understand Post $hasone category and
$hasone locality. but can i set category to $belongsto Post and
locality as $belongsto Post ??
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
hello,
i understand Post hasone category and hasone locality. but can i set
category to $belongsto Post and locality as $belongsto Post ??
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to
my Environment is windowXp,php5.25,LightTPD-1.4.18-1-
Win32,sqlite3.5.6;
i made The Cake Blog Tutorial example,but i get a error like this
Warning (2): sqlite_popen() [function.sqlite-popen]: file is
encrypted or is not a database [CORE\cake\libs\model\datasources\dbo
\dbo_sqlite.php, line
It was the PagesController that I needed to override -- there's not
much documentation that references it. Issue resolved, cheers.
On Feb 17, 2:59 pm, Sam Sherlock [EMAIL PROTECTED] wrote:
I think you want to have a look at the app_controller
On 17/02/2008, UberK [EMAIL PROTECTED] wrote:
Can any1 help me with this? i understand Post $hasone category and
$hasone locality. but can i set category to $belongsto Post and
locality as $belongsto Post ??
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
On Feb 18, 10:52 am, orbdex [EMAIL PROTECTED] wrote:
Hey there,
I've read a lot about the complex find methods in the cake
documentation but there is one thing i do not get to work properly:
image i would like to have a resulting sql like
select a.* from startpage a left join contents b
On Feb 18, 5:26 am, dasn [EMAIL PROTECTED] wrote:
I have a situation that I'm not sure how to build the cake model
relationships for.
I have two tables, Companies and Contacts. A Company can have many
contacts but it also has one primary contact. I figured I would set
up hasMany and
Yup, i upgraded to 1.2 beta and the problem seems to be fixed.
thanx dardo.
On Feb 18, 12:19 am, Dardo Sordi Bogado [EMAIL PROTECTED]
wrote:
I've tried scaffolding on both, regeneration_types and
ticket_activities. Both works well. I'm using cake 1.2 from svn.
On Feb 17, 2008 9:46 AM,
Heh..anyone?
On Feb 15, 11:33 am, dr. Hannibal Lecter [EMAIL PROTECTED]
wrote:
Hi all,
I've posted an article about Markdown and dp.SyntaxHighligher to the
bakery; it's been a while and the article is still not published. I
was just wondering is this a standard issue or do I need to correct
I really don't know what else to do. I have checked my data against
the pages in frequent discussions and searched and read-through a lot
of posts. None actually helped me in this situation.
I am trying to save HABTM (in 1.2.6311). Problem is I don't get any
errors, I dont see any insets or
Nope, its all good :)
It reads as field = condition value
On Feb 17, 3:39 pm, jim starboard [EMAIL PROTECTED] wrote:
http://manual.cakephp.org/chapter/models
array(Post.title = This is a post)
the third quote is in the wrong place no?
--~--~-~--~~~---~--~~
HI Andrew,
Yes you can do that!
But you must have Post model, Category model and Locality model.
Then you put:
var $hasOne = array ('Category'= array(), 'Locality'=array());
in your Post model.
After that you write: var $belongsTo = 'Post'; in your two other
models.
Hope this helps...
You are probably victim of this bug :
http://groups.google.com/group/cake-php/browse_thread/thread/2ad48c4e10f58fc0/c7c4511051071b52
There are many threads here about problems with HABTM due to this bug.
I cannot understand why the cake home page still propose to download a
beta version
For me almost nothing works in the Bakery! I get a blank page when
saving the article. But also when searching. Is it my Firefox?!! As I
heard everywhere, you should post something in the trac...
--~--~-~--~~~---~--~~
You received this message because you are
On Feb 17, 2008 2:42 PM, francky06l [EMAIL PROTECTED] wrote:
When are you loosing session, I mean which way .. CakeApp = phpApp or
reverse ?
phpApp = CakePHP
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
Hi all,
I'm trying to create multiple flash messages ie an error message and a
success message, I have it to show the error message and the standard
flash, but the standard has a div around it and my own error one just
dumps the passed error... I'm using the stable release not the beta...
Can
This IS what you should do:
1. Fill a ticket
2. submit a patch [1]
Regards,
--
Pablo Viojo
[EMAIL PROTECTED]
http://pviojo.net
[1] https://trac.cakephp.org/
On Sun, Feb 17, 2008 at 5:19 PM, jim starboard [EMAIL PROTECTED]
wrote:
This IS a cake issue. The scaffolding code should not pass
On Feb 18, 2008 8:46 AM, rafael bonifaz [EMAIL PROTECTED] wrote:
On Feb 17, 2008 2:42 PM, francky06l [EMAIL PROTECTED] wrote:
When are you loosing session, I mean which way .. CakeApp = phpApp or
reverse ?
phpApp = CakePHP
Well, if your CakePHP app and your regular PHP app are not
Check these threads:
http://groups.google.com/group/cake-php/browse_thread/thread/42d2ef87f6032e65/
http://groups.google.com/group/cake-php/browse_thread/thread/623eb28958b59a8f/
On Feb 18, 2:30 pm, designvoid [EMAIL PROTECTED] wrote:
Hi all,
I'm trying to create multiple flash messages ie
@the_woodsman, yes, the form helper does have knowledge of the schema of the
database. If you have SQL debugging on, you will notice that pages with
form-helpers on them will perform a DESCRIBE table_name, so that it is
able to match the $form-input() with the correct type of input for the
Thanks but I don't think that was it. I altered my model.php but my
problem remains.
I do not even get any SQL queries that save anything. Not even buggy
data.
I am starting to think that it somewhere decides that the model hasn't
changed and doesn't bother saving. (I am running $this-read() )
Why is it good to write:
?php echo $form-end(); ?
instead of:
/form
How do helpers support MVC?
I can't expect my designer to understand:
?php echo $form-create(null, array('url' = '/recipes/add')); ?
When I have to refer to the manual everytime I have to write it (or
debug it). I also
Look at app/config/routes.php
/**
* Here, we are connecting '/' (base path) to controller called
'Pages',
* its action called 'display', and we pass a param to select the view
file
* to use (in this case, /app/views/pages/home.thtml)...
*/
Router::connect('/', array('controller' = 'pages',
I have had the same problem with two comments on articles.
L.
On 18 Feb, 13:03, dr. Hannibal Lecter [EMAIL PROTECTED] wrote:
Heh..anyone?
On Feb 15, 11:33 am, dr. Hannibal Lecter [EMAIL PROTECTED]
wrote:
Hi all,
I've posted an article about Markdown and dp.SyntaxHighligher to the
Why is it good to write:
?php echo $form-end(); ?
instead of:
/form
Because the 2nd one just writes a closing form tag, whereas the 1st
performs cleanup logic (including generating security fields), and
potentially lots of other magic. It can also generate a div-surrounded
submit button
On Feb 18, 2008 11:07 AM, leo [EMAIL PROTECTED] wrote:
I can't expect my designer to understand:
?php echo $form-create(null, array('url' = '/recipes/add')); ?
You must have really difficult-to-work-with designers who can't be
taught a little bit of PHP.
When I have to refer to the manual
?php
$modelName = 'YourModelNameHere';
if ($Model = ClassRegistry::getObject($modelName)) {
debug($Model-schema());
}
else {
echo Model code$modelName/code not loaded;
}
?
On Feb 18, 3:43 pm, Siebren Bakker [EMAIL PROTECTED] wrote:
@the_woodsman, yes, the form helper does have knowledge of
Don't you just love these types of responses?
Reading documentation goes a ways in helping your issue with point 1:
Here's the api documentation for $form-end()
I don't get the second question? Helpers are there to help. They bridge a
few gaps between controllers and views. Hey, if you're
Whoops...reply is a bit out of order...but you catch my drift.
On Feb 18, 2008 10:31 AM, Baz [EMAIL PROTECTED] wrote:
Don't you just love these types of responses?
Reading documentation goes a ways in helping your issue with point 1:
Here's the api documentation for $form-end()
I don't get
Works fine, a BIG THANKYOU!
--~--~-~--~~~---~--~~
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
Try looking at the code and figuring out what all it actually does
before jumping to ignorant conclusions.
Also, helpers support the V part of MVC, since it stands for View,
so asking how helpers support MVC is like asking how oxygen tanks
support breathing: they just do. Do you need to ask?
Hello Samuel,
I was looking more of a theory that what is the thoratical difference
between the two. In my knowledge and the example that i gave it looks to me
that i can use them interchangeably.
Thanks.
On Feb 18, 2008 10:25 PM, Samuel DeVore [EMAIL PROTECTED] wrote:
you might just refresh
Posting that here is about as useful as a screen door on a submarine.
You're better off creating a trac ticket: https://trac.cakephp.org/
On Feb 17, 10:34 am, jim starboard [EMAIL PROTECTED] wrote:
http://manual.cakephp.org/chapter/models
durint instead of during
Hzllo
I hope i understand your question...
The setFlash method takes a second argument which is a layout for the
Flash message.
So you just have to create a .ctp (eg. warning_message.ctp) file in
app/view/layout/ with your html code you want and
e($content_for_layout) and then you call it using
As far as I can understand it, comments can be moderated, so that
might be the root of your problem. I don't see the cause of article
publishing delay though, very strange.. :-/
On Feb 18, 4:57 pm, leo [EMAIL PROTECTED] wrote:
I have had the same problem with two comments on articles.
L.
you might just refresh your memory by reading
http://manual.cakephp.org/appendix/blog_tutorial
On Feb 18, 2008 9:52 AM, Novice Programmer [EMAIL PROTECTED] wrote:
Hello All,
Its quite been a long since i started using cake but this question is still
pestering. What is the difference between
I guess your question just didn't make any sense to me. 'Layout'
controls the 'presentation' and 'pages' (those things loaded by the
pages controller via view file) or any controller/view are content in
that presentation
On Feb 18, 2008 10:15 AM, Novice Programmer [EMAIL PROTECTED] wrote:
Hello All,
Its quite been a long since i started using cake but this question is still
pestering. What is the difference between a page and a layout in cake? Lets
say that on home page i have a link to the upload page. What woudl the
design look like? I have default.thtml in the layouts folder
In a nutshell:
You can think of a layout as being the container for your pages
(views)
ie. Your actions in your controllers create views which are displayed
within your layout
So, to take your example:
Homepage (layout: default.ctp, controller: pages, action: home)
(pages controller is a
Now look what you did, gone and got yourself stung :)
Personally, I'm not an advocate of the go look at the code thing, thus my
preference towards more descriptive doc blocks...
However, with specific reference to $form-end(), it doesn't get much
clearerIt does the end tag, submit tags, some
On Feb 18, 2008 12:17 PM, dr. Hannibal Lecter [EMAIL PROTECTED] wrote:
As far as I can understand it, comments can be moderated, so that
might be the root of your problem. I don't see the cause of article
publishing delay though, very strange.. :-/
Every submission to the bakery needs to be
Great explanation Richard,
I got it... All the static thingies that i were putting in my views can
probably go in the pages folder.
Thanks Richard.
On Feb 18, 2008 10:51 PM, RichardAtHome [EMAIL PROTECTED] wrote:
In a nutshell:
You can think of a layout as being the container for your
Thanks Chris,
I am aware of the fact that articles need to be approved for
publishing, but I've seen 3 other articles go up since my submission
(AFAIR, before the CakeFest). I'm not being cynical here or anything,
just wondering how long the period is actually. 2 weeks? 3 weeks? 4
years? :-)
Usually it's Mariano, he's approved most of my articles. Though, I
think gwoo approved one of them.
On Feb 18, 10:21 am, Chris Hartjes [EMAIL PROTECTED] wrote:
On Feb 18, 2008 12:17 PM, dr. Hannibal Lecter [EMAIL PROTECTED] wrote:
As far as I can understand it, comments can be moderated,
is it possible that there was an email sent to you from the maintainer
about some suggested changes/ edits that might of gotten eaten by a
spam filter? This happened to me once
Sam D
On Feb 18, 2008 10:52 AM, dr. Hannibal Lecter [EMAIL PROTECTED] wrote:
Thanks Chris,
I am aware of the fact
Hannibal: it's been published. It was modified on Feb 14, so 4 days ain't
the end of the world.
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your
Another approach is to do some shuffling of the addresses with
javascript: check here:
http://my.gr-navigator.com/eeg/2008/02/18/a-piece-of-cake-javascript-email-cloaking-for-cakephp/
On Feb 6, 8:29 pm, b logica [EMAIL PROTECTED] wrote:
On Feb 6, 2008 5:25 AM, cronet [EMAIL PROTECTED] wrote:
Baz, I'm with you :)
Leo, welcome to cake and all the icing that goes with it ;) Hopefully,
your retarded designer doesn't read this. If he/she does, then they
better have thick skin.
On Feb 18, 12:19 pm, Baz [EMAIL PROTECTED] wrote:
Now look what you did, gone and got yourself stung :)
Adding my new site:
www.choclopedia.org
--~--~-~--~~~---~--~~
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
Is there any helper/component in Cake which can help me get a UID based on
some algo(such as date time etc)?
--
Thanks Regards,
Novice (http://ishuonweb.wordpress.com/).
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Hello.
I'm using 1.2 beta.
In my installation there seems to be no difference between debug level
2 and 3! I can't see any controller dump. Does anyone has a hint for
me?
Thanks in advance,
Tomka.
--~--~-~--~~~---~--~~
You received this message because you are
Php has uniqid
Cake. API look in string class
===
Http://blog.samdevore.com
On Feb 18, 2008, at 2:16 PM, Novice Programmer [EMAIL PROTECTED]
wrote:
Is there any helper/component in Cake which can help me get a UID
based on some algo(such as date time etc)?
--
Thanks Regards,
uniqid is painfully slow when trying to generate uuid for several items at a
time. I tried looking at phpclasses as well but the algorithm there also
seemed to be slow so came here to see if Cake can do this as this is quite a
common problem.
Thanks.
On Feb 19, 2008 2:57 AM, Sam DeVore [EMAIL
u did you look at the string class in cake api like I told you?
who's the slow one? you or uniqid (that is a joke ha ha)
On Feb 18, 2008 2:37 PM, Novice Programmer [EMAIL PROTECTED] wrote:
uniqid is painfully slow when trying to generate uuid for several items at a
time. I tried
Hi all,
I have been trying to get CakePHP V1.2.x.x (1.2.0.6311 beta to be
specific) to run under IIS.
Setup:
IIS 5.1 on WinXP - PHP V4.3.4
When using Cake straight out of the box with only a DB connection
configured, it complains that the cache is not working. tmp directory
is writable.
Any
ha ha ha.. yeah me a bit slow... i was just trying to figure out the logic
inside of cake api String::uuid().
Thanks.
On Feb 19, 2008 3:19 AM, Samuel DeVore [EMAIL PROTECTED] wrote:
u did you look at the string class in cake api like I told you?
who's the slow one? you or uniqid
Not positive, but you probably need to specify a complete path to the
test.db file.
Wayne
On 2/18/08, shotchen [EMAIL PROTECTED] wrote:
my Environment is windowXp,php5.25,LightTPD-1.4.18-1-
Win32,sqlite3.5.6;
i made The Cake Blog Tutorial example,but i get a error like this
Warning
Nate just made my day :-)
On Feb 18, 2008 5:53 PM, nate [EMAIL PROTECTED] wrote:
Try looking at the code and figuring out what all it actually does
before jumping to ignorant conclusions.
Also, helpers support the V part of MVC, since it stands for View,
so asking how helpers support MVC
On Feb 18, 2008 1:10 PM, zeroStar [EMAIL PROTECTED] wrote:
Another approach is to do some shuffling of the addresses with
javascript: check here:
http://my.gr-navigator.com/eeg/2008/02/18/a-piece-of-cake-javascript-email-cloaking-for-cakephp/
It looks like the client gets an empty span,
HI,
I copied the index view and the index in controllers. I have a master and a
detail and I deleted some fields in the master. It displayed ok an this error
occurred when I clicked the list of the details.
=
Fatal error: Allowed
thanks:
i change the database to sqlite 2.85. it work well. so i think the
cakephp can't support sqlite3 yet.
by the way , the file of test.db is in the my public web folder
( webroot).
On Feb 19, 6:24 am, Wayne Fay [EMAIL PROTECTED] wrote:
Not positive, but you probably need to specify a
Hi all,
I have an issue with rendering getting itself into an infinite loop.
I've stepped through the code I can see what's going on, but I don't
want to mess with the core given I don't have a good overview of how
it all fits together. I can consistently reproduce this problem by
doing one
I was reading an article today, about a way to freely mirror your site, so
that you can receive links from major sites such as digg/slashdot/etc, and
was wondering if anyone knew how to incorporate this into the default cake
.htaccess files? The code from the article is as follows:
# Heavy Site
Is there a generic way to load a custom or external class into Cakephp
and be able to create an object from it and manipulate it with it's
method.
How would that integration be down, and where will the object be
available to me as a coder, in the Model/ The view or the Controller,
I appreciate
Look in the manual for vendors and bootstrap.PNP
===
Http://blog.samdevore.com
On Feb 18, 2008, at 8:53 PM, Salam Fall [EMAIL PROTECTED] wrote:
Is there a generic way to load a custom or external class into Cakephp
and be able to create an object from it and manipulate it with it's
78 matches
Mail list logo