Porque você não faz a mão então? direto no código... acho que seria a
solução mais prática né?
Abs,
Thiago
2008/2/16 Henrique de Castro [EMAIL PROTECTED]:
Salve galera..
Estou com uma situação um tanto quanto peculiar, estou modelando um banco
de dados e preciso seguir alguns padrões de
Salve galera..
Estou com uma situação um tanto quanto peculiar, estou modelando um banco de
dados e preciso seguir alguns padrões de nomeclatura adotados pela empresa,
e nesses padrões os campos created e modified precisariam de nomes
diferentes. Então queria saber se é possível alterar no Cake o
Opa. É verdade, temos que migrar do manual.cakephp.com.br e passar
para o oficial: http://book.cakephp.org/pt
Notem o /pt. Ele significa que é a versão portuguesa. Eu já passei o
primeiro capítulo pra lá. Estarei enviando o restante durante a
semana.
Abraço a todos.
Juan Basso
On 15 fev,
Se eu não me engano, você deve mexer no class ConnectionManager. Eu
nunca testei, mas é uma dica para começar a procura. ;)
Juan Basso
On 15 fev, 09:38, pamp_php [EMAIL PROTECTED] wrote:
Gostaria de fazer apenas em tempo de execução, sem a necessidade de
deixá-lo gravado fisicamente.
I found a ticket open abot this problem here:
https://trac.cakephp.org/ticket/3680.
It seems I'll have to wait for this enhancement, or write an extra
queries.
On Feb 15, 2:04 pm, senser [EMAIL PROTECTED] wrote:
Hi,
I'm using CakePHP to develop a multi-language CMS and have troubles
with
If I understand correctly, you have an aro for admin and user and each
user has a parent aro (admin or user), am I right ?
Then you would set permissions at the group level.
Did you check your aro table ? Are the aro and their parent correct ?
You can have a look here :
Still some issues... Good Grief!
Well looking at the Form helper code, I have found that I had to hard
code the form definition in the view. No worries, it now calls /
echere/login like it is supposed to.
Now, after entering the username and password and clicking the login
button I gegtg the
Rod D. wrote:
Still some issues... Good Grief!
Well looking at the Form helper code, I have found that I had to hard
code the form definition in the view. No worries, it now calls /
echere/login like it is supposed to.
Now, after entering the username and password and clicking the login
My aros look like this:
Admin (Group)
--User1
Customer (group)
--User2
The only permmisions granted are to the Admin group. User1 can access
everything as it should. User2 can't access any actions except the
pages controller which I have allowed so that is fine but it can
also access all of
And how can I do this?
Any another suggestion or help?
On 15 feb, 21:26, Wayne Fay [EMAIL PROTECTED] wrote:
First off, make a little test.php plain PHP file that verifies that
you can send email using PHP's built-in email
functionality:http://us2.php.net/mail
Then make a little test in a
Hi,
you can try put this lines in your Apache configuration, (ex.:
/etc/apache/sites-enable/default):
RewriteEngine on
RewriteCond %{HTTP_HOST} ^mysite.com
RewriteRule ^(.*)$ http://www.mysite.com/$1 [R=permanent,L]
It's more fast than a function/method ;)
[]'s
Thiago
Looks good... but would I be able to put that in my .htaccess files?I
don't have full access to the server with the hosting solution I am
on. :)
On Feb 16, 10:02 am, Thiago Paes [EMAIL PROTECTED] wrote:
Hi,
you can try put this lines in your Apache configuration, (ex.:
Probably yes...
On Feb 16, 2008 1:08 PM, Manu0310 [EMAIL PROTECTED] wrote:
Looks good... but would I be able to put that in my .htaccess files?I
don't have full access to the server with the hosting solution I am
on. :)
On Feb 16, 10:02 am, Thiago Paes [EMAIL PROTECTED] wrote:
Hi,
Hi,
I want to be able to redirect users who hit my site from mysite.com to
www.mysite.com. I know this can be achieved with a 301 redirect
specified in the .htaccess file.
I have tried a few techniques and nothing seems to work with cakePHP.
Has anyone solved this problem or had a similar
Hi, I'm quite new to CakePhp.
I have this question: I have a simple Post model and I want to
delete Post by a list of checkboxes.
This is the code in class PostsController:
function delete($id = null){
if(!empty($this-data)){
We have a problem that we have to share a session between cakephp and
a pure php application. Php is configure to use the session of php so
that the session can be share between php and the external
application.
Some how we loose the session and it is something unpredicatble. Do
you know where I
probably because you wrapped it in an echo or a short tag, it auto echos
don't
?php echo $this-Session-setFlash('foo'); ?
don't
?= $this-Session-setFlash('foo'); =?
do
?php $this-Session-setFlash('foo'); ?
it returns 'true' or 1
Sam D
On Feb 16, 2008 5:31 AM, herc [EMAIL PROTECTED] wrote:
Hey guys I finally solved this.
Thanks Thiago for your help, you pointed me in the right direction, so
here is the code to place in your .htaccess file:
RewriteCond %{HTTP_HOST} ^dealque.com$
RewriteRule ^(.*)$ http://www.dealque.com/$1 [R=301,L]
Basically the same code you gave me just added a
wow you echoed again ;)
On Feb 16, 2008 7:20 AM, herc [EMAIL PROTECTED] wrote:
Any idea why my $this-Session-setFlash('foo'); outputs Foo 1 in my
view? :)
CODE:
div id=flashMessage class=messagefoo/div1
--
--
(the old fart) the advice is free, the lack of crankiness will cost you
I think the only way selects are autogenerated by forms is from
foreign keys, and checkboxes are generated for 'booleans'.
It would be nice if radios and checkboxes were autogenerated from
enums and sets, but these aren't supported out the box.
Have no fear though - you can pass different
Hello -
Using 1.2 beta release 6311 with Auth component. I've set the session
timeout to 60 seconds for testing (core.php high setting). I'm able
to login and get redirected correctly to loginRedirect(). If I sit
on a protected page and let the session time out, I get redirected
back to the
Hey does any1 have a tutorial on how to create a simple forgot
password form.
One email form field that submits the user email, if in system, emails
the user with a reset hashed link.
Something like that would be great
Thanks
--~--~-~--~~~---~--~~
You received
I have a project that uses the cake email component. It works fine
when I upload the project to a shared server, but when I try to run
locally (under xampp's apache, mysql, mercury) I get an error message
saying:
553 We do not relay non-local mail, sorry.
I have phpnuke programs that use the
Hi,
I have created files using baking with a master and a detail table.. It
displays all fields in the tables for master and detail.. I like that but I
want to use the same process for display the master and detail for a user with
only a few fields showing.
What is the best approach to
I would say that doing some searching would be in order, as I haven't
done model based testing on cake 1.1 in a long time.
maybe these (from a google test for cakephp unit test model)
http://cakebaker.42dh.com/2007/12/04/testing-with-partial-mock-objects/
also I think there are some tests in the
start here, http://us.php.net/manual/en/
On Feb 16, 2008 11:36 AM, dandreta [EMAIL PROTECTED] wrote:
And how can I do this?
Any another suggestion or help?
On 15 feb, 21:26, Wayne Fay [EMAIL PROTECTED] wrote:
First off, make a little test.php plain PHP file that verifies that
you can
On Feb 16, 2008 1:21 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Cake 1.2.0.6311-beta
The 'day' param in the following route is always passed as the same
value as :month, regardless of the :day value in the URL.
Router::connect('/events/:year/:month/:day',
array('controller' =
Ok, I've got the test suite running, but I can't figure out how to
include my models. I can do simple, non-model based tests ($this-
assertTrue(1==1)) and they will pass, but I can't figure out how to
do any model-based tests. For example, I would like to be able to do
something like the
Hello.
I want to provide two buttons for each column in a table. The first
should sort the table asc by this colum, the second should sort desc.
Therefor I use the option direction.
But this option is not checked in the method paginator-sort. It
always sorts asc if the table was not sorted by
Scaffolds views also can be customized.
On Feb 16, 2008 1:18 PM, the_woodsman [EMAIL PROTECTED] wrote:
I think the only way selects are autogenerated by forms is from
foreign keys, and checkboxes are generated for 'booleans'.
It would be nice if radios and checkboxes were autogenerated from
On Feb 16, 2008 8:36 AM, dandreta [EMAIL PROTECTED] wrote:
And how can I do this?
Any another suggestion or help?
On 15 feb, 21:26, Wayne Fay [EMAIL PROTECTED] wrote:
First off, make a little test.php plain PHP file that verifies that
you can send email using PHP's built-in email
my guess is that you may need to use authenticated smtp methods
see http://book.cakephp.org/view/176/email and the $smtpOptions
On Feb 16, 2008 10:55 AM, Carl [EMAIL PROTECTED] wrote:
I have a project that uses the cake email component. It works fine
when I upload the project to a shared
you could also try using the smtpOptions in the email component
http://book.cakephp.org/view/176/email
Sam D
On Feb 16, 2008 11:20 AM, Dardo Sordi Bogado [EMAIL PROTECTED] wrote:
start here, http://us.php.net/manual/en/
On Feb 16, 2008 11:36 AM, dandreta [EMAIL PROTECTED] wrote:
And
Nice catch.
Could be a bug, could someone with more experience check please? This is
what I've found:
I've debugged and haven't been able to find much, sorry. But this is what
happens to me:
- I login normally
- Sit and expire the session
- Try to access somewhere and get redirected to
I have something that I'm using. I'm assuming that you are using the Auth
component?
On Feb 16, 2008 11:31 AM, Manu0310 [EMAIL PROTECTED] wrote:
Hey does any1 have a tutorial on how to create a simple forgot
password form.
One email form field that submits the user email, if in system,
1.2 Beta Auth Component, Allowing root to be public
Cake: 1.2.0.6311 beta, Mysql: 5.0
Ok, I have come so far, and I think this is my last hurdle. I can not
find the answer anywhere else, so here I am again.
Since I have put the code in my app controller, my main page now
requires login. How do
On Feb 16, 2008 3:30 PM, Rod D. [EMAIL PROTECTED] wrote:
1.2 Beta Auth Component, Allowing root to be public
Cake: 1.2.0.6311 beta, Mysql: 5.0
Ok, I have come so far, and I think this is my last hurdle. I can not
find the answer anywhere else, so here I am again.
Since I have put the code
I'm guessing your using the pages controller? Else I don't see what the
problem would be.
So, $this-Auth-allow('display');
should give you what you're looking for.
On Feb 16, 2008 2:30 PM, Rod D. [EMAIL PROTECTED] wrote:
1.2 Beta Auth Component, Allowing root to be public
Cake: 1.2.0.6311
Chris, unfortunately I need you to elaborate. One of the reasons I
have the code in the app controller, is of course so I won't need it
in the other controllers, but I have it there so I can allow the root
to show the user's name if they navigate back to the root after the
entered the private
Baz, let me give it a try.
Baz wrote:
I'm guessing your using the pages controller? Else I don't see what the
problem would be.
So, $this-Auth-allow('display');
should give you what you're looking for.
On Feb 16, 2008 2:30 PM, Rod D. [EMAIL PROTECTED] wrote:
1.2 Beta Auth Component,
On Feb 16, 2008 3:48 PM, Rod D. [EMAIL PROTECTED] wrote:
That did it. I had been trying '/' and other derivatives instead of
'display'.
Thanks again, and again, and again. Both you and Chris hit me with
responses instantly for my 3 different topics.
I did not immediately realize you were
I need to instantiate a folder object. How do I make the class visible?
--~--~-~--~~~---~--~~
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
uses ('folder');
$folder = new Folder();
- s
On 16/02/2008, Carl [EMAIL PROTECTED] wrote:
I need to instantiate a folder object. How do I make the class visible?
--~--~-~--~~~---~--~~
You received this message because you are
Hi,
On Feb 10, 5:23 pm, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Hi,
I'm new to cakePHP, and I'm trying to run thebakescript as the
instructions in the manual and scereencast, but I keep getting the
followingerror
[EMAIL PROTECTED] ~]$ export PATH=$PATH:/var/www/cake/cake/console
How do I send and process ajax request using jquery's .getJson() on
cakephp. I need to setup dynamic dropdown box? Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send
I have 3 models: hosts, offers, problems.
Hosts holds info about companies(e.g. GoDaddy)
Problems holds info about the problems (e.g. I need super host with
100TB/month)
Offers holds info about exact host offer for exact problem (e.g. It
would cost you 69USD), there may be many offers for single
In Part 2 of the IBM CakePHP series I'm having problems working with
Access Control Lists.
I've created the ACL tables and I'm stuck at defining defining groups
In my app directory the tutorial states within the terminal define
your groups with the following code.
php acl.php create aro 0 null
Hi,
I want to change the format of the pages in my project that I created using
Cakephp. Do I have lalyouts and templates?
I am probably missing something as I did in scaffolding?
Thanks for any help!
JIm
--~--~-~--~~~---~--~~
You received this message because you
Please, at least _glance_ at the manual before asking here.
http://book.cakephp.org/ for 1.2 beta
http://manual.cakephp.org for 1.1
On Feb 16, 2008 11:44 PM, sixs [EMAIL PROTECTED] wrote:
Hi,
I want to change the format of the pages in my project that I created
using Cakephp. Do I have
Here are the things that I did to get my jquery, json, and ajax
working
1. I included this line in app/config/routes.php
Router::parseExtensions('rss', 'json', 'xml'); //notice
json over there
2. Then, I created a folder named json in my views/post..so my views
folder structure
I understand how to set the ordering for the bound models, but how can
I set restrictions and also give an order for the main model?
for instance, I want to select all members whose last names begin with
a particular letter, binding ther profiles, restricted to email
phone. But I'd like the
51 matches
Mail list logo