Olá,
estou começando no CakePHP, já consegui realizar vários testes com sucesso
em minha máquina, porém, estou com algumas dificuldades em adaptá-lo em meu
servidor.
Pelo manual, ele diz que o mod_rewrite não é absolutamente necessário, eu
creio que ele está desabilitado no meu servidor, como
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
Bom dia padeiros!!!
Estou desenvolvendo um helper e um componente para paginação e
acontece o seguinte para que a paginação funcione preciso guardar
algumas variáveis no componente, uma das formas de guardar essas
variáveis seria gravar em sessão que ñ seria bom e outra forma que
pensei seria
Rogério,
Com certeza você já testou isso, mas não custa perguntar. Você não precisa
selecionar cores para links vistados, não visitados, etc.?
Se você disse que as vezes funciona, será que quando não funciona, você está
mudando a cor do link não visitado mas você já clicou no link...
Sei lá,
Valeu Benito pela atenção e sugestão,
o que estava ocasionando esse problema era o seguinte trecho
#maincontent a{
color: #00;
}
que estava sendo definido em uma div , foi só tirar esse trecho e
funfo blz,
té mais.
On 6 dez, 11:34, Josenivaldo Benito Junior [EMAIL PROTECTED]
wrote:
whoa hang on -
http://groups.google.com/group/cake-php/browse_thread/thread/8de4714f1a04a97b/fd8011bfed27c381?lnk=gstq=mootools#fd8011bfed27c381
I should have searched mootools on here before! (tried google...but
not the group search!)
On Dec 6, 10:24 am, luke BAKING barker [EMAIL PROTECTED]
Hi,
i am not sure if this a bug or a feature.
I have three tables: users, groups and an assignment table.
I am using scaffold to assign users to groups. The edit page shows me
a select box in which i am able to select the groups the user is
member of.
When i use STRG+Click in the select box I
Hi Baz
We suggested me to do this :
in the topics controller :
function lastTopics(){
$sql =
SELECT Topic.id, Topic.subject FROM topics AS Topic INNER JOIN forums
AS Forum ON
Forum.id = Topic.forum_id LEFT JOIN forum_perms AS ForumPerm ON
(ForumPerm.forum_id=Forum.id AND
The issue is that dynamic binding is reset by default after each
call to Model::findXXX, and paginate() generates 2 such calls, one to
Model::findCount and one to Model::findAll (unless the model has
methods paginateCount() and paginate(), in which case they are called
instead). So if you call
What I usually do is if I have my main site at
www.website.com - /cake/app/webroot/
then I duplicate everything and set up a subdomain so that I have:
sub1.website.com - /cake/sub1/webroot/
Sometimes I put in a .htaccess password in that folder so regular browsers
can't get there (but a lot of
I am with some difficulties in CSS of my project, in some moments
corretamentamente works put in some cases works in terms:
a.principal{
font-family: arial;
font-size: 11px;
text-transform: capitalize;
color: #FF;
left: 15px;
text-decoration: none;
display: block
}
if in the
What do people do to minimize downtime when upgrading/maintaining a
live site ?
Ideally the steps should be:
1. install the new version into a separate app directory and database.
2. somehow test the installation is working
3. switch over from the old app directory and DB, to the new app
Hi
I'm looking for a cakephp developer who would be able to design a
shopping cart for an existing cakephp website.
If you are interested, I look forward to hearing from you.
NL
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Thank you for the attention, I found the mistake, it was in same CSS.
#maincontent the {color: #00; } It was worth
On 5 dez, 17:40, AD7six [EMAIL PROTECTED] wrote:
On Dec 5, 7:48 pm, RÔ [EMAIL PROTECTED] wrote:
Estou com algumas dificuldades no CSS do meu projeto , em alguns
Hi,
i solved it with a model function, but i think this is a bug in
scaffolding and should be solved.
my code:
function beforeSave()
{
if (!isset($this-data['Group']))
$this-execute(DELETE FROM groups_tabgroups WHERE
tabgroup_id =
.
Good morning bakers!!!
I am developing a helper and a component for pagination and it happens
the following so that the pagination works need to keep some varied in
the component, one in the ways of keeping those varied would be to
record in session that would not be good and other form that I
Good morning bakers!!!
I am developing a helper and a component for pagination and it happens
the following so that the pagination works need to keep some varied in
the component, one in the ways of keeping those varied would be to
record in session that would not be good and other form that I
I added 4 sites created in CakePHP :)
Haz clic en
http://groups.google.com/group/cake-php/web/cake-apps-sites-in-the-wild.
Si haciendo clic no se activa, copia el vínculo y pégalo en la barra
de direcciones de tu navegador.
--~--~-~--~~~---~--~~
You received
It's not a bug.
That's not how multiple select boxes are meant to work. What you really need
is a menu option that says None or -. This CLEARLY shows the user that
he's now selecting nothing. To do this go here:
http://www.webdevelopment2.com/stupid-cakephp-trick-day-generatelist-empty-slot/
I'm using Cake 1.2.0.5875 pre-beta
I'd like to know what are the best practices when dealing with the
following situation.
I have a cities table and a garbage_quantities table that collects
garbage weight processed each month by each city.
Cities are grouped in another entity called a County.
On 1.2 you can set the 'type' key in the association, which defaults
to LEFT.
On Dec 6, 7:39 am, foxmask [EMAIL PROTECTED] wrote:
Hi Baz
We suggested me to do this :
in the topics controller :
function lastTopics(){
$sql =
SELECT Topic.id, Topic.subject FROM topics AS Topic INNER JOIN
Have you looked at using something like
http://www.e-junkie.com/
Seems pretty cool and some people I know who are using are really liking it.
Sam D
On Dec 6, 2007 5:34 AM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Hi
I'm looking for a cakephp developer who would be able to design a
Lead developer for a small team responsible for building a web portal
with multiple knowledge discovery applications. Must be a strong PHP
developer and comfortable working with several technologies, including
MySQL, JavaScript, and AJAX. Must be dedicated to managing an agile
release process,
http://cakeforge.org/projects/ocean-cms/
I liked this one toohttp://cakeforge.org/projects/lumad-cms/
Thanks, I've seen them both, I'm sure they will prove useful.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
hi,
I am interest. i have implement 10 payment gateways with different shoping
cards.
Thanks
Lalit
On 12/6/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi
I'm looking for a cakephp developer who would be able to design a
shopping cart for an existing cakephp website.
If you are
I'm sorry, I'm a bit lost.
Could you explain this a lil more?
On Dec 6, 2007 10:15 AM, nate [EMAIL PROTECTED] wrote:
On 1.2 you can set the 'type' key in the association, which defaults
to LEFT.
On Dec 6, 7:39 am, foxmask [EMAIL PROTECTED] wrote:
Hi Baz
We suggested me to do this :
I was wondering if developers out there who are writing CakePHP apps
in a PHP 5 environment are using PHP 5 functionality in their app(s)
or are choosing to stick with functionality available in 4 or 5?
Since Cake is compatible with both versions, developed apps may want
to be compatible with
It depends, if we want to make the app portable, we stick with the php
4 compatibility.
It we're building a custom app that will only end up in one place or
used by a single entity, we stick to the version that is in use within
that environment.
To me, the question you ask does not need to be.
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 second list will
contain the B elements that will be
- how and where do I deal with validation?
1. Create a model with whatever name but put in a class property of
var $useTable = false; Cake will happily use this model without
complaining that there is no DB table.
2. Put your validation rules in this model and run validation as you
would any
Do you have a named parameter called 'controller' ? just a hint ...
On Dec 6, 7:10 pm, Steveston [EMAIL PROTECTED] wrote:
I need to use $params['controller'] in my app. Everything works fine
except for one controller. It is supposed to be 'users' but it turns
out to be 'courses'. I did a
Thanks ianh,
looks like we posted at the same time. From your explanation, I
understand I was correct.
One more note about my last post: I needed to implemented the schema
function because I was getting errors when using form-create.
--~--~-~--~~~---~--~~
You
I need to use $params['controller'] in my app. Everything works fine
except for one controller. It is supposed to be 'users' but it turns
out to be 'courses'. I did a debug and find its call back route is:
index.php -
Dispatch-dispatch -
Dispatch-_invoke -
Controller-render -
... ...
I have a list and I need to populate it either with $array1 or
$array2. Both $array1 and $array2 are returned db query results. I
want to have a check box. So that when I ticket the checkbox, the list
will be populated with $array1; otherwise, use $array2 to populate the
list.
I think it is
Has anyone looked into using Caucho's php inside a java servlet? It looks
like they get really good gains running Drupal in this manner. The main
thing I see with CakePHP from my initial tests is that any place where an
instance of a class is created dynamically the intepriter doesn't handle it
On Dec 6, 7:10 pm, Steveston [EMAIL PROTECTED] wrote:
I need to use $params['controller'] in my app.
Why. What's wrong with $this-name?
AD
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post
keymaster wrote:
What do people do to minimize downtime when upgrading/maintaining a
live site ?
All my deployments (of the same app, in different locales) are done
direct from cvs
Most PHP apps in my experience are fine with this sort of live upgrade -
ymmv
I admit this is not very
Unfortunately, in the latest SVN revision it dot notation doesn't seem
to be working. And the error page is telling me to create a class name
with a dot in it.
On Nov 17, 9:17 pm, Gwoo [EMAIL PROTECTED] wrote:
Several people voiced opinions about plugins and in an effort to make
them more
Ahhh specifically it works when you manually do an import, but you
can't yet use dot notation with uses at the top of your controller.
On Nov 17, 9:17 pm, Gwoo [EMAIL PROTECTED] wrote:
Several people voiced opinions about plugins and in an effort to make
them more flexible we added the
?php
class ForumPerm extends AppModel {
var $name = 'ForumPerm';
var $primaryKey = 'group_id,forum_id';
//The Associations below have been created with all possible
keys,
those that are not needed can be removed
var $belongsTo = array(
On Dec 6, 2007 4:10 PM, Howard Glynn [EMAIL PROTECTED] wrote:
Chris Hartjes has mentioned Capistrano on his blog which I admit I had
not heard of until recently;
I took a look and it does sound appealing especially for the kind of
development deployment I am
talking about here (single
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 works fine, database is configured
OK, and all is well, but upon running bake from the command line I get
this error:
Fatal
EDIT: I figured out a better way to describe step 3c)...
For each 'Place.name' I count up the number of people having a
'Hobby.name' matching the selected keywords. I display this total in
parenthesis after the name of the place (e.g., Winter Ice Rink (2))
Hi all,
I have a Flash message that doesn't seem to be displaying across
controllers. It is called in the beforeFilter of my accounts
controller:
function __validateLoginStatus()
{
//no exceptions for this controller
I'm stumped, so here is what I got and I'll tell you the challenge
afterwards:
Here are my models:
Hobby (id, name)
Person (id, hobby_id, place_id)
Place (id, name, state)
Here are the associations:
hobby habtm place
hobby hasmany person
person belongsto hobby
person belongsto place
place
I have a 3 columns layout, I'm thinking on putting a login box on the
right side. I want to know what is the best way to put this box there.
I want to switch it to a an option box when the user logins.
What do you think of this?
--~--~-~--~~~---~--~~
You received
$this-element and
requestAction
On Dec 6, 2007 5:47 PM, Miguel XT [EMAIL PROTECTED] wrote:
I have a 3 columns layout, I'm thinking on putting a login box on the
right side. I want to know what is the best way to put this box there.
I want to switch it to a an option box when the user logins.
Dear all,
I had just finished searching the cakephp mailing list, tried the user's
real-time example. But, couldn't get my installation to work properly.
Here is my problem.
*domain: example.com
cakephp (installation): example.com/cakephp/
checked on mod_rewrite if it is loaded: (Yes, it is
I have the same question and find the answer here:
http://ez.no/ezpublish/documentation/configuration/configuration/tips_tricks/exclude_uris_from_rewrite
:)
On 11月29日, 下午5時32分, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
I have the following problem:
my root folder looks like this:
/app
Does anybody know if there is a already available method for getting
the list of available models within a component and/or controller?
Thank you in advance.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
hi,
I had to do something similar recently.
The way you can do it :
You can add an Event on for the list2, so when the user click on it,
it will populate by an Ajax request to a function in your controller.
For the list2 observe the checkbox and use an Ajax request to get the
list1 populated
Hi,
In the controller you can parse the 'uses' array ($this-uses) to get
the models it is using.
I don't know if it what you need.
Let me know if it's something else.
metasan
www.pieg.net
--~--~-~--~~~---~--~~
You received this message because you are subscribed
52 matches
Mail list logo