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
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 a
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
PH
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:
>
>
$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 l
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 loa
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
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))
--~--~-~--~~~---
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 hab
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
if($this->Session->che
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 err
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 (sin
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 fu
array('type' => 'INNER'),
'Forum' => array('type' => 'INNER')
);
}
On Dec 6, 12:28 pm, Baz <[EMAIL PROTECTED]> wrote:
> 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
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 f
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 e
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
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
c
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 somet
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 rec
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
Here is how I decided to deal with my problem.
I hope some knowledgeable user can confirm this is a good way to do
it. Anyway, I'll share my findings if it can help others.
I decided to use a model without table so I can use Model validation.
Here is my model (more on $fields at the bottom):
c
>- 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
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 relate
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 bot
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 ->
... ...
$par
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 t
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 y
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, and
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
> 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
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 IN
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 "Coun
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 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 this
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 th
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 th
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 =
" . $
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 al
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 Go
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 exa
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 th
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
direct
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 (
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
ForumPerm.group_id='xxx
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 a
whoa hang on -
http://groups.google.com/group/cake-php/browse_thread/thread/8de4714f1a04a97b/fd8011bfed27c381?lnk=gst&q=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 Adam,
thanks for your replies. In fact I am using mootools for the nested
drag and drop sortable - I am not sure there is an equivalent in
Scriptaculous although it should be possible. Mootools and Prototype
are not compatible however. Your example has given me a bit of an idea
of the best way
49 matches
Mail list logo