Bom dia Dérico,
Então, eu digitei o comando de cabeça, não foi copy and paste mas, te
garante que no código está correto. Foi uma das primeiras coisas que
chequei.
De qualquer forma, ao clicar no link ruim o Cake reclama e diz que não
existe um controller chamado pages, ou seja, por pior que
Só por curiosidade :
Não está faltando um ; (ponto e vírgula) na última instrução em display:
block ; ?
a.principal{
font-family: arial;
font-size: 11px;
text-transform: capitalize;
color: #FF;
left: 15px;
text-decoration: none;
display: block ;
}
E pelas dicas acima, limpe o
Blz grupo??
Estou com o seguinte problema no componente othAuth:
Após logar , caso o usuário tente acessar alguma funcionalidade a qual
ele não tenha permissão, ao invés dele ser redirecionado para a página
de noacces ele esta indo para a página de login.
Alguém pode me dar uma ajuda??
valeu
por favor, mande mais alguns dados, como seu codigo, as versoes que vc
estah usando, etc
On Dec 10, 2007 1:55 PM, igor_rj [EMAIL PROTECTED] wrote:
Blz grupo??
Estou com o seguinte problema no componente othAuth:
Após logar , caso o usuário tente acessar alguma funcionalidade a qual
ele não
Pessoal,
Minha empresa desenvolve diversos softwares e eu estava querendo
migrar para utilizar o modelo Cake. Porém, fica uma dúvida: Todas as
aplicações compartilham coisas em comum, por exemplo os CSS, algumas
formas de apresentar tabelas (elements), alguns objetos para abrir
janelas (layers)
Humn, você está usando rotas especiais?
Pois na verdade há um controller pages, que vem embutido no CakePHP,
só que vc vai encontrar ele no diretório /cake e não no /app.
Bom, eu dei uma olhada no api.cakephp.org... Acho que o problema está
no fato que ele espera uma das três condições:
1o. Um
Olá, o meu ficou assim:
#switch between configs
function __construct() {
#wildcard the subdomains
$host_r = explode('.', $_SERVER['SERVER_NAME']);
// unnecessary line
//if(count($host_r)2) while(count($host_r)2)array_shift($host_r);
$mainhost =
I doubt you will be able to see that URL via the browser as the trailing
@5875 is special to SVN when accessing particular versions via command line
etc I think
Try https://svn.cakephp.org/repo/trunk/cake/1.2.x.x/
This will almost certainly show you the bleeding edge code (~6139?)
In view:
?php
echo $html-input('User/username', array('id'='username',
'size'='50'));
echo $html-tagErrorMsg('User/username', 'User name must unique
and
contain at least 5 and no more than 8 chars');
?
div id=err
?php
echo
No worries, you can of course give your submits a cake like name
data[Model][submit] or some such, and it'll come through in your data array.
From there logic could be shifted to your model or some such even. Options
are endless.
-Original Message-
From: cake-php@googlegroups.com
Hi!!
First of all, thanks for the work!
I'm trying to use the JSON component with the Dojo Toolkit but I'm
having a problem: the generated json code includes the model level,
and I only need the data. I mean, I'm getting this:
{timestamp:1193692111, items:[
{Post:{id:1,title:The
Try putting your $this-set(...) inside AppController::beforeFilter()
or AppController::beforeRender()
On Dec 10, 6:18 am, Louie Miranda [EMAIL PROTECTED] wrote:
Simply replace
?php echo $date; ?
To (on view -- default.ctp) 1.2.x
?php echo date('r'); ?
Solved!
On Dec 10, 2007 2:03
if (!empty($a)); //I also tried isset, isset !empty
Is the semi column here a typo ? If not this explains the origin of
your problem
On Dec 10, 10:29 am, Steveston [EMAIL PROTECTED] wrote:
In view:
?php
echo $html-input('User/username', array('id'='username',
On 6 dic, 19:19, dandreta [EMAIL PROTECTED] wrote:
I have an HABTM relation between ModelA and ModelB.
In the add view of A, I have created two lists, one with all B
elements of the database and other one empty . I pass elements of the
first list to the second one with javascript and the
This is something that I've also wondered about in the past so if
anyone has better ideas please let me know. The way I do it is just
use a string condition (or combination of array and string
conditions).
$continent = $this-mymodel-findAll(mymodel.start_time = NOW()
AND mymodel.end_time
Try this (works in 1.2):
First, put all of your data into a variable, for instance if your
model is called items:
$items = $this-Item-findAll();
$timestamp = 1193692111; // put your timestamp here
$itemArray = Set::extract($items, '{n}.Item');
$this-set('items','{timestamp:'.
For Cake 1.2 take a look at Containable behaviour
http://www.thinkingphp.org/2007/06/14/containable-20-beta/ or Bindable
behaviour (I prefer it! :-) : http://cake-syrup.sourceforge.net/
For cake 1.1 search this group for keyword 'expects' :-)
On Dec 10, 4:24 pm, Baz [EMAIL PROTECTED] wrote:
I
or, if You need to place in all views something more sophisticated,
You can add
$this-set(...) to beforeFilter in app_controller
On Dec 10, 7:03 am, Louie Miranda [EMAIL PROTECTED] wrote:
I have added this on one of my controller for function index()
$this-set('date', date(r));
And added
On Dec 9, 4:45 pm, dandreta [EMAIL PROTECTED] wrote:
Thanks for your response.
But I dont understand how I can do this.
Can you explain me, please?
Regards
I'm assuming you're using javascript for item switching, so setting
select.options[index].selected to true would do the trick.
There is
Hello, before a write in this group I read all literature about
sessions problem in 1.1.18.5850 version. Well, I change in config.php
the CAKE_SECURITY to medium, but my data session lost, this happen in
'database', 'cake' and 'php' mode for session.
checkout my cakephp version in CVS but it does
I know the right approach for something like this is the HABTM, but I
really need to just store the selected options in a single database
field.
Well, it is true that that you should have a proper many-to-many DB
implementation, but if you REALLY want to hack it like that...
All you need to
Elements are the way to go, just create the loginbox element and
optionbox element and switch them depending on user presence.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group,
Hi. I am new to CakePHP and would be thankful for help:
I'm creating a social networking website. Suppose I want to create a
profile page, which displays a user's data. The view would be app/
views/users/profile.php and there would be a controller app/
controllers/users_controller.php with a
On Dec 10, 2007 10:34 AM, boris [EMAIL PROTECTED] wrote:
Is this possible in CakePHP or am I constrained to associate every
view with a database table, model, and controller?
Well, you can certainly create models that don't use databases, and
controllers that don't need a model, but given
I came across the bindable stuffHere's my issue though:
With these bindables, you need and SVN version of CakePHP.
- I'm still not sure how to download ONE SPECIFIC version of this (All I can
get is the latest nightly).
- Last time I tried the nightly, it screwed up some stuff for me due to
Hi,
I'm using $form-input() to create a date field in a form.
Cake create fine 3 selects (one for Days, one for Month and one for
Year) and with cleanUpFields method it save my date very well. But I
would translate the names of month in French.
It's work fine if I use setlocale directly in the
Hi there,
I have problem with i18n.
I have model user which is belongsTo group.
I have model group where fields are localized:
var $actsAs = array('Translate' = array('name','description'));
When I load data from user, I have any fields from group but not
localized fields .
CakePhp reads only
Also make sure you have something in your view to display the message:
?php
if($session-check('Message.flash')):
$session-flash();
endif;
?
Or the like.
-Casey
On Dec 9, 10:44 pm, Louie Miranda [EMAIL PROTECTED] wrote:
Got this working..
Just add..
A view without a controller.. is just a php page. you could achieve
the same effect by other means but it would be pointless.
On 10/12/2007, Chris Hartjes [EMAIL PROTECTED] wrote:
On Dec 10, 2007 10:34 AM, boris [EMAIL PROTECTED] wrote:
Is this possible in CakePHP or am I constrained to
I had some issues getting the othAuth component to work with Cake pre-
beta as well. I think had the same problem you did. You can read my
blog post about it:
http://www.ancientwisdom.cc/news/archives/111
Hope that helps.
Casey
On Dec 8, 11:09 am, bingo [EMAIL PROTECTED] wrote:
hi,
I did
check red frogs blog on this too and other posts in the group..othAuth
1.2 pre-beta
On Dec 10, 4:19 pm, daphonz [EMAIL PROTECTED] wrote:
I had some issues getting the othAuth component to work with Cake pre-
beta as well. I think had the same problem you did. You can read my
blog post about
where does it say that?
--~--~-~--~~~---~--~~
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]
solvent, problem in cake installation, cake directory out of
virtualhost.
I change my index.php in webroot directory.
Thanks.
On 10 dic, 16:31, powtac [EMAIL PROTECTED] wrote:
What does it mean exactly but my data session lost?
Example code?
I don't think it does, but joel moss was pondering the fact that the
cake core code seems to be replacing some of those aliased functions
internally with the direct call. I just thought that it was for small
performance boosts given the amount of times those things are probably
called
hi daphonz, luke,
I did check Red Frogs blog and made the suggested changes, but still
the problem exist. :(
I will again check othAuth component to make sure I didn't miss any
changes suggested in Red Frogs blog
Regards,
bingo
On Dec 10, 11:40 am, luke BAKING barker [EMAIL PROTECTED] wrote:
default page (see routes.php) is /app/views/home.ctp
you can cusomize this page like you want, and import data from DB in
it with elements/requestAction:
http://bakery.cakephp.org/articles/view/creating-reusable-elements-with-requestaction
On 10 déc, 17:17, Mike Green [EMAIL PROTECTED] wrote:
A
Hi,
Thanks for your reply, actually this is what I'm doing
in my view I'm calling it as
echo $form-input('jobposition_id',array('options'=
$jobpositions,'multiple'='true','size'='5'));
But when I submt I get an SQL error and in the post data only the word
Array is passed like below (part of
I posted a ticket (#3680) for this issue. It looks we have to wait for
this 'enhancement'
--~--~-~--~~~---~--~~
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
Oh, man, you're my savior!!!
It works great without touching anything!! Thanks a lot!!
hydra12 escribi:
Try this (works in 1.2):
First, put all of your data into a variable, for instance if your
model is called items:
$items = $this-Item-findAll();
$timestamp = 1193692111; // put your
That's it!
Thanks :)
On Dec 10, 2:50 am, francky06l [EMAIL PROTECTED] wrote:
if (!empty($a)); //I also tried isset, isset !empty
Is the semi column here a typo ? If not this explains the origin of
your problem
On Dec 10, 10:29 am, Steveston [EMAIL PROTECTED] wrote:
In
Some one help me. I have problem with my blog application. I can't
paginate my post category in cakephp 1.1. I use Andy Dawson pagination
commponent.
post
id
category_id
title
content
category
id
title
Thank's.
--~--~-~--~~~---~--~~
You
In my application, whenever users input, I need to check if some
fields are duplicate frequently (for example, user name, email, course
title, etc). I am using AJAX to do this.
The problem is, I find I am repeating a method again and again in
various controllers.
Basically, in my view, I have
:-)
I'm glad it worked!
On Dec 10, 11:35 am, Marcos Hernández [EMAIL PROTECTED]
wrote:
Oh, man, you're my savior!!! It works great without touching anything!!
Thanks a lot!!
hydra12 escribió:Try this (works in 1.2): First, put all of your data into a
variable, for instance if your model
In my appController I plan to check if a secure controller/action is
being referred to, and if so, redirect to https (assuming we are not
already https).
Similiarly, if a nonsecure controller/action is being referred to
(excluding webroot), I plan to redirect to http (assuming we are not
already
On Dec 10, 4:34 pm, boris [EMAIL PROTECTED] wrote:
Hi. I am new to CakePHP and would be thankful for help:
I'm creating a social networking website. Suppose I want to create a
profile page, which displays a user's data. The view would be app/
views/users/profile.php and there would be a
Hey guys...this is what I'm trying to accomplish:
I got a model (Request). Each request hasMany Dates.
I'm doing a simple find on the Request, but I ONLY want to return those
requests that have a certain date range.
I'm been able to using the excellent Bindable behavior to set the condition
on
Say I need to make some functionality globally available to all my
controllers.
What's the functional difference between (1) putting the method on the
app_controller, or (2) creating a component and importing it where
needed?
I can think of two differences, but are there are things I'm not
You can also load an object, in app_controller so the first is really
the only reason.. its available always, so you dont have to load it :)
On Dec 10, 10:49 pm, Deane [EMAIL PROTECTED] wrote:
Say I need to make some functionality globally available to all my
controllers.
What's the
I have a properties controller and an images controller.
Properties hasMany Images.
Images belongsTo Properties.
I need to get the id property id so the properties list dropdown
selects the correct property.
So if the user, clicks the url 'images/add/6' the properties dropdown
will select the
I recenlty (12/07/07) downloaded a nightly build of CakePHP 1.2 and noticed
that some things have changed in the way this works:
$form-input('date',array('type'=' date')); (for model Post when date is
NOT in the database schema)
No longer do we have $this-data containing:
['Post']['date_year']
I just wanted to take a breath and say MAJOR THANKS to all who have
answered questions, posted great answers, and generally helped to make
CakePHP such a great technology. We have finally deployed our site
after months of development, alphas, and betas. We are extremely
pleased with the
So I have:
(This is semi pseudo code as I am renaming things for convince so if
there are syntax errors ignore them)
class User extends AppModel {
var $name = 'User';
var $hasAndBelongsToMany = array('Cart' =
array('className'= 'Item',
I forgot to add, before I do the findBy I do $this-Users-recursive =
5;
so it isn't limiting it because of that
On Dec 10, 7:36 pm, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
So I have:
(This is semi pseudo code as I am renaming things for convince so if
there are syntax errors ignore them)
Problem:
The table AUTHORS has the fields (id, given_name, last_name, created, modified)
but no title field.
I wish to fill a select box with the id and FULL NAME that is created by
merging last_name and first_name. in SQL you'd do soemthing like:
SELECT id, CONCAT( last_name, ', ',
Right now, all behavior callbacks are executed only on 'primary'
models, so there are only 2 possible solutions:
#1
extra query - don't fetch associated group data by User-find() but
call Group-find() with condition on known group ID (from previous
User-find() query)
#2
bind association Group
On Dec 10, 2007 9:52 AM, Samuel DeVore [EMAIL PROTECTED] wrote:
I don't think it does, but joel moss was pondering the fact that the
cake core code seems to be replacing some of those aliased functions
internally with the direct call. I just thought that it was for small
performance boosts
I considered option 2 as I believe this is a fairly straight forward
model and it should be handled quite easily by cake. I have completed
the baking as per your recipe and here is what I have come up
with.
When I bake the controller and the views, it gives me an error in the
controller. Let me
Yep, session key was it.
On Aug 15, 2007 9:45 AM, rtconner [EMAIL PROTECTED] wrote:
Maybe it seems the date[Model][field] input format. That's a pretty
good giveaway.
On Aug 15, 9:11 am, Samuel DeVore [EMAIL PROTECTED] wrote:
wonder if there could be an adopted convention with a meta tag
https://trac.cakephp.org/ticket/633
https://trac.cakephp.org/ticket/1209
http://groups.google.pl/group/cake-php/browse_thread/thread/d9468ba788c5ac2c/fb23c6ada4ae8ccd?#fb23c6ada4ae8ccd
So it's broken and has been for a year?
This is really odd. to my thinking, without findAll working
currently on /www/cake/...
unix$ /usr/local/php5/bin/php cake/console/libs/bake.php
PHP Fatal error: Class 'Shell' not found in
.../cake/console/libs/bake.php on line 37
Any ideas? this is cake 1.2.x
--
Louie Miranda ([EMAIL PROTECTED])
http://www.axishift.com
Security Is A Series Of
Also have the same problem. Hope someone knows the answer.
On Dec 7, 4:22 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Here's one for all you Cake experts out there - I'm just trying to use
'bake' for the first time having just setup 1.2 in my 'mysite'
directory. General cake index page
Oh i think i got it!!
/usr/local/php5/bin/php cake/console/cake.php
Welcome to CakePHP v1.2.0.5875 pre-beta Console
---
Current Paths:
-working: /adminpage/app
-root: .../adminpage
-app: .../adminpage/app/
-core:
Got it...
On 1.2.x use...
/usr/local/php5/bin/php cake/console/cake.php
cake.php, note bake.php
On Dec 11, 2007 3:23 PM, Louie Miranda [EMAIL PROTECTED] wrote:
currently on /www/cake/...
unix$ /usr/local/php5/bin/php cake/console/libs/bake.php
PHP Fatal error: Class 'Shell' not found in
Thanks a lot everyone!
On Dec 10, 2007 5:45 PM, abstract [EMAIL PROTECTED] wrote:
or, if You need to place in all views something more sophisticated,
You can add
$this-set(...) to beforeFilter in app_controller
On Dec 10, 7:03 am, Louie Miranda [EMAIL PROTECTED] wrote:
I have added this
Thanks a lot everyone!
On Dec 11, 2007 12:13 AM, daphonz [EMAIL PROTECTED] wrote:
Also make sure you have something in your view to display the message:
?php
if($session-check('Message.flash')):
$session-flash();
endif;
?
Or the like.
-Casey
On Dec 9,
Just an indicator that might help you, its an example on db column
merging with concat
http://groups.google.com/group/cake-php/msg/1a8b39d9062c21f3
(hth)
aniston
On Dec 11, 3:15 am, Gould, Adrian [EMAIL PROTECTED]
wrote:
Problem:
The table AUTHORS has the fields (id, given_name, last_name,
66 matches
Mail list logo